]>
Commit | Line | Data |
---|---|---|
9de3055c MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: Color daemon | |
7 | Name: colord | |
eac60526 | 8 | Version: 0.1.12 |
9de3055c MB |
9 | Release: 1 |
10 | License: GPL v2+ and LGPL v2+ | |
11 | Group: Daemons | |
eac60526 AF |
12 | Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 6771aef77142c66bc92988c5174f24b5 | |
14 | URL: http://www.freedesktop.org/software/colord/ | |
9de3055c MB |
15 | BuildRequires: autoconf >= 2.63 |
16 | BuildRequires: automake >= 1:1.9 | |
17 | BuildRequires: dbus-devel | |
18 | BuildRequires: gettext-devel | |
890c2439 | 19 | BuildRequires: glib2-devel >= 1:2.28.0 |
9de3055c MB |
20 | BuildRequires: gtk-doc >= 1.9 |
21 | BuildRequires: intltool >= 0.40.0 | |
22 | BuildRequires: lcms2-devel | |
23 | BuildRequires: libtool | |
890c2439 | 24 | BuildRequires: libusb-devel >= 1.0.0 |
9de3055c MB |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: polkit-devel >= 0.97 | |
27 | BuildRequires: sane-backends-devel | |
28 | BuildRequires: sqlite3-devel | |
29 | BuildRequires: udev-glib-devel | |
eac60526 | 30 | BuildRequires: vala |
540fc0a6 | 31 | Suggests: shared-color-profiles |
9de3055c MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | colord is a low level system activated daemon that maps color devices | |
36 | to color profiles in the system context. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for colord library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: dbus-devel | |
890c2439 | 44 | Requires: glib2-devel >= 1:2.28.0 |
9de3055c MB |
45 | |
46 | %description devel | |
47 | Header files for colord library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki colord. | |
51 | ||
52 | %package static | |
53 | Summary: Static colord library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka colord | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static colord library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka colord. | |
63 | ||
64 | %package apidocs | |
65 | Summary: colord API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API colord | |
67 | Group: Documentation | |
68 | Requires: gtk-doc-common | |
69 | ||
70 | %description apidocs | |
71 | colord API documentation. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API colord. | |
75 | ||
76 | %prep | |
77 | %setup -q | |
78 | ||
79 | %build | |
80 | %{__intltoolize} | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
86 | %configure \ | |
540fc0a6 | 87 | --disable-silent-rules \ |
9de3055c MB |
88 | %{__enable_disable apidocs gtk-doc} \ |
89 | %{__enable_disable static_libs static} \ | |
90 | --with-html-dir=%{_gtkdocdir} | |
facc7685 PZ |
91 | # doc build is broken with -j |
92 | %{__make} -j1 | |
9de3055c MB |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
facc7685 PZ |
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a |
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la | |
9de3055c MB |
103 | |
104 | %find_lang %{name} | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files -f %{name}.lang | |
113 | %defattr(644,root,root,755) | |
114 | %doc AUTHORS ChangeLog NEWS README TODO | |
facc7685 PZ |
115 | %attr(755,root,root) %{_bindir}/cd-create-profile |
116 | %attr(755,root,root) %{_bindir}/cd-fix-profile | |
9de3055c MB |
117 | %attr(755,root,root) %{_bindir}/colormgr |
118 | %attr(755,root,root) %{_libexecdir}/colord | |
119 | %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1 | |
facc7685 | 121 | %dir %{_libdir}/colord-sensors |
890c2439 MB |
122 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so |
123 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so | |
124 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so | |
facc7685 PZ |
125 | %dir %{_datadir}/color/icc/colord |
126 | %{_datadir}/color/icc/colord/*.icc | |
73d45322 MB |
127 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml |
128 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml | |
facc7685 | 129 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml |
73d45322 | 130 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml |
9de3055c MB |
131 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
132 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy | |
facc7685 | 133 | %{_mandir}/man1/cd-create-profile.1* |
eac60526 | 134 | %{_mandir}/man1/cd-fix-profile.1* |
9de3055c MB |
135 | %{_mandir}/man1/colormgr.1* |
136 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf | |
137 | /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf | |
facc7685 | 138 | /lib/udev/rules.d/69-cd-sensors.rules |
9de3055c | 139 | /lib/udev/rules.d/95-cd-devices.rules |
890c2439 | 140 | %dir /var/lib/colord |
eac60526 | 141 | %{_libdir}/girepository-1.0/Colord-1.0.typelib |
9de3055c MB |
142 | |
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_libdir}/libcolord.so | |
facc7685 | 146 | %{_includedir}/colord-1 |
9de3055c | 147 | %{_pkgconfigdir}/colord.pc |
eac60526 AF |
148 | %{_datadir}/vala/vapi/colord.vapi |
149 | %{_datadir}/gir-1.0/Colord-1.0.gir | |
9de3055c MB |
150 | |
151 | %if %{with static_libs} | |
152 | %files static | |
153 | %defattr(644,root,root,755) | |
154 | %{_libdir}/libcolord.a | |
155 | %endif | |
156 | ||
157 | %if %{with apidocs} | |
158 | %files apidocs | |
159 | %defattr(644,root,root,755) | |
160 | %{_gtkdocdir}/colord | |
161 | %endif |