simple-ccsm-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Name: simple-ccsm
  2. Version: 0.8.2
  3. Release: 2%{?_dist_release}
  4. Summary: Simple Compiz Config Settings Manager
  5. Summary(ja): シンプルな Compiz 設定マネージャ
  6. Group: User Interface/Desktops
  7. URL: http://www.compiz-fusion.org/
  8. License: GPL
  9. Source: %{name}-%{version}.tar.bz2
  10. Source10: %{name}-0.7.8-ja.po
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: compiz-devel
  14. BuildRequires: compizconfig-python
  15. BuildRequires: pygtk2-devel
  16. BuildRequires: intltool
  17. BuildRequires: desktop-file-utils
  18. %description
  19. Simple Compiz Config Settings Manager
  20. %description -l ja
  21. シンプルな Compiz 設定マネージャ
  22. %prep
  23. %setup -q
  24. cp -f %{SOURCE10} po/ja.po
  25. %build
  26. python setup.py build --prefix=%{_prefix}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
  30. desktop-file-install \
  31. --vendor="" \
  32. --remove-category="Compiz" \
  33. --add-category="Settings" \
  34. --add-category="DesktopSettings" \
  35. --dir %{buildroot}%{_datadir}/applications \
  36. %{buildroot}%{_datadir}/applications/%{name}.desktop
  37. %find_lang %{name}
  38. rm -f $RPM_BUILD_ROOT%{python_sitelib}/simple_ccsm-*-py2.5.egg-info
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %post
  42. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  43. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  44. fi
  45. %postun
  46. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  47. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  48. fi
  49. %files -f %{name}.lang
  50. %defattr(-,root,root)
  51. %{_bindir}/%{name}
  52. %dir %{_datadir}/%{name}
  53. %{_datadir}/%{name}/%{name}.glade
  54. %dir %{_datadir}/%{name}/images
  55. %{_datadir}/%{name}/images/*.png
  56. %{_datadir}/%{name}/images/*.svg
  57. %dir %{_datadir}/%{name}/profiles
  58. %{_datadir}/%{name}/profiles/*.profile
  59. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  60. %{_datadir}/icons/hicolor/*/apps/%{name}.svg
  61. %{_datadir}/applications/%{name}.desktop
  62. %changelog
  63. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-2
  64. - change Group to User Interface/Desktops
  65. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-1
  66. - new upstream release
  67. * Sun Oct 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.8-2
  68. - new upstream release
  69. * Sat Oct 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.8-1
  70. - new upstream release
  71. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.6-1
  72. - initial build for Vine Linux