colord-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Color daemon
  3. Name: colord
  4. Version: 0.1.11
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Daemons
  7. License: GPLv2+ and LGPLv2+
  8. URL: http://gitorious.org/colord
  9. Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
  10. BuildRequires: dbus-devel
  11. BuildRequires: docbook-utils
  12. BuildRequires: gettext
  13. BuildRequires: glib2-devel
  14. BuildRequires: intltool
  15. BuildRequires: lcms2-devel
  16. BuildRequires: libgudev1-devel
  17. BuildRequires: libusb1-devel
  18. BuildRequires: polkit-devel
  19. BuildRequires: sane-devel
  20. BuildRequires: sqlite3-devel
  21. Requires: shared-color-profiles
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Takemikaduchi
  25. %description
  26. colord is a low level system activated daemon that maps color devices
  27. to color profiles in the system context.
  28. %package devel
  29. Summary: Development package for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. %description devel
  33. Files for development with %{name}.
  34. # compat32
  35. %package -n compat32-%{name}
  36. Summary: Color daemon
  37. Group: System Environment/Daemons
  38. Requires: %{name} = %{version}-%{release}
  39. %description -n compat32-%{name}
  40. colord is a low level system activated daemon that maps color devices
  41. to color profiles in the system context.
  42. %package -n compat32-%{name}-devel
  43. Summary: Development package for %{name}
  44. Group: Development/Libraries
  45. Requires: compat32-%{name} = %{version}-%{release}
  46. %description -n compat32-%{name}-devel
  47. Files for development with %{name}.
  48. %prep
  49. %setup -q
  50. %build
  51. %configure \
  52. --disable-static \
  53. --disable-rpath \
  54. --disable-examples \
  55. --disable-dependency-tracking
  56. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  57. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  58. make %{?_smp_mflags}
  59. %install
  60. make install DESTDIR=$RPM_BUILD_ROOT
  61. # Remove static libs and libtool archives.
  62. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  63. find %{buildroot} -name '*.a' -exec rm -f {} ';'
  64. # databases
  65. touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db
  66. touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db
  67. %find_lang %{name}
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %post -n compat32-%{name} -p /sbin/ldconfig
  71. %postun -n compat32-%{name} -p /sbin/ldconfig
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %doc README AUTHORS NEWS COPYING
  75. %{_libexecdir}/colord
  76. %dir %{_localstatedir}/lib/colord
  77. %{_bindir}/*
  78. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
  79. %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
  80. %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
  81. %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
  82. %{_datadir}/man/man1/*.1.gz
  83. %{_libdir}/libcolord.so.*
  84. %config %{_sysconfdir}/colord.conf
  85. /lib/udev/rules.d/*.rules
  86. %dir %{_datadir}/color/icc/colord
  87. %{_datadir}/color/icc/colord/*.ic?
  88. %{_libdir}/colord-sensors
  89. %ghost %{_localstatedir}/lib/colord/*.db
  90. %files devel
  91. %defattr(-,root,root,-)
  92. %{_includedir}/colord-1
  93. %{_libdir}/libcolord.so
  94. %{_libdir}/pkgconfig/colord.pc
  95. # compat32
  96. %if %{build_compat32}
  97. %files -n compat32-%{name}
  98. %defattr(-,root,root,-)
  99. %{_libdir}/libcolord.so.*
  100. %files -n compat32-%{name}-devel
  101. %defattr(-,root,root,-)
  102. %{_libdir}/libcolord.so
  103. %{_libdir}/pkgconfig/colord.pc
  104. %endif
  105. %changelog
  106. * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.11-1
  107. - new upstream release
  108. - create compat32 sub packages
  109. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.10-1
  110. - initial build for Vine Linux
  111. * Wed Jul 06 2011 Richard Hughes <richard@hughsie.com> 0.1.10-1
  112. - New upstream version
  113. * Mon Jun 13 2011 Richard Hughes <richard@hughsie.com> 0.1.9-1
  114. - New upstream version
  115. * Fri Jun 02 2011 Richard Hughes <richard@hughsie.com> 0.1.8-1
  116. - New upstream version
  117. - Add a webcam device kind
  118. - Add a timestamp when making profiles default
  119. - Add support for reading and writing ICC profile metadata
  120. - Allow the client to pass file descriptors out of band to CreateProfile
  121. - Prettify the device vendor and model names
  122. - Split out the sensors into runtime-loadable shared objects
  123. - Provide some GIO async variants for the methods in CdClient
  124. - Ensure GPhoto2 devices get added to the device list
  125. * Fri May 06 2011 Richard Hughes <richard@hughsie.com> 0.1.7-1
  126. - New upstream version.
  127. - Create /var/lib/colord at buildtime not runtime for SELinux
  128. - Ensure profiles with embedded profile checksums are parsed correctly
  129. - Move the colorimeter rules to be run before 70-acl.rules
  130. - Stop watching the client when the sensor is finalized
  131. - Ensure the source is destroyed when we unref CdUsb to prevent a crash
  132. - Only enable the volume mount tracking when searching volumes
  133. * Tue Apr 26 2011 Richard Hughes <rhughes@redhat.com> 0.1.6-2
  134. - Own /var/lib/colord and /var/lib/colord/*.db
  135. * Sun Apr 24 2011 Richard Hughes <richard@hughsie.com> 0.1.6-1
  136. - New upstream version.
  137. * Thu Mar 31 2011 Richard Hughes <richard@hughsie.com> 0.1.5-1
  138. - New upstream version.
  139. * Wed Mar 09 2011 Richard Hughes <richard@hughsie.com> 0.1.4-1
  140. - New upstream version.
  141. * Mon Feb 28 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1
  142. - New upstream version.
  143. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
  144. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  145. * Fri Jan 28 2011 Richard Hughes <richard@hughsie.com> 0.1.1-2
  146. - Rebuild in the vain hope koji isn't broken today.
  147. * Wed Jan 26 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1
  148. - New upstream version.
  149. * Thu Jan 13 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
  150. - Initial version for Fedora package review.