simple-ccsm-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Name: simple-ccsm
  2. Version: 0.8.8
  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: http://releases.compiz.org/%{version}/%{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: python-devel
  15. BuildRequires: compizconfig-python
  16. BuildRequires: pygtk2-devel
  17. BuildRequires: intltool
  18. BuildRequires: desktop-file-utils
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Simple Compiz Config Settings Manager
  23. %description -l ja
  24. シンプルな Compiz 設定マネージャ
  25. %prep
  26. %setup -q
  27. #cp -f %{SOURCE10} po/ja.po
  28. %build
  29. python setup.py build --prefix=%{_prefix}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
  33. desktop-file-install \
  34. --vendor="" \
  35. --remove-category="Compiz" \
  36. --add-category="Settings" \
  37. --add-category="DesktopSettings" \
  38. --dir %{buildroot}%{_datadir}/applications \
  39. %{buildroot}%{_datadir}/applications/%{name}.desktop
  40. %find_lang %{name}
  41. rm -f $RPM_BUILD_ROOT%{python_sitelib}/simple_ccsm-*-py2.5.egg-info
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  46. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  47. fi
  48. %postun
  49. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  50. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  51. fi
  52. %files -f %{name}.lang
  53. %defattr(-,root,root)
  54. %{_bindir}/%{name}
  55. %dir %{_datadir}/%{name}
  56. %{_datadir}/%{name}/%{name}.glade
  57. %dir %{_datadir}/%{name}/images
  58. %{_datadir}/%{name}/images/*.png
  59. %{_datadir}/%{name}/images/*.svg
  60. %dir %{_datadir}/%{name}/profiles
  61. %{_datadir}/%{name}/profiles/*.profile
  62. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  63. %{_datadir}/icons/hicolor/*/apps/%{name}.svg
  64. %{_datadir}/applications/%{name}.desktop
  65. %changelog
  66. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.8-2
  67. - new upstream release
  68. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.8-1
  69. - new upstream release
  70. * Sat Nov 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  71. - new upstream release
  72. - drop Source10
  73. - add BuildRequires: python-devel
  74. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-2
  75. - change Group to User Interface/Desktops
  76. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-1
  77. - new upstream release
  78. * Sun Oct 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.8-2
  79. - new upstream release
  80. * Sat Oct 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.8-1
  81. - new upstream release
  82. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.6-1
  83. - initial build for Vine Linux