colord-vl.spec 6.3 KB

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