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