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