]>
Commit | Line | Data |
---|---|---|
4eb0a7a8 JB |
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 | # | |
7 | Summary: GTK helper library for colord | |
8 | Summary(pl.UTF-8): Biblioteka pomocniczna GTK dla colord | |
9 | Name: colord-gtk | |
10 | Version: 0.1.22 | |
11 | Release: 1 | |
12 | License: GPL v2+ and LGPL v2+ | |
13 | Group: Libraries | |
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) | |
33 | ||
34 | %description | |
35 | GTK helper library for colord. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Biblioteka pomocniczna GTK dla colord. | |
39 | ||
40 | %package devel | |
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 | |
47 | ||
48 | %description devel | |
49 | Header files for colord-gtk library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki colord-gtk. | |
53 | ||
54 | %package static | |
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} | |
59 | ||
60 | %description static | |
61 | Static colord-gtk library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka colord-gtk. | |
65 | ||
66 | %package apidocs | |
67 | Summary: colord-gtk API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API colord-gtk | |
69 | Group: Documentation | |
70 | Requires: gtk-doc-common | |
71 | ||
72 | %description apidocs | |
73 | colord-gtk API documentation. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API colord-gtk. | |
77 | ||
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} | |
84 | ||
85 | %description -n vala-colord-gtk | |
86 | colord-gtk API for Vala language. | |
87 | ||
88 | %description -n vala-colord-gtk -l pl.UTF-8 | |
89 | API colord-gtk dla języka Vala. | |
90 | ||
91 | %prep | |
92 | %setup -q | |
93 | ||
94 | %build | |
95 | %{__intltoolize} | |
96 | %{__libtoolize} | |
97 | %{__aclocal} -I m4 | |
98 | %{__autoconf} | |
99 | %{__autoheader} | |
100 | %{__automake} | |
101 | %configure \ | |
102 | --disable-silent-rules \ | |
103 | %{__enable_disable apidocs gtk-doc} \ | |
104 | %{__enable_disable static_libs static} \ | |
105 | --with-html-dir=%{_gtkdocdir} | |
106 | ||
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
116 | ||
117 | # only empty translation exists atm. (as of 0.1.22) | |
118 | #find_lang %{name} | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | # -f %{name}.lang | |
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 | |
133 | ||
134 | %files devel | |
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 | |
141 | ||
142 | %if %{with static_libs} | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libcolord-gtk.a | |
146 | %endif | |
147 | ||
148 | %if %{with apidocs} | |
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
151 | %{_gtkdocdir}/colord-gtk | |
152 | %endif | |
153 | ||
154 | %if %{with vala} | |
155 | %files -n vala-colord-gtk | |
156 | %defattr(644,root,root,755) | |
157 | %{_datadir}/vala/vapi/colord-gtk.vapi | |
158 | %endif |