]>
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 |
395cb103 | 10 | Version: 0.1.24 |
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 |
395cb103 | 15 | # Source0-md5: 1e7c4164c35b8415af108fb2a0db7e1f |
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 |
9de3055c | 32 | BuildRequires: sqlite3-devel |
395cb103 | 33 | BuildRequires: systemd-devel >= 44 |
c809351e | 34 | BuildRequires: udev-devel |
9de3055c | 35 | BuildRequires: udev-glib-devel |
f8758557 | 36 | %{?with_vala:BuildRequires: vala} |
395cb103 | 37 | Requires(post,preun,postun): systemd-units >= 44 |
f8758557 | 38 | Requires: %{name}-libs = %{version}-%{release} |
1b49a4dd | 39 | Requires: polkit-libs >= 0.103 |
395cb103 | 40 | Requires: systemd-units >= 44 |
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 | ||
75c27ada JB |
116 | %package -n bash-completion-colord |
117 | Summary: bash-completion for colormgr console commands | |
118 | Summary(pl.UTF-8): Bashowe uzupełnianie poleceń terminalowych colormgr | |
119 | Group: Applications/Shells | |
120 | Requires: bash-completion | |
c2e852d9 | 121 | |
75c27ada JB |
122 | %description -n bash-completion-colord |
123 | bash-completion for colormgr console commands. | |
c2e852d9 | 124 | |
75c27ada JB |
125 | %description -n bash-completion-colord -l pl.UTF-8 |
126 | Bashowe uzupełnianie poleceń terminalowych colormgr. | |
c2e852d9 | 127 | |
9de3055c MB |
128 | %prep |
129 | %setup -q | |
130 | ||
131 | %build | |
132 | %{__intltoolize} | |
133 | %{__libtoolize} | |
3d2630d4 | 134 | %{__aclocal} -I m4 |
9de3055c MB |
135 | %{__autoconf} |
136 | %{__autoheader} | |
137 | %{__automake} | |
138 | %configure \ | |
540fc0a6 | 139 | --disable-silent-rules \ |
9de3055c MB |
140 | %{__enable_disable apidocs gtk-doc} \ |
141 | %{__enable_disable static_libs static} \ | |
395cb103 | 142 | %{__enable_disable vala} \ |
15dee35b MB |
143 | --with-html-dir=%{_gtkdocdir} \ |
144 | --with-systemdsystemunitdir=%{systemdunitdir} | |
facc7685 PZ |
145 | # doc build is broken with -j |
146 | %{__make} -j1 | |
9de3055c MB |
147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %{__make} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
395cb103 | 154 | # obsoleted by pkg-config |
9de3055c | 155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
395cb103 JB |
156 | # loadable modules |
157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-{plugins,sensors}/*.{la,a} | |
9de3055c | 158 | |
37c83a92 | 159 | # the same as it locale |
c2e852d9 | 160 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/it_IT |
5a4c4b3f JB |
161 | # empty version of bg locale |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bg_BG | |
37c83a92 | 163 | |
9de3055c MB |
164 | %find_lang %{name} |
165 | ||
166 | %clean | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
15dee35b MB |
169 | %post |
170 | %systemd_post colord.service | |
171 | ||
172 | %preun | |
173 | %systemd_preun colord.service | |
174 | ||
175 | %postun | |
176 | %systemd_reload | |
177 | ||
f8758557 JB |
178 | %post libs -p /sbin/ldconfig |
179 | %postun libs -p /sbin/ldconfig | |
9de3055c MB |
180 | |
181 | %files -f %{name}.lang | |
182 | %defattr(644,root,root,755) | |
183 | %doc AUTHORS ChangeLog NEWS README TODO | |
facc7685 PZ |
184 | %attr(755,root,root) %{_bindir}/cd-create-profile |
185 | %attr(755,root,root) %{_bindir}/cd-fix-profile | |
9de3055c MB |
186 | %attr(755,root,root) %{_bindir}/colormgr |
187 | %attr(755,root,root) %{_libexecdir}/colord | |
395cb103 JB |
188 | %dir %{_libdir}/colord-plugins |
189 | %attr(755,root,root) %{_libdir}/colord-plugins/libcd_plugin_camera.so | |
190 | %attr(755,root,root) %{_libdir}/colord-plugins/libcd_plugin_scanner.so | |
facc7685 | 191 | %dir %{_libdir}/colord-sensors |
d4ec9d79 | 192 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_colorhug.so |
890c2439 MB |
193 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so |
194 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so | |
1b49a4dd JB |
195 | # disabled for now |
196 | #%attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so | |
facc7685 PZ |
197 | %dir %{_datadir}/color/icc/colord |
198 | %{_datadir}/color/icc/colord/*.icc | |
73d45322 MB |
199 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml |
200 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml | |
facc7685 | 201 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml |
73d45322 | 202 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml |
9de3055c MB |
203 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
204 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy | |
facc7685 | 205 | %{_mandir}/man1/cd-create-profile.1* |
eac60526 | 206 | %{_mandir}/man1/cd-fix-profile.1* |
9de3055c | 207 | %{_mandir}/man1/colormgr.1* |
15dee35b | 208 | %{systemdunitdir}/colord.service |
9de3055c MB |
209 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf |
210 | /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf | |
facc7685 | 211 | /lib/udev/rules.d/69-cd-sensors.rules |
9de3055c | 212 | /lib/udev/rules.d/95-cd-devices.rules |
890c2439 | 213 | %dir /var/lib/colord |
f8758557 JB |
214 | |
215 | %files libs | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* | |
218 | %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1 | |
eac60526 | 219 | %{_libdir}/girepository-1.0/Colord-1.0.typelib |
9de3055c MB |
220 | |
221 | %files devel | |
222 | %defattr(644,root,root,755) | |
223 | %attr(755,root,root) %{_libdir}/libcolord.so | |
facc7685 | 224 | %{_includedir}/colord-1 |
9de3055c | 225 | %{_pkgconfigdir}/colord.pc |
eac60526 | 226 | %{_datadir}/gir-1.0/Colord-1.0.gir |
9de3055c MB |
227 | |
228 | %if %{with static_libs} | |
229 | %files static | |
230 | %defattr(644,root,root,755) | |
231 | %{_libdir}/libcolord.a | |
75c27ada JB |
232 | %endif |
233 | ||
9de3055c MB |
234 | %if %{with apidocs} |
235 | %files apidocs | |
236 | %defattr(644,root,root,755) | |
237 | %{_gtkdocdir}/colord | |
238 | %endif | |
f8758557 JB |
239 | |
240 | %if %{with vala} | |
241 | %files -n vala-colord | |
242 | %defattr(644,root,root,755) | |
243 | %{_datadir}/vala/vapi/colord.vapi | |
244 | %endif | |
c2e852d9 | 245 | |
75c27ada | 246 | %files -n bash-completion-colord |
c2e852d9 | 247 | %defattr(644,root,root,755) |
75c27ada | 248 | %{_sysconfdir}/bash_completion.d/colormgr-completion.bash |