3 %bcond_without ostree # ostree support
4 %bcond_with alpm # Arch Linux PacMan support
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
13 Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
14 # Source0-md5: 25be5764be081e36fe2739018108e9ea
15 Patch0: %{name}-rpm5.patch
16 Patch1: %{name}-pc.patch
17 URL: http://people.freedesktop.org/~hughsient/appstream-glib/
18 %{?with_alpm:BuildRequires: alpm-devel}
19 BuildRequires: autoconf >= 2.63
20 BuildRequires: automake >= 1:1.9
21 BuildRequires: docbook-dtd43-xml
22 BuildRequires: docbook-style-xsl
23 BuildRequires: fontconfig-devel
24 # pkgconfig(freetype2) >= 9.10.0
25 BuildRequires: freetype-devel >= 1:2.2.1
26 BuildRequires: gcab-devel
27 BuildRequires: gdk-pixbuf2-devel >= 2.31.5
28 BuildRequires: gettext-tools >= 0.17
29 BuildRequires: glib2-devel >= 1:2.45.8
30 BuildRequires: gobject-introspection-devel >= 0.9.8
32 BuildRequires: gtk-doc >= 1.9
33 BuildRequires: gtk+3-devel >= 3.0
34 BuildRequires: intltool >= 0.40.0
35 BuildRequires: libarchive-devel
36 BuildRequires: libsoup-devel >= 2.52
37 BuildRequires: libstdc++-devel
38 BuildRequires: libtool >= 2:2
39 BuildRequires: libxslt-progs
40 %{?with_ostree:BuildRequires: ostree-devel >= 2015.1}
41 BuildRequires: pango-devel
42 BuildRequires: pkgconfig
43 BuildRequires: rpm-devel >= 4.5
44 BuildRequires: sqlite3-devel >= 3
45 BuildRequires: tar >= 1:1.22
47 BuildRequires: yaml-devel
48 Requires: glib2 >= 1:2.45.8
49 Requires: gdk-pixbuf2 >= 2.31.5
50 Requires: libsoup >= 2.52
51 Provides: appdata-tools = %{version}
52 Obsoletes: appdata-tools < 0.2
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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}
72 Requires: gdk-pixbuf2-devel >= 2.31.5
73 Requires: glib2-devel >= 1:2.45.8
76 Header files for appstream-glib library.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe biblioteki appstream-glib.
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}
88 Static appstream-glib library.
90 %description static -l pl.UTF-8
91 Statyczna biblioteka appstream-glib.
94 Summary: appstream-glib API documentation
95 Summary(pl.UTF-8): Dokumentacja API biblioteki appstream-glib
99 API documentation for appstream-glib library.
101 %description apidocs -l pl.UTF-8
102 Dokumentacja API biblioteki appstream-glib.
104 %package -n bash-completion-appstream-glib
105 Summary: Bash completion for appstream-glib package
106 Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-glib
107 Group: Applications/Shells
108 Requires: %{name} = %{version}-%{release}
109 Requires: bash-completion >= 2.0
111 %description -n bash-completion-appstream-glib
112 Bash completion for appstream-util command.
114 %description -n bash-completion-appstream-glib -l pl.UTF-8
115 Bashowe dopełnianie składni polecenia appstream-util.
117 %package -n appstream-builder
118 Summary: AppStreamBuilder library to create AppStream metadata from packages
119 Summary(pl.UTF-8): Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów
121 Requires: %{name} = %{version}-%{release}
122 Requires: freetype >= 1:2.2.1
124 %description -n appstream-builder
125 AppStreamBuilder library to create AppStream metadata from packages.
127 %description -n appstream-builder -l pl.UTF-8
128 Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów.
130 %package -n appstream-builder-devel
131 Summary: Header files for AppStreamBuilder library
132 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AppStreamBuilder
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}-%{release}
135 Requires: appstream-builder = %{version}-%{release}
137 %description -n appstream-builder-devel
138 Header files for AppStreamBuilder library.
140 %description -n appstream-builder-devel -l pl.UTF-8
141 Pliki nagłówkowe biblioteki AppStreamBuilder.
143 %package -n appstream-builder-static
144 Summary: Static AppStreamBuilder library
145 Summary(pl.UTF-8): Statyczna biblioteka AppStreamBuilder
146 Group: Development/Libraries
147 Requires: appstream-builder-devel = %{version}-%{release}
149 %description -n appstream-builder-static
150 Static AppStreamBuilder library.
152 %description -n appstream-builder-static -l pl.UTF-8
153 Statyczna biblioteka AppStreamBuilder.
155 %package -n bash-completion-appstream-builder
156 Summary: Bash completion for appstream-builder package
157 Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-builder
158 Group: Applications/Shells
159 Requires: appstream-builder = %{version}-%{release}
160 Requires: bash-completion >= 2.0
162 %description -n bash-completion-appstream-builder
163 Bash completion for appstream-builder command.
165 %description -n bash-completion-appstream-builder -l pl.UTF-8
166 Bashowe dopełnianie składni polecenia appstream-builder.
180 %{?with_alpm:--enable-alpm} \
181 %{!?with_ostree:--disable-ostree} \
182 --disable-silent-rules \
183 --with-html-dir=%{_gtkdocdir}
187 rm -rf $RPM_BUILD_ROOT
190 DESTDIR=$RPM_BUILD_ROOT
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/asb-plugins-4/lib*.{la,a}
194 # obsoleted by pkg-config
195 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-*.la
200 rm -rf $RPM_BUILD_ROOT
202 %post -p /sbin/ldconfig
203 %postun -p /sbin/ldconfig
205 %post -n appstream-builder -p /sbin/ldconfig
206 %postun -n appstream-builder -p /sbin/ldconfig
208 %files -f %{name}.lang
209 %defattr(644,root,root,755)
210 %doc AUTHORS MAINTAINERS NEWS README.md
211 %attr(755,root,root) %{_bindir}/appstream-util
212 %attr(755,root,root) %{_libdir}/libappstream-glib.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.8
214 %{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
215 %{_aclocaldir}/appdata-xml.m4
216 %{_mandir}/man1/appstream-util.1*
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/libappstream-glib.so
221 %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
222 %{_includedir}/libappstream-glib
223 %{_pkgconfigdir}/appstream-glib.pc
224 %{_aclocaldir}/appstream-xml.m4
227 %defattr(644,root,root,755)
228 %{_libdir}/libappstream-glib.a
230 %files -n bash-completion-appstream-glib
231 %defattr(644,root,root,755)
232 %{_datadir}/bash-completion/completions/appstream-util
235 %defattr(644,root,root,755)
236 %{_gtkdocdir}/appstream-glib
238 %files -n appstream-builder
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/appstream-builder
241 %attr(755,root,root) %{_libdir}/libappstream-builder.so.*.*.*
242 %attr(755,root,root) %ghost %{_libdir}/libappstream-builder.so.8
243 %{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
244 %dir %{_libdir}/asb-plugins-4
245 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_absorb.so
246 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_appdata.so
247 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_dbus.so
248 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_desktop.so
249 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_font.so
250 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gettext.so
251 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gir.so
252 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gresource.so
253 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gstreamer.so
254 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_hardcoded.so
255 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_notifyrc.so
256 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_services.so
257 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_nm.so
259 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_ostree.so
261 %{_mandir}/man1/appstream-builder.1*
263 %files -n appstream-builder-devel
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/libappstream-builder.so
266 %{_includedir}/libappstream-builder
267 %{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir
268 %{_pkgconfigdir}/appstream-builder.pc
270 %files -n appstream-builder-static
271 %defattr(644,root,root,755)
272 %{_libdir}/libappstream-builder.a
274 %files -n bash-completion-appstream-builder
275 %defattr(644,root,root,755)
276 %{_datadir}/bash-completion/completions/appstream-builder