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