gnome-compiz-manager-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. Name: gnome-compiz-manager
  2. Version: 0.10.4
  3. Release: 3%{?_dist_release}
  4. Summary: Compiz configuration utility
  5. Summary(ja): Compiz 設定ユーティリティ
  6. Group: User Interface/Desktops
  7. License: GPLv2 and LGPLv2
  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 >= 2.0.14
  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 --disable-static
  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 -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  62. rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
  63. # documents will be gathered manually at %files section
  64. rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
  65. %find_lang %{name}
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %pre
  69. if [ "$1" -gt 1 ]; then
  70. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  71. gconftool-2 --makefile-uninstall-rule \
  72. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas >/dev/null || :
  73. # If the schema file has ever been renamed::
  74. #gconftool-2 --makefile-uninstall-rule \
  75. # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
  76. killall -HUP gconfd-2 &> /dev/null || :
  77. fi
  78. %post
  79. /sbin/ldconfig
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-install-rule \
  82. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas > /dev/null || :
  83. killall -HUP gconfd-2 &> /dev/null || :
  84. %preun
  85. if [ "$1" -eq 0 ]; then
  86. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  87. gconftool-2 --makefile-uninstall-rule \
  88. %{_sysconfdir}/gconf/schemas/gnome-compiz-preferences.schemas > /dev/null || :
  89. killall -HUP gconfd-2 &> /dev/null || :
  90. fi
  91. %postun -p /sbin/ldconfig
  92. %files -f %{name}.lang
  93. %defattr(-,root,root,-)
  94. %doc AUTHORS COPYING* ChangeLog INSTALL NEWS
  95. %{_bindir}/*
  96. %{_mandir}/*/*
  97. %{_sysconfdir}/gconf/schemas/*
  98. %{_libdir}/*.so.*
  99. %dir %{_libdir}/%{name}/
  100. %{_libdir}/%{name}/*.so
  101. %{_libdir}/%{name}/*.plugin
  102. %{_datadir}/%{name}
  103. %{_datadir}/applications/*
  104. %files devel
  105. %defattr(-,root,root,-)
  106. %{_includedir}/%{name}/
  107. %{_libdir}/*.so
  108. %{_libdir}/pkgconfig/*
  109. %changelog
  110. * Tue Feb 3 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.10.4-3
  111. - rebuilt on current VineSeed
  112. - fixed spec encoding to UTF-8 (BTS #2784)
  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