gnome-compiz-manager-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Name: gnome-compiz-manager
  2. Version: 0.10.4
  3. Release: 2%{?_dist_release}
  4. Summary: Compiz configuration utility
  5. Summary(ja): Compiz 設定ユーティリティ
  6. Group: User Interface/Desktops
  7. License: GPL
  8. URL: http://gandalfn.wordpress.com/gnome-compiz-manager/
  9. Source0: http://download.gna.org/gcm/gnome-compiz-manager/gnome-compiz-manager-%{version}.tar.gz
  10. Source1: desktop.png
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: intltool
  13. BuildRequires: GConf2
  14. BuildRequires: pkgconfig
  15. BuildRequires: libglade2-devel
  16. BuildRequires: libwnck-devel
  17. BuildRequires: libgnomeui-devel
  18. BuildRequires: libgnome-devel
  19. BuildRequires: gnome-desktop-devel
  20. BuildRequires: librsvg2-devel
  21. BuildRequires: gob2
  22. BuildRequires: gettext
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: libSM-devel
  25. Requires(post): /sbin/ldconfig
  26. Requires(postun): /sbin/ldconfig
  27. Requires(pre): GConf2
  28. Requires(post): GConf2
  29. Requires(preun): GConf2
  30. %description
  31. Gnome compiz manager is small utility, which manages GL Desktop configurations
  32. on XGL/AiGLX. It is composed of two applications :
  33. - compiz-tray-icon : which launches and stops compiz
  34. - gnome-compiz-preferences : which adjusts GL effects
  35. The goal is not to expose all compiz options but allow a simple
  36. configuration of compiz.
  37. %package devel
  38. Summary: Development files for gnome-compiz-manager
  39. Summary(ja): gnome-compiz-manager の開発ファイル
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: pkgconfig
  43. %description devel
  44. Development files for gnome-compiz-manager
  45. %prep
  46. %setup -q
  47. cp %{SOURCE1} data
  48. %build
  49. %configure --disable-rpath
  50. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  51. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. desktop-file-install --vendor="fedora" \
  58. --delete-original \
  59. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  60. $RPM_BUILD_ROOT%{_datadir}/applications/gnome-compiz-preferences.desktop
  61. rm $RPM_BUILD_ROOT/%{_libdir}/*.la
  62. rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
  63. # kill static libs
  64. rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.a
  65. rm $RPM_BUILD_ROOT/%{_libdir}/*.a
  66. # empty
  67. rm $RPM_BUILD_ROOT/%{_docdir}/%{name}/README
  68. %find_lang %{name}
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %pre
  72. if [ "$1" -gt 1 ]; then
  73. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  74. gconftool-2 --makefile-uninstall-rule \
  75. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas >/dev/null || :
  76. # If the schema file has ever been renamed::
  77. #gconftool-2 --makefile-uninstall-rule \
  78. # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
  79. killall -HUP gconfd-2 &> /dev/null || :
  80. fi
  81. %post
  82. /sbin/ldconfig
  83. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  84. gconftool-2 --makefile-install-rule \
  85. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas > /dev/null || :
  86. killall -HUP gconfd-2 &> /dev/null || :
  87. %preun
  88. if [ "$1" -eq 0 ]; then
  89. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  90. gconftool-2 --makefile-uninstall-rule \
  91. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas > /dev/null || :
  92. killall -HUP gconfd-2 &> /dev/null || :
  93. fi
  94. %postun -p /sbin/ldconfig
  95. %files -f %{name}.lang
  96. %defattr(-,root,root,-)
  97. %doc %{_docdir}/*
  98. %{_bindir}/*
  99. %{_mandir}/*/*
  100. %{_sysconfdir}/gconf/schemas/*
  101. %{_libdir}/*.so.*
  102. %dir %{_libdir}/%{name}/
  103. %{_libdir}/%{name}/*.so
  104. %{_libdir}/%{name}/*.plugin
  105. %{_datadir}/%{name}
  106. %{_datadir}/applications/*
  107. %files devel
  108. %defattr(-,root,root,-)
  109. %{_includedir}/%{name}/
  110. %{_libdir}/*.so
  111. %{_libdir}/pkgconfig/*
  112. %changelog
  113. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.4-2
  114. - rebuild with rpm-4.8.1 for pkg-config file
  115. - add BuildRequires: libSM-devel
  116. * Sat May 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.4-1
  117. - initial build for Vine Linux
  118. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.10.4-4
  119. - Autorebuild for GCC 4.3
  120. * Sun Dec 9 2007 Denis Leroy <denis@poolshark.org> - 0.10.4-3
  121. - Fix duplicate desktop entries
  122. - Made gconf killall silent
  123. * Fri Oct 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.10.4-2
  124. - Don't ship Ubuntu branding
  125. * Sat Jul 14 2007 John Mahowald <jpmahowald@gmail.com> - 0.10.4-1
  126. - 0.10.4
  127. * Wed May 23 2007 John Mahowald <jpmahowald@gmail.com> - 0.9.14-1
  128. - 0.9.14
  129. * Tue Nov 28 2006 John Mahowald <jpmahowald@gmail.com> - 0.9.13.1-1
  130. - 0.9.13.1
  131. - dropped upstreamed libdir patch
  132. * Thu Nov 16 2006 John Mahowald <jpmahowald@gmail.com> - 0.9.10-1
  133. - initial rpm