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