gnome-compiz-manager-vl.spec 4.5 KB

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