usbmanager-vl.spec 1.8 KB

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