]>
Commit | Line | Data |
---|---|---|
f27661b8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without ostree # ostree support | |
4 | %bcond_with alpm # Arch Linux PacMan support | |
dc0e2239 | 5 | |
08ba24e9 JB |
6 | Summary: GLib Objects and helper methods for reading and writing AppStream metadata |
7 | Summary(pl.UTF-8): Obiekty GLiba i metody pomocnicze do odczytu i zapisu metadanych AppStream | |
8 | Name: appstream-glib | |
9a568536 | 9 | Version: 0.5.4 |
dc0e2239 | 10 | Release: 2 |
08ba24e9 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
13 | Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz | |
9a568536 | 14 | # Source0-md5: 894f5a2d0d8ff8d5021304b1ddd2b0a7 |
77502258 JB |
15 | Patch0: %{name}-rpm5.patch |
16 | Patch1: %{name}-pc.patch | |
08ba24e9 | 17 | URL: http://people.freedesktop.org/~hughsient/appstream-glib/ |
f27661b8 | 18 | %{?with_alpm:BuildRequires: alpm-devel} |
77502258 JB |
19 | BuildRequires: autoconf >= 2.63 |
20 | BuildRequires: automake >= 1:1.9 | |
21 | BuildRequires: docbook-dtd43-xml | |
22 | BuildRequires: docbook-style-xsl | |
a4e4c62e | 23 | BuildRequires: fontconfig-devel |
0c3985a1 JB |
24 | # pkgconfig(freetype2) >= 9.10.0 |
25 | BuildRequires: freetype-devel >= 1:2.2.1 | |
3fe855f5 | 26 | BuildRequires: gcab-devel |
c440ce23 | 27 | BuildRequires: gdk-pixbuf2-devel >= 2.31.5 |
f27661b8 | 28 | BuildRequires: gettext-tools >= 0.17 |
c440ce23 | 29 | BuildRequires: glib2-devel >= 1:2.45.8 |
08ba24e9 JB |
30 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
31 | BuildRequires: gperf | |
77502258 | 32 | BuildRequires: gtk+3-devel >= 3.0 |
dc0e2239 | 33 | BuildRequires: gtk-doc >= 1.9 |
a4e4c62e | 34 | BuildRequires: intltool >= 0.40.0 |
08ba24e9 | 35 | BuildRequires: libarchive-devel |
c440ce23 | 36 | BuildRequires: libsoup-devel >= 2.52 |
08ba24e9 | 37 | BuildRequires: libstdc++-devel |
77502258 JB |
38 | BuildRequires: libtool >= 2:2 |
39 | BuildRequires: libxslt-progs | |
f27661b8 | 40 | %{?with_ostree:BuildRequires: ostree-devel >= 2015.1} |
a4e4c62e | 41 | BuildRequires: pango-devel |
08ba24e9 | 42 | BuildRequires: pkgconfig |
77502258 | 43 | BuildRequires: rpm-devel >= 4.5 |
f27661b8 | 44 | BuildRequires: sqlite3-devel >= 3 |
08ba24e9 JB |
45 | BuildRequires: tar >= 1:1.22 |
46 | BuildRequires: xz | |
f27661b8 | 47 | BuildRequires: yaml-devel |
c440ce23 | 48 | Requires: gdk-pixbuf2 >= 2.31.5 |
dc0e2239 | 49 | Requires: glib2 >= 1:2.45.8 |
c440ce23 | 50 | Requires: libsoup >= 2.52 |
4775b279 JB |
51 | Provides: appdata-tools = %{version} |
52 | Obsoletes: appdata-tools < 0.2 | |
08ba24e9 JB |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
56 | AppStream-Glib library provides GObjects and helper methods to make it | |
57 | easy to read and write AppStream metadata. It also provides a simple | |
58 | DOM implementation that makes it easy to edit nodes and convert to and | |
59 | from the standardized XML representation. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Biblioteka AppStream-Glib dostarcza obiekty GLiba (GObject) oraz | |
63 | metody pomocnicze ułatwiające odczyt i zapis metadanych AppStream. | |
64 | Zapewnia także prostą implementację DOM ułatwiającą modyfikowanie | |
65 | węzłów i konwersję do i ze standardowej reprezentacji XML. | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for appstream-glib library | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki appstream-glib | |
70 | Group: Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
c440ce23 JB |
72 | Requires: gdk-pixbuf2-devel >= 2.31.5 |
73 | Requires: glib2-devel >= 1:2.45.8 | |
08ba24e9 JB |
74 | |
75 | %description devel | |
76 | Header files for appstream-glib library. | |
77 | ||
78 | %description devel -l pl.UTF-8 | |
79 | Pliki nagłówkowe biblioteki appstream-glib. | |
80 | ||
81 | %package static | |
82 | Summary: Static appstream-glib library | |
83 | Summary(pl.UTF-8): Statyczna biblioteka appstream-glib | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | ||
87 | %description static | |
88 | Static appstream-glib library. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczna biblioteka appstream-glib. | |
92 | ||
93 | %package apidocs | |
94 | Summary: appstream-glib API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API biblioteki appstream-glib | |
96 | Group: Documentation | |
dc0e2239 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
08ba24e9 JB |
100 | |
101 | %description apidocs | |
102 | API documentation for appstream-glib library. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki appstream-glib. | |
106 | ||
77502258 JB |
107 | %package -n bash-completion-appstream-glib |
108 | Summary: Bash completion for appstream-glib package | |
109 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-glib | |
110 | Group: Applications/Shells | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: bash-completion >= 2.0 | |
113 | ||
114 | %description -n bash-completion-appstream-glib | |
115 | Bash completion for appstream-util command. | |
116 | ||
117 | %description -n bash-completion-appstream-glib -l pl.UTF-8 | |
118 | Bashowe dopełnianie składni polecenia appstream-util. | |
119 | ||
120 | %package -n appstream-builder | |
121 | Summary: AppStreamBuilder library to create AppStream metadata from packages | |
122 | Summary(pl.UTF-8): Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów | |
123 | Group: Libraries | |
124 | Requires: %{name} = %{version}-%{release} | |
0c3985a1 | 125 | Requires: freetype >= 1:2.2.1 |
77502258 JB |
126 | |
127 | %description -n appstream-builder | |
128 | AppStreamBuilder library to create AppStream metadata from packages. | |
129 | ||
130 | %description -n appstream-builder -l pl.UTF-8 | |
131 | Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów. | |
132 | ||
133 | %package -n appstream-builder-devel | |
134 | Summary: Header files for AppStreamBuilder library | |
135 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AppStreamBuilder | |
136 | Group: Development/Libraries | |
137 | Requires: %{name}-devel = %{version}-%{release} | |
138 | Requires: appstream-builder = %{version}-%{release} | |
139 | ||
140 | %description -n appstream-builder-devel | |
141 | Header files for AppStreamBuilder library. | |
142 | ||
143 | %description -n appstream-builder-devel -l pl.UTF-8 | |
144 | Pliki nagłówkowe biblioteki AppStreamBuilder. | |
145 | ||
146 | %package -n appstream-builder-static | |
147 | Summary: Static AppStreamBuilder library | |
148 | Summary(pl.UTF-8): Statyczna biblioteka AppStreamBuilder | |
149 | Group: Development/Libraries | |
150 | Requires: appstream-builder-devel = %{version}-%{release} | |
151 | ||
152 | %description -n appstream-builder-static | |
153 | Static AppStreamBuilder library. | |
154 | ||
155 | %description -n appstream-builder-static -l pl.UTF-8 | |
156 | Statyczna biblioteka AppStreamBuilder. | |
157 | ||
158 | %package -n bash-completion-appstream-builder | |
159 | Summary: Bash completion for appstream-builder package | |
160 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-builder | |
161 | Group: Applications/Shells | |
162 | Requires: appstream-builder = %{version}-%{release} | |
163 | Requires: bash-completion >= 2.0 | |
164 | ||
165 | %description -n bash-completion-appstream-builder | |
166 | Bash completion for appstream-builder command. | |
167 | ||
168 | %description -n bash-completion-appstream-builder -l pl.UTF-8 | |
169 | Bashowe dopełnianie składni polecenia appstream-builder. | |
170 | ||
08ba24e9 JB |
171 | %prep |
172 | %setup -q | |
77502258 JB |
173 | %patch0 -p1 |
174 | %patch1 -p1 | |
08ba24e9 JB |
175 | |
176 | %build | |
77502258 JB |
177 | %{__libtoolize} |
178 | %{__aclocal} -I m4 | |
179 | %{__autoconf} | |
180 | %{__autoheader} | |
181 | %{__automake} | |
08ba24e9 | 182 | %configure \ |
f27661b8 JB |
183 | %{?with_alpm:--enable-alpm} \ |
184 | %{!?with_ostree:--disable-ostree} \ | |
08ba24e9 JB |
185 | --disable-silent-rules \ |
186 | --with-html-dir=%{_gtkdocdir} | |
187 | %{__make} | |
188 | ||
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %{__make} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
3fe855f5 | 195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/asb-plugins-4/lib*.{la,a} |
77502258 | 196 | |
08ba24e9 | 197 | # obsoleted by pkg-config |
77502258 | 198 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-*.la |
08ba24e9 | 199 | |
a4e4c62e JB |
200 | %find_lang %{name} |
201 | ||
08ba24e9 JB |
202 | %clean |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
205 | %post -p /sbin/ldconfig | |
206 | %postun -p /sbin/ldconfig | |
207 | ||
77502258 JB |
208 | %post -n appstream-builder -p /sbin/ldconfig |
209 | %postun -n appstream-builder -p /sbin/ldconfig | |
210 | ||
a4e4c62e | 211 | %files -f %{name}.lang |
08ba24e9 JB |
212 | %defattr(644,root,root,755) |
213 | %doc AUTHORS MAINTAINERS NEWS README.md | |
214 | %attr(755,root,root) %{_bindir}/appstream-util | |
215 | %attr(755,root,root) %{_libdir}/libappstream-glib.so.*.*.* | |
2fb305ec | 216 | %attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.8 |
08ba24e9 | 217 | %{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib |
4775b279 | 218 | %{_aclocaldir}/appdata-xml.m4 |
77502258 | 219 | %{_mandir}/man1/appstream-util.1* |
08ba24e9 JB |
220 | |
221 | %files devel | |
222 | %defattr(644,root,root,755) | |
223 | %attr(755,root,root) %{_libdir}/libappstream-glib.so | |
224 | %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir | |
225 | %{_includedir}/libappstream-glib | |
226 | %{_pkgconfigdir}/appstream-glib.pc | |
77502258 | 227 | %{_aclocaldir}/appstream-xml.m4 |
08ba24e9 JB |
228 | |
229 | %files static | |
230 | %defattr(644,root,root,755) | |
231 | %{_libdir}/libappstream-glib.a | |
232 | ||
77502258 JB |
233 | %files -n bash-completion-appstream-glib |
234 | %defattr(644,root,root,755) | |
dc0e2239 | 235 | %{bash_compdir}/appstream-util |
77502258 | 236 | |
08ba24e9 JB |
237 | %files apidocs |
238 | %defattr(644,root,root,755) | |
239 | %{_gtkdocdir}/appstream-glib | |
77502258 JB |
240 | |
241 | %files -n appstream-builder | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_bindir}/appstream-builder | |
244 | %attr(755,root,root) %{_libdir}/libappstream-builder.so.*.*.* | |
2fb305ec | 245 | %attr(755,root,root) %ghost %{_libdir}/libappstream-builder.so.8 |
77502258 | 246 | %{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib |
3fe855f5 JB |
247 | %dir %{_libdir}/asb-plugins-4 |
248 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_absorb.so | |
249 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_appdata.so | |
250 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_dbus.so | |
251 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_desktop.so | |
252 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_font.so | |
253 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gettext.so | |
254 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gir.so | |
255 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gresource.so | |
256 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gstreamer.so | |
257 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_hardcoded.so | |
258 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_notifyrc.so | |
259 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_services.so | |
260 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_nm.so | |
f27661b8 | 261 | %if %{with ostree} |
3fe855f5 | 262 | %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_ostree.so |
f27661b8 | 263 | %endif |
77502258 JB |
264 | %{_mandir}/man1/appstream-builder.1* |
265 | ||
266 | %files -n appstream-builder-devel | |
267 | %defattr(644,root,root,755) | |
268 | %attr(755,root,root) %{_libdir}/libappstream-builder.so | |
269 | %{_includedir}/libappstream-builder | |
270 | %{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir | |
271 | %{_pkgconfigdir}/appstream-builder.pc | |
272 | ||
273 | %files -n appstream-builder-static | |
274 | %defattr(644,root,root,755) | |
275 | %{_libdir}/libappstream-builder.a | |
276 | ||
277 | %files -n bash-completion-appstream-builder | |
278 | %defattr(644,root,root,755) | |
dc0e2239 | 279 | %{bash_compdir}/appstream-builder |