]>
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 | |
5 | # | |
6 | Summary: Color daemon | |
7 | Name: colord | |
facc7685 | 8 | Version: 0.1.10 |
9de3055c MB |
9 | Release: 1 |
10 | License: GPL v2+ and LGPL v2+ | |
11 | Group: Daemons | |
facc7685 PZ |
12 | Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 6d4985b922163128beed42ecfdef5ede | |
9de3055c MB |
14 | URL: http://colord.hughsie.com/ |
15 | BuildRequires: autoconf >= 2.63 | |
16 | BuildRequires: automake >= 1:1.9 | |
17 | BuildRequires: dbus-devel | |
18 | BuildRequires: gettext-devel | |
890c2439 | 19 | BuildRequires: glib2-devel >= 1:2.28.0 |
9de3055c MB |
20 | BuildRequires: gtk-doc >= 1.9 |
21 | BuildRequires: intltool >= 0.40.0 | |
22 | BuildRequires: lcms2-devel | |
23 | BuildRequires: libtool | |
890c2439 | 24 | BuildRequires: libusb-devel >= 1.0.0 |
9de3055c MB |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: polkit-devel >= 0.97 | |
27 | BuildRequires: sane-backends-devel | |
28 | BuildRequires: sqlite3-devel | |
29 | BuildRequires: udev-glib-devel | |
540fc0a6 | 30 | Suggests: shared-color-profiles |
9de3055c MB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | colord is a low level system activated daemon that maps color devices | |
35 | to color profiles in the system context. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for colord library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: dbus-devel | |
890c2439 | 43 | Requires: glib2-devel >= 1:2.28.0 |
9de3055c MB |
44 | |
45 | %description devel | |
46 | Header files for colord library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki colord. | |
50 | ||
51 | %package static | |
52 | Summary: Static colord library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka colord | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static colord library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka colord. | |
62 | ||
63 | %package apidocs | |
64 | Summary: colord API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API colord | |
66 | Group: Documentation | |
67 | Requires: gtk-doc-common | |
68 | ||
69 | %description apidocs | |
70 | colord API documentation. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API colord. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %{__intltoolize} | |
80 | %{__libtoolize} | |
81 | %{__aclocal} | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
85 | %configure \ | |
540fc0a6 | 86 | --disable-silent-rules \ |
9de3055c MB |
87 | %{__enable_disable apidocs gtk-doc} \ |
88 | %{__enable_disable static_libs static} \ | |
89 | --with-html-dir=%{_gtkdocdir} | |
facc7685 PZ |
90 | # doc build is broken with -j |
91 | %{__make} -j1 | |
9de3055c MB |
92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
facc7685 PZ |
100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a |
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la | |
9de3055c MB |
102 | |
103 | %find_lang %{name} | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files -f %{name}.lang | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog NEWS README TODO | |
facc7685 PZ |
114 | %attr(755,root,root) %{_bindir}/cd-create-profile |
115 | %attr(755,root,root) %{_bindir}/cd-fix-profile | |
9de3055c MB |
116 | %attr(755,root,root) %{_bindir}/colormgr |
117 | %attr(755,root,root) %{_libexecdir}/colord | |
118 | %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1 | |
facc7685 | 120 | %dir %{_libdir}/colord-sensors |
890c2439 MB |
121 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so |
122 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so | |
123 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so | |
facc7685 PZ |
124 | %dir %{_datadir}/color/icc/colord |
125 | %{_datadir}/color/icc/colord/*.icc | |
73d45322 MB |
126 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml |
127 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml | |
facc7685 | 128 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml |
73d45322 | 129 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml |
9de3055c MB |
130 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
131 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy | |
facc7685 | 132 | %{_mandir}/man1/cd-create-profile.1* |
9de3055c MB |
133 | %{_mandir}/man1/colormgr.1* |
134 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf | |
135 | /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf | |
facc7685 | 136 | /lib/udev/rules.d/69-cd-sensors.rules |
9de3055c | 137 | /lib/udev/rules.d/95-cd-devices.rules |
890c2439 | 138 | %dir /var/lib/colord |
9de3055c MB |
139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
142 | %attr(755,root,root) %{_libdir}/libcolord.so | |
facc7685 | 143 | %{_includedir}/colord-1 |
9de3055c MB |
144 | %{_pkgconfigdir}/colord.pc |
145 | ||
146 | %if %{with static_libs} | |
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libcolord.a | |
150 | %endif | |
151 | ||
152 | %if %{with apidocs} | |
153 | %files apidocs | |
154 | %defattr(644,root,root,755) | |
155 | %{_gtkdocdir}/colord | |
156 | %endif |