1 | Name: usbmanager |
---|
2 | Version: 1.0.0 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: An USB storage management interface written in Python |
---|
5 | Summary(ja): Python で書かれた USB ストレージ管理インターフェイス |
---|
6 | |
---|
7 | Group: Applications/System |
---|
8 | License: LGPLv3 |
---|
9 | URL: https://launchpad.net/usbmanager |
---|
10 | Source0: %{name}-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | BuildArch: noarch |
---|
13 | |
---|
14 | BuildRequires: python-devel |
---|
15 | BuildRequires: python-setuptools |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | |
---|
18 | Requires: python pygtk2 |
---|
19 | Requires: mtools |
---|
20 | Requires: dbus hal |
---|
21 | |
---|
22 | %description |
---|
23 | USBManager is a simple and intuitive tool developed to help people |
---|
24 | who have hard times managing theirs USB storage devices. |
---|
25 | |
---|
26 | %description -l ja |
---|
27 | USBManager は USB ストレージデバイスの管理に手を焼く人々を |
---|
28 | 助けるために開発されたシンプルで直感的なツールです。 |
---|
29 | |
---|
30 | %prep |
---|
31 | %setup -q -n %{name} |
---|
32 | |
---|
33 | %build |
---|
34 | python setup.py build |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf %{buildroot} |
---|
38 | python setup.py install --skip-build --root %{buildroot} |
---|
39 | |
---|
40 | # maybe disued file? |
---|
41 | rm -rf %{buildroot}/root/ |
---|
42 | |
---|
43 | %find_lang %{name} |
---|
44 | |
---|
45 | desktop-file-install \ |
---|
46 | --dir $RPM_BUILD_ROOT%{_datadir}/applications data/%{name}.desktop |
---|
47 | |
---|
48 | %clean |
---|
49 | rm -rf $RPM_BUILD_ROOT |
---|
50 | |
---|
51 | %post |
---|
52 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
53 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
54 | update-desktop-database %{_datadir}/applications |
---|
55 | |
---|
56 | %postun |
---|
57 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
58 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
59 | update-desktop-database %{_datadir}/applications |
---|
60 | |
---|
61 | %files -f %{name}.lang |
---|
62 | %defattr(-,root,root,-) |
---|
63 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
---|
64 | %{_bindir}/%{name} |
---|
65 | %{_libdir}/python2.*/site-packages/* |
---|
66 | %{_datadir}/applications/*.desktop |
---|
67 | %{_datadir}/icons/* |
---|
68 | |
---|
69 | %changelog |
---|
70 | |
---|
71 | * Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1 |
---|
72 | - initial build for VineSeed |
---|