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: 1375d6273e6400110ce33f6f77039b7b
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
30 %{?with_vala:BuildRequires: vala}
31 Requires: colord >= %{version}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 GTK helper library for colord.
37 %description -l pl.UTF-8
38 Biblioteka pomocniczna GTK dla colord.
41 Summary: Header files for colord-gtk library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord-gtk
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: colord-devel >= %{version}
46 Requires: gtk+3-devel >= 3.0
49 Header files for colord-gtk library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki colord-gtk.
55 Summary: Static colord-gtk library
56 Summary(pl.UTF-8): Statyczna biblioteka colord-gtk
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static colord-gtk library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka colord-gtk.
67 Summary: colord-gtk API documentation
68 Summary(pl.UTF-8): Dokumentacja API colord-gtk
70 Requires: gtk-doc-common
73 colord-gtk API documentation.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API colord-gtk.
78 %package -n vala-colord-gtk
79 Summary: colord-gtk API for Vala language
80 Summary(pl.UTF-8): API colord-gtk dla języka Vala
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
83 Requires: vala-colord >= %{version}
85 %description -n vala-colord-gtk
86 colord-gtk API for Vala language.
88 %description -n vala-colord-gtk -l pl.UTF-8
89 API colord-gtk dla języka Vala.
102 --disable-silent-rules \
103 %{__enable_disable apidocs gtk-doc} \
104 %{__enable_disable static_libs static} \
105 --with-html-dir=%{_gtkdocdir}
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
117 # only empty translation exists atm. (as of 0.1.22)
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS MAINTAINERS NEWS README TODO
130 %attr(755,root,root) %{_libdir}/libcolord-gtk.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libcolord-gtk.so.1
132 %{_libdir}/girepository-1.0/ColordGtk-1.0.typelib
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libcolord-gtk.so
137 %{_includedir}/colord-1/colord-gtk.h
138 %{_includedir}/colord-1/colord-gtk
139 %{_datadir}/gir-1.0/ColordGtk-1.0.gir
140 %{_pkgconfigdir}/colord-gtk.pc
142 %if %{with static_libs}
144 %defattr(644,root,root,755)
145 %{_libdir}/libcolord-gtk.a
150 %defattr(644,root,root,755)
151 %{_gtkdocdir}/colord-gtk
155 %files -n vala-colord-gtk
156 %defattr(644,root,root,755)
157 %{_datadir}/vala/vapi/colord-gtk.vapi