colord-vl.spec 6.9 KB

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