source: projects/specs/trunk/t/trash-cli/trash-cli-vl.spec @ 6438

Revision 6438, 2.8 KB checked in by kudoh, 12 years ago (diff)

trash-cli-vl.spec

Line 
1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3Summary:        Command Line Interface to FreeDesktop.org Trash
4Summary(ja):    ゴミ箱を操作するコマンドライン用ツール
5Name:           trash-cli
6Version:        0.12.7
7Release:        1%{?_dist_release}
8Source0:        http://trash-cli.googlecode.com/files/%{name}-%{version}.tar.gz
9License:        GPL v2
10Group:          Applications/System
11URL:            https://github.com/andreafrancia/trash-cli
12
13Requires:       python, python-unipath
14BuildRequires:  python, python-setuptools
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16BuildArch:      noarch
17
18Packager:       kazutaka
19
20%description
21trash-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
27For each file the name, original path, deletion date, and permissions
28are recorded. The trash command allow trash multiple files with the
29same name. These command uses the same Trashcan of last versions of
30KDE, GNOME and XFCE.
31
32%description -l ja
33trash-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
Note: See TracBrowser for help on using the repository browser.