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
7 Summary: GTK helper library for colord
8 Summary(pl.UTF-8): Biblioteka pomocniczna GTK dla colord
12 License: GPL v2+ and LGPL v2+
14 Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
15 # Source0-md5: 019fa6f9349ef39d1bd28c3dcf6fb191
16 URL: http://www.freedesktop.org/software/colord/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.9
19 BuildRequires: colord-devel >= %{version}
20 BuildRequires: gettext-devel >= 0.17
21 BuildRequires: glib2-devel >= 1:2.28.0
22 BuildRequires: gobject-introspection-devel >= 0.9.8
23 BuildRequires: gtk+3-devel >= 3.0
24 BuildRequires: gtk-doc >= 1.9
25 BuildRequires: intltool >= 0.40.0
26 BuildRequires: lcms2-devel >= 2.2
27 BuildRequires: libtool >= 2:2.0
28 BuildRequires: pkgconfig
29 BuildRequires: rpmbuild(macros) >= 1.644
32 BuildRequires: vala-colord >= %{version}
34 Requires: colord-libs >= %{version}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 GTK helper library for colord.
40 %description -l pl.UTF-8
41 Biblioteka pomocniczna GTK dla colord.
44 Summary: Header files for colord-gtk library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord-gtk
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: colord-devel >= %{version}
49 Requires: gtk+3-devel >= 3.0
52 Header files for colord-gtk library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki colord-gtk.
58 Summary: Static colord-gtk library
59 Summary(pl.UTF-8): Statyczna biblioteka colord-gtk
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static colord-gtk library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka colord-gtk.
70 Summary: colord-gtk API documentation
71 Summary(pl.UTF-8): Dokumentacja API colord-gtk
73 Requires: gtk-doc-common
76 colord-gtk API documentation.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API colord-gtk.
81 %package -n vala-colord-gtk
82 Summary: colord-gtk API for Vala language
83 Summary(pl.UTF-8): API colord-gtk dla języka Vala
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
86 Requires: vala-colord >= %{version}
88 %description -n vala-colord-gtk
89 colord-gtk API for Vala language.
91 %description -n vala-colord-gtk -l pl.UTF-8
92 API colord-gtk dla języka Vala.
105 --disable-silent-rules \
106 %{__enable_disable apidocs gtk-doc} \
107 %{__enable_disable static_libs static} \
108 --with-html-dir=%{_gtkdocdir}
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
118 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
120 # only empty translation exists atm. (as of 0.1.22)
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc AUTHORS MAINTAINERS NEWS README TODO
133 %attr(755,root,root) %{_libdir}/libcolord-gtk.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libcolord-gtk.so.1
135 %{_libdir}/girepository-1.0/ColordGtk-1.0.typelib
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libcolord-gtk.so
140 %{_includedir}/colord-1/colord-gtk.h
141 %{_includedir}/colord-1/colord-gtk
142 %{_datadir}/gir-1.0/ColordGtk-1.0.gir
143 %{_pkgconfigdir}/colord-gtk.pc
145 %if %{with static_libs}
147 %defattr(644,root,root,755)
148 %{_libdir}/libcolord-gtk.a
153 %defattr(644,root,root,755)
154 %{_gtkdocdir}/colord-gtk
158 %files -n vala-colord-gtk
159 %defattr(644,root,root,755)
160 %{_datadir}/vala/vapi/colord-gtk.vapi