]>
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 | |
f8758557 | 5 | %bcond_without vala # don't build Vala API |
9de3055c | 6 | # |
f8758557 JB |
7 | Summary: Color daemon - system daemon for managing color devices |
8 | Summary(pl.UTF-8): Demon colord - usługa systemowa do zarządzania urządzeniami obsługującymi kolory | |
9de3055c | 9 | Name: colord |
c2e852d9 | 10 | Version: 0.1.20 |
bf6c6bbe | 11 | Release: 1 |
9de3055c MB |
12 | License: GPL v2+ and LGPL v2+ |
13 | Group: Daemons | |
eac60526 | 14 | Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz |
c2e852d9 | 15 | # Source0-md5: a42a36158b2b52748ac8ad913cdc4cb3 |
eac60526 | 16 | URL: http://www.freedesktop.org/software/colord/ |
9de3055c MB |
17 | BuildRequires: autoconf >= 2.63 |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: dbus-devel | |
2ed775c6 | 20 | BuildRequires: gettext-devel >= 0.17 |
890c2439 | 21 | BuildRequires: glib2-devel >= 1:2.28.0 |
2ed775c6 | 22 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
c2e852d9 | 23 | BuildRequires: gtk+3-devel |
9de3055c MB |
24 | BuildRequires: gtk-doc >= 1.9 |
25 | BuildRequires: intltool >= 0.40.0 | |
2ed775c6 | 26 | BuildRequires: lcms2-devel >= 2.2 |
d4ec9d79 | 27 | BuildRequires: libgusb-devel >= 0.1.1 |
9de3055c | 28 | BuildRequires: libtool |
890c2439 | 29 | BuildRequires: libusb-devel >= 1.0.0 |
9de3055c | 30 | BuildRequires: pkgconfig |
1b49a4dd | 31 | BuildRequires: polkit-devel >= 0.103 |
15dee35b | 32 | BuildRequires: rpmbuild(macros) >= 1.644 |
d44984e3 | 33 | BuildRequires: sane-backends-devel >= 1.0.20-3 |
9de3055c MB |
34 | BuildRequires: sqlite3-devel |
35 | BuildRequires: udev-glib-devel | |
f8758557 | 36 | %{?with_vala:BuildRequires: vala} |
3cf480d3 | 37 | Requires(post,preun,postun): systemd-units >= 38 |
f8758557 | 38 | Requires: %{name}-libs = %{version}-%{release} |
1b49a4dd | 39 | Requires: polkit-libs >= 0.103 |
15dee35b | 40 | Requires: systemd-units >= 38 |
540fc0a6 | 41 | Suggests: shared-color-profiles |
9de3055c MB |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | colord is a low level system activated daemon that maps color devices | |
46 | to color profiles in the system context. | |
47 | ||
f8758557 JB |
48 | %description -l pl.UTF-8 |
49 | colord to niskopoziomowa usługa systemowa odwzorowująca urządzenia | |
50 | obsługujące kolory na profile kolorów w kontekście systemu. | |
51 | ||
52 | %package libs | |
53 | Summary: colord library | |
54 | Summary(pl.UTF-8): Biblioteka colord | |
55 | Group: Libraries | |
1b49a4dd | 56 | Requires: glib2 >= 1:2.28.0 |
f8758557 JB |
57 | Suggests: %{name} = %{version}-%{release} |
58 | Conflicts: colord < 0.1.12-4 | |
59 | ||
60 | %description libs | |
61 | colord library. | |
62 | ||
63 | %description libs -l pl.UTF-8 | |
64 | Biblioteka colord. | |
65 | ||
9de3055c MB |
66 | %package devel |
67 | Summary: Header files for colord library | |
68 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord | |
69 | Group: Development/Libraries | |
f8758557 | 70 | Requires: %{name}-libs = %{version}-%{release} |
9de3055c | 71 | Requires: dbus-devel |
890c2439 | 72 | Requires: glib2-devel >= 1:2.28.0 |
9de3055c MB |
73 | |
74 | %description devel | |
75 | Header files for colord library. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe biblioteki colord. | |
79 | ||
80 | %package static | |
81 | Summary: Static colord library | |
82 | Summary(pl.UTF-8): Statyczna biblioteka colord | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static colord library. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka colord. | |
91 | ||
92 | %package apidocs | |
93 | Summary: colord API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API colord | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | ||
98 | %description apidocs | |
99 | colord API documentation. | |
100 | ||
101 | %description apidocs -l pl.UTF-8 | |
102 | Dokumentacja API colord. | |
103 | ||
f8758557 JB |
104 | %package -n vala-colord |
105 | Summary: colord API for Vala language | |
106 | Summary(pl.UTF-8): API colord dla języka Vala | |
107 | Group: Development/Libraries | |
108 | Requires: %{name}-devel = %{version}-%{release} | |
109 | ||
110 | %description -n vala-colord | |
111 | colord API for Vala language. | |
112 | ||
113 | %description -n vala-colord -l pl.UTF-8 | |
114 | API colord dla języka Vala. | |
115 | ||
c2e852d9 ŁK |
116 | %package gtk |
117 | Summary: GTK helper library for colord | |
118 | Summary(pl.UTF-8): Biblioteka pomocniczna GTK dla colord | |
119 | Group: Libraries | |
120 | Suggests: %{name} = %{version}-%{release} | |
121 | ||
122 | %description gtk | |
123 | GTK helper library for colord. | |
124 | ||
125 | %description gtk -l pl.UTF-8 | |
126 | Biblioteka pomocnicza GTK dla colord. | |
127 | ||
128 | %package gtk-devel | |
129 | Summary: Header files for colord-gtk library | |
130 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord-gtk | |
131 | Group: Development/Libraries | |
132 | Requires: %{name}-gtk = %{version}-%{release} | |
133 | Requires: gtk+3-devel | |
134 | ||
135 | %description gtk-devel | |
136 | Header files for colord-gtk library. | |
137 | ||
138 | %description gtk-devel -l pl.UTF-8 | |
139 | Pliki nagłówkowe biblioteki colord-gtk. | |
140 | ||
9de3055c MB |
141 | %prep |
142 | %setup -q | |
143 | ||
144 | %build | |
145 | %{__intltoolize} | |
146 | %{__libtoolize} | |
3d2630d4 | 147 | %{__aclocal} -I m4 |
9de3055c MB |
148 | %{__autoconf} |
149 | %{__autoheader} | |
150 | %{__automake} | |
151 | %configure \ | |
540fc0a6 | 152 | --disable-silent-rules \ |
9de3055c MB |
153 | %{__enable_disable apidocs gtk-doc} \ |
154 | %{__enable_disable static_libs static} \ | |
15dee35b MB |
155 | --with-html-dir=%{_gtkdocdir} \ |
156 | --with-systemdsystemunitdir=%{systemdunitdir} | |
facc7685 PZ |
157 | # doc build is broken with -j |
158 | %{__make} -j1 | |
9de3055c MB |
159 | |
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %{__make} install \ | |
164 | DESTDIR=$RPM_BUILD_ROOT | |
165 | ||
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
facc7685 PZ |
167 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a |
168 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la | |
9de3055c | 169 | |
37c83a92 | 170 | # the same as it locale |
c2e852d9 | 171 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/it_IT |
37c83a92 | 172 | |
9de3055c MB |
173 | %find_lang %{name} |
174 | ||
175 | %clean | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
15dee35b MB |
178 | %post |
179 | %systemd_post colord.service | |
180 | ||
181 | %preun | |
182 | %systemd_preun colord.service | |
183 | ||
184 | %postun | |
185 | %systemd_reload | |
186 | ||
f8758557 JB |
187 | %post libs -p /sbin/ldconfig |
188 | %postun libs -p /sbin/ldconfig | |
9de3055c MB |
189 | |
190 | %files -f %{name}.lang | |
191 | %defattr(644,root,root,755) | |
192 | %doc AUTHORS ChangeLog NEWS README TODO | |
facc7685 PZ |
193 | %attr(755,root,root) %{_bindir}/cd-create-profile |
194 | %attr(755,root,root) %{_bindir}/cd-fix-profile | |
9de3055c MB |
195 | %attr(755,root,root) %{_bindir}/colormgr |
196 | %attr(755,root,root) %{_libexecdir}/colord | |
3d2630d4 | 197 | %attr(755,root,root) %{_libexecdir}/colord-sane |
facc7685 | 198 | %dir %{_libdir}/colord-sensors |
d4ec9d79 | 199 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_colorhug.so |
890c2439 MB |
200 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so |
201 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so | |
1b49a4dd JB |
202 | # disabled for now |
203 | #%attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so | |
facc7685 PZ |
204 | %dir %{_datadir}/color/icc/colord |
205 | %{_datadir}/color/icc/colord/*.icc | |
73d45322 MB |
206 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml |
207 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml | |
facc7685 | 208 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml |
73d45322 | 209 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml |
3d2630d4 | 210 | %{_datadir}/dbus-1/interfaces/org.freedesktop.colord.sane.xml |
9de3055c | 211 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
3d2630d4 | 212 | %{_datadir}/dbus-1/system-services/org.freedesktop.colord-sane.service |
9de3055c | 213 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy |
facc7685 | 214 | %{_mandir}/man1/cd-create-profile.1* |
eac60526 | 215 | %{_mandir}/man1/cd-fix-profile.1* |
9de3055c | 216 | %{_mandir}/man1/colormgr.1* |
15dee35b | 217 | %{systemdunitdir}/colord.service |
3d2630d4 | 218 | %{systemdunitdir}/colord-sane.service |
9de3055c MB |
219 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf |
220 | /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf | |
3d2630d4 | 221 | /etc/dbus-1/system.d/org.freedesktop.colord-sane.conf |
facc7685 | 222 | /lib/udev/rules.d/69-cd-sensors.rules |
9de3055c | 223 | /lib/udev/rules.d/95-cd-devices.rules |
890c2439 | 224 | %dir /var/lib/colord |
f8758557 JB |
225 | |
226 | %files libs | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* | |
229 | %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1 | |
eac60526 | 230 | %{_libdir}/girepository-1.0/Colord-1.0.typelib |
9de3055c MB |
231 | |
232 | %files devel | |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_libdir}/libcolord.so | |
facc7685 | 235 | %{_includedir}/colord-1 |
9de3055c | 236 | %{_pkgconfigdir}/colord.pc |
eac60526 | 237 | %{_datadir}/gir-1.0/Colord-1.0.gir |
9de3055c MB |
238 | |
239 | %if %{with static_libs} | |
240 | %files static | |
241 | %defattr(644,root,root,755) | |
242 | %{_libdir}/libcolord.a | |
c2e852d9 | 243 | %{_libdir}/libcolord-gtk.a |
9de3055c MB |
244 | %endif |
245 | ||
246 | %if %{with apidocs} | |
247 | %files apidocs | |
248 | %defattr(644,root,root,755) | |
249 | %{_gtkdocdir}/colord | |
250 | %endif | |
f8758557 JB |
251 | |
252 | %if %{with vala} | |
253 | %files -n vala-colord | |
254 | %defattr(644,root,root,755) | |
255 | %{_datadir}/vala/vapi/colord.vapi | |
256 | %endif | |
c2e852d9 ŁK |
257 | |
258 | %files gtk | |
259 | %defattr(644,root,root,755) | |
260 | %attr(755,root,root) %{_libdir}/libcolord-gtk.so.*.*.* | |
261 | %attr(755,root,root) %ghost %{_libdir}/libcolord-gtk.so.1 | |
262 | %{_libdir}/girepository-1.0/ColordGtk-1.0.typelib | |
263 | ||
264 | %files gtk-devel | |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{_libdir}/libcolord-gtk.so | |
267 | %{_pkgconfigdir}/colord-gtk.pc | |
268 | %{_datadir}/gir-1.0/ColordGtk-1.0.gir |