gnome-color-manager-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: Color management tools for GNOME
  3. Name: gnome-color-manager
  4. Version: 2.32.0
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/System
  8. URL: http://projects.gnome.org/gnome-color-manager/
  9. Source0: http://download.gnome.org/sources/gnome-color-manager/2.32/%{name}-%{version}.tar.bz2
  10. Requires: gnome-icon-theme
  11. Requires: shared-mime-info
  12. Requires: shared-color-profiles
  13. Requires(pre): GConf2
  14. Requires(post): GConf2
  15. Requires(preun): GConf2
  16. BuildRequires: gtk2-devel >= 2.16.0
  17. BuildRequires: scrollkeeper
  18. BuildRequires: gnome-doc-utils >= 0.3.2
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: gettext
  21. BuildRequires: libtool
  22. BuildRequires: vte-devel
  23. BuildRequires: gnome-doc-utils
  24. BuildRequires: unique-devel >= 1.0.0
  25. BuildRequires: intltool
  26. BuildRequires: libgudev1-devel
  27. BuildRequires: dbus-glib-devel >= 0.73
  28. BuildRequires: libXxf86vm-devel
  29. BuildRequires: libXrandr-devel
  30. BuildRequires: gnome-desktop-devel
  31. BuildRequires: lcms-devel
  32. BuildRequires: cups-devel
  33. BuildRequires: sane-devel
  34. BuildRequires: libtiff-devel
  35. BuildRequires: libcanberra-devel
  36. BuildRequires: libnotify-devel
  37. BuildRequires: GConf2
  38. %description
  39. gnome-color-manager is a session framework that makes it easy to manage, install
  40. and generate color profiles in the GNOME desktop.
  41. %prep
  42. %setup -q
  43. %build
  44. %configure --disable-scrollkeeper --disable-schemas-install
  45. make %{?_smp_mflags}
  46. %install
  47. make install DESTDIR=$RPM_BUILD_ROOT
  48. for i in gcm-prefs gcm-import ; do
  49. desktop-file-install --delete-original \
  50. --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
  51. $RPM_BUILD_ROOT%{_datadir}/applications/$i.desktop
  52. done
  53. %find_lang %name --with-gnome
  54. %post
  55. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  56. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  58. update-desktop-database %{_datadir}/applications &> /dev/null || :
  59. update-mime-database %{_datadir}/mime &> /dev/null || :
  60. %pre
  61. if [ "$1" -gt 1 ]; then
  62. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  63. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null
  64. fi
  65. %preun
  66. if [ "$1" -eq 0 ]; then
  67. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  68. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null
  69. fi
  70. %postun
  71. if [ $1 -eq 0 ]; then
  72. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  73. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  74. fi
  75. update-desktop-database %{_datadir}/applications &> /dev/null || :
  76. update-mime-database %{_datadir}/mime &> /dev/null || :
  77. %posttrans
  78. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  79. %files -f %{name}.lang
  80. %defattr(-,root,root,-)
  81. %doc AUTHORS COPYING NEWS README
  82. /lib/udev/rules.d/*.rules
  83. %{_bindir}/gcm-*
  84. %dir %{_datadir}/gnome-color-manager
  85. %{_datadir}/gnome-color-manager/gcm-*.ui
  86. %dir %{_datadir}/gnome-color-manager/targets
  87. %dir %{_datadir}/gnome-color-manager/icons
  88. %{_datadir}/gnome-color-manager/targets/*.png
  89. %{_datadir}/gnome-color-manager/icons/*.svg
  90. %{_datadir}/man/man1/*.1.gz
  91. %{_datadir}/icons/hicolor/*/*/*.png
  92. %{_datadir}/icons/hicolor/scalable/*/*.svg*
  93. %config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas
  94. %{_datadir}/applications/gcm-prefs.desktop
  95. %{_datadir}/applications/gcm-import.desktop
  96. %{_sysconfdir}/xdg/autostart/*.desktop
  97. %{_datadir}/dbus-1/services/org.gnome.ColorManager.service
  98. %{_sbindir}/gcm-install-system-wide
  99. %{_datadir}/polkit-1/actions/org.gnome.color.policy
  100. # this is probably better in a shared package
  101. %dir %{_localstatedir}/lib/color
  102. %changelog
  103. * Mon Oct 04 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  104. - new upstream release
  105. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  106. - new upstream release
  107. * Sat May 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  108. - Initial build for Vine Linux
  109. * Fri Apr 2 2010 Matthias Clasen <mclasen@redhat.com> 2.30.0-4
  110. - BR GConf to make the macros work
  111. - Modernize icon cache handling
  112. * Wed Mar 31 2010 Richard Hughes <richard@hughsie.com> 2.30.0-3
  113. - Fix up a scriptlet problem.
  114. - Resolves: #578611
  115. * Mon Mar 29 2010 Richard Hughes <richard@hughsie.com> 2.30.0-2
  116. - Add libnotify BR.
  117. * Mon Mar 29 2010 Richard Hughes <richard@hughsie.com> 2.30.0-1
  118. - New upstream release.
  119. * Tue Mar 09 2010 Richard Hughes <richard@hughsie.com> 2.29.4-2
  120. - Update to the latest version of the Fedora Packaging Guidelines
  121. - Remove the custom BuildRoot
  122. - Do not clean the buildroot before install
  123. - Use the gconf_schema defines for the GConf schemas
  124. - Remove some over-zealous Requires that are already picked up by rpm.
  125. - Resolves #571658
  126. * Mon Mar 01 2010 Richard Hughes <richard@hughsie.com> 2.29.4-1
  127. - New upstream release.
  128. * Mon Feb 22 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100222
  129. - Another new snapshot from upstream with lots of bugs fixed from the Fedora
  130. test day.
  131. * Wed Feb 18 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100218
  132. - Another new snapshot from upstream for the Fedora test day.
  133. * Wed Feb 17 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100217
  134. - New snapshot from upstream for the Fedora test day.
  135. * Mon Feb 01 2010 Richard Hughes <richard@hughsie.com> 2.29.3-1
  136. - New upstream release.
  137. * Mon Jan 18 2010 Matthias Clasen <mclasen@redhat.com> 2.29.2-3
  138. - Rebuild against new gnome-desktop
  139. * Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-2
  140. - Rebuild, hopefully koji has now a working glibc.
  141. * Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-1
  142. - New upstream release.
  143. * Fri Dec 04 2009 Richard Hughes <richard@hughsie.com> 2.29.1-1
  144. - Initial spec for review.