| 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
|---|
| 2 | |
|---|
| 3 | Summary: Command Line Interface to FreeDesktop.org Trash |
|---|
| 4 | Summary(ja): ゴミ箱を操作するコマンドライン用ツール |
|---|
| 5 | Name: trash-cli |
|---|
| 6 | Version: 0.12.7 |
|---|
| 7 | Release: 1%{?_dist_release} |
|---|
| 8 | Source0: http://trash-cli.googlecode.com/files/%{name}-%{version}.tar.gz |
|---|
| 9 | License: GPL v2 |
|---|
| 10 | Group: Applications/System |
|---|
| 11 | URL: https://github.com/andreafrancia/trash-cli |
|---|
| 12 | |
|---|
| 13 | Requires: python, python-unipath |
|---|
| 14 | BuildRequires: python, python-setuptools |
|---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 16 | BuildArch: noarch |
|---|
| 17 | |
|---|
| 18 | Packager: kazutaka |
|---|
| 19 | |
|---|
| 20 | %description |
|---|
| 21 | trash-cli provides the following commands to manage the trash: |
|---|
| 22 | * trash-put trashes files and directories. |
|---|
| 23 | * trash-empty empty the trashcan(s). |
|---|
| 24 | * trash-list list trashed file. |
|---|
| 25 | * trash-restore restore a trashed file. |
|---|
| 26 | |
|---|
| 27 | For each file the name, original path, deletion date, and permissions |
|---|
| 28 | are recorded. The trash command allow trash multiple files with the |
|---|
| 29 | same name. These command uses the same Trashcan of last versions of |
|---|
| 30 | KDE, GNOME and XFCE. |
|---|
| 31 | |
|---|
| 32 | %description -l ja |
|---|
| 33 | trash-cli はゴミ箱を操作する、以下のコマンドを提供します: |
|---|
| 34 | * trash-put ファイルとディレクトリをゴミ箱に移動 |
|---|
| 35 | * trash-empty ゴミ箱を空にする |
|---|
| 36 | * trash-list ゴミ箱の中の、ファイルの一覧を出力 |
|---|
| 37 | * restore-trash ファイルをゴミ箱から元に戻す |
|---|
| 38 | |
|---|
| 39 | 各ファイルの名前や元のパス、削除した日時、アクセス権が記録され |
|---|
| 40 | ます。また trash コマンドは同名のファイルを複数扱えるようになっ |
|---|
| 41 | ています。これらのコマンドは、最新の KDE や GNOME、XFCE と同じ |
|---|
| 42 | ゴミ箱を使用します。 |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | %prep |
|---|
| 46 | %setup -q |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | %{__python} setup.py build |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | %install |
|---|
| 54 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 55 | %{__python} setup.py install \ |
|---|
| 56 | --root=${RPM_BUILD_ROOT} \ |
|---|
| 57 | --single-version-externally-managed |
|---|
| 58 | |
|---|
| 59 | %clean |
|---|
| 60 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | %files |
|---|
| 64 | %defattr(-,root,root) |
|---|
| 65 | %doc COPYING CREDITS.txt DONE.txt HISTORY.txt README.rst TODO.txt |
|---|
| 66 | #%doc docs/* |
|---|
| 67 | %{_bindir}/restore-trash |
|---|
| 68 | %{_bindir}/trash |
|---|
| 69 | %{_bindir}/trash-empty |
|---|
| 70 | %{_bindir}/trash-list |
|---|
| 71 | %{_bindir}/trash-put |
|---|
| 72 | %{python_sitelib}/trashcli |
|---|
| 73 | %{python_sitelib}/trash_cli* |
|---|
| 74 | %{python_sitelib}/integration_tests/ |
|---|
| 75 | %{python_sitelib}/unit_tests/ |
|---|
| 76 | %{_mandir}/man1/trash-empty.1* |
|---|
| 77 | %{_mandir}/man1/trash-list.1* |
|---|
| 78 | %{_mandir}/man1/trash-put.1* |
|---|
| 79 | %{_mandir}/man1/restore-trash.1* |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | %changelog |
|---|
| 83 | * Wed Jun 27 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12.7-1 |
|---|
| 84 | - new upstream release |
|---|
| 85 | - changed URL |
|---|
| 86 | - added BuildRequires: python-setuptools |
|---|
| 87 | |
|---|
| 88 | * Sun Apr 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.2-2 |
|---|
| 89 | - rebuild with python-2.6.5 (Seed only) |
|---|
| 90 | |
|---|
| 91 | * Thu Oct 22 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.11.2-1 |
|---|
| 92 | - initial build for Vine Linux |
|---|