screenlets-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. %define pysite %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)')
  3. Summary: Widget-like mini-applications for Linux-desktop
  4. Summary(ja): Linux デスクトップ向けのウィジェット風ミニアプリケーション
  5. Name: screenlets
  6. Version: 0.1.2
  7. Release: 1%{?_dist_release}
  8. Source0: %{name}-%{version}.tar.bz2
  9. Source1: screenlets-manager-ja.po
  10. Source2: screenlets-ja.po
  11. License: GPL
  12. Group: Applications/Accessories
  13. URL: http://www.screenlets.org/
  14. Requires: pyxdg
  15. Requires: dbus-python
  16. Requires: gnome-python
  17. Requires: gnome-python-desktop
  18. Requires: gnome-python-rsvg
  19. Requires: gnome-python-libwnck
  20. Requires: gnome-python-gnomekeyring
  21. Requires: librsvg2
  22. BuildRequires: python-devel
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildArch: noarch
  25. Packager: kazutaka
  26. %description
  27. Screenlets (short form of "Screen-Applets") are small owner-drawn
  28. applications that can be described as "the virtual representation
  29. of things lying/standing around on your desk": Sticknotes, clocks,
  30. rulers, ... the possibilities are endless.
  31. Screenlets work without composite window manager (like Compiz),
  32. but it works better with them.
  33. %description -l ja
  34. Screenlets ("Screen-Applets"の略) は、あなたの身の回りにある
  35. 色々な道具(付箋や時計、定規等々)を仮想的に表現する、ウィジェット
  36. 風のミニアプリケーションです。
  37. Screenlets は (Compiz のような)コンポジットウィンドウマネージャ
  38. が無くても問題なく動作しますが、透過表示等はコンポジット環境の
  39. 方が綺麗に表示されます。
  40. %prep
  41. %setup -q -n %{name}
  42. # install updated japanese translation
  43. %{__cp} %{SOURCE1} po
  44. %{__cp} %{SOURCE2} po
  45. %build
  46. %{__python} setup.py build
  47. %install
  48. %{__rm} -rf $RPM_BUILD_ROOT
  49. %{__python} setup.py install --root %{buildroot}
  50. %find_lang %{name}
  51. %find_lang %{name}-manager
  52. cat %{name}-manager.lang >> %{name}.lang
  53. # Remove useless egg-info file
  54. %{__rm} -f %{buildroot}%{pysite}/*.egg-info
  55. %clean
  56. %{__rm} -rf $RPM_BUILD_ROOT
  57. %files -f %{name}.lang
  58. %defattr(-,root,root)
  59. %doc
  60. %{_bindir}/%{name}
  61. %{_bindir}/%{name}-daemon
  62. %{_bindir}/%{name}-manager
  63. %{_bindir}/%{name}-packager
  64. %{_bindir}/screenletsd
  65. %{_datadir}/%{name}
  66. %{_datadir}/%{name}-manager
  67. %{pysite}/%{name}
  68. %{_datadir}/applications/%{name}-manager.desktop
  69. %{_datadir}/icons/%{name}.svg
  70. %changelog
  71. * Mon Jul 26 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.1.2-1
  72. - initial build for Vine Linux