colord-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Color daemon
  3. Name: colord
  4. Version: 0.1.15
  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. %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
  83. %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
  84. %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
  85. %{_datadir}/man/man1/*.1.gz
  86. %{_libdir}/libcolord.so.*
  87. %config %{_sysconfdir}/colord.conf
  88. /lib/udev/rules.d/*.rules
  89. %dir %{_datadir}/color/icc/colord
  90. %{_datadir}/color/icc/colord/*.ic?
  91. %{_libdir}/colord-sensors
  92. %ghost %{_localstatedir}/lib/colord/*.db
  93. %files devel
  94. %defattr(-,root,root,-)
  95. %{_includedir}/colord-1
  96. %{_libdir}/libcolord.so
  97. %{_libdir}/pkgconfig/colord.pc
  98. # compat32
  99. %if %{build_compat32}
  100. %files -n compat32-%{name}
  101. %defattr(-,root,root,-)
  102. %{_libdir}/libcolord.so.*
  103. %files -n compat32-%{name}-devel
  104. %defattr(-,root,root,-)
  105. %{_libdir}/libcolord.so
  106. %{_libdir}/pkgconfig/colord.pc
  107. %endif
  108. %changelog
  109. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.15-1
  110. - new upstream release
  111. * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.14-1
  112. - new upstream release
  113. * Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.13-1
  114. - new upstream release
  115. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.12-1
  116. - new upstream release
  117. * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.11-1
  118. - new upstream release
  119. - create compat32 sub packages
  120. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp 0.1.10-1
  121. - initial build for Vine Linux
  122. * Wed Jul 06 2011 Richard Hughes <richard@hughsie.com> 0.1.10-1
  123. - New upstream version
  124. * Mon Jun 13 2011 Richard Hughes <richard@hughsie.com> 0.1.9-1
  125. - New upstream version
  126. * Fri Jun 02 2011 Richard Hughes <richard@hughsie.com> 0.1.8-1
  127. - New upstream version
  128. - Add a webcam device kind
  129. - Add a timestamp when making profiles default
  130. - Add support for reading and writing ICC profile metadata
  131. - Allow the client to pass file descriptors out of band to CreateProfile
  132. - Prettify the device vendor and model names
  133. - Split out the sensors into runtime-loadable shared objects
  134. - Provide some GIO async variants for the methods in CdClient
  135. - Ensure GPhoto2 devices get added to the device list
  136. * Fri May 06 2011 Richard Hughes <richard@hughsie.com> 0.1.7-1
  137. - New upstream version.
  138. - Create /var/lib/colord at buildtime not runtime for SELinux
  139. - Ensure profiles with embedded profile checksums are parsed correctly
  140. - Move the colorimeter rules to be run before 70-acl.rules
  141. - Stop watching the client when the sensor is finalized
  142. - Ensure the source is destroyed when we unref CdUsb to prevent a crash
  143. - Only enable the volume mount tracking when searching volumes
  144. * Tue Apr 26 2011 Richard Hughes <rhughes@redhat.com> 0.1.6-2
  145. - Own /var/lib/colord and /var/lib/colord/*.db
  146. * Sun Apr 24 2011 Richard Hughes <richard@hughsie.com> 0.1.6-1
  147. - New upstream version.
  148. * Thu Mar 31 2011 Richard Hughes <richard@hughsie.com> 0.1.5-1
  149. - New upstream version.
  150. * Wed Mar 09 2011 Richard Hughes <richard@hughsie.com> 0.1.4-1
  151. - New upstream version.
  152. * Mon Feb 28 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1
  153. - New upstream version.
  154. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
  155. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  156. * Fri Jan 28 2011 Richard Hughes <richard@hughsie.com> 0.1.1-2
  157. - Rebuild in the vain hope koji isn't broken today.
  158. * Wed Jan 26 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1
  159. - New upstream version.
  160. * Thu Jan 13 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
  161. - Initial version for Fedora package review.