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: 894f5a2d0d8ff8d5021304b1ddd2b0a7
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+3-devel >= 3.0
33 BuildRequires: gtk-doc >= 1.9
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: gdk-pixbuf2 >= 2.31.5
49 Requires: glib2 >= 1:2.45.8
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
97 %if "%{_rpmversion}" >= "5"
102 API documentation for appstream-glib library.
104 %description apidocs -l pl.UTF-8
105 Dokumentacja API biblioteki appstream-glib.
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
114 %description -n bash-completion-appstream-glib
115 Bash completion for appstream-util command.
117 %description -n bash-completion-appstream-glib -l pl.UTF-8
118 Bashowe dopełnianie składni polecenia appstream-util.
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
124 Requires: %{name} = %{version}-%{release}
125 Requires: freetype >= 1:2.2.1
127 %description -n appstream-builder
128 AppStreamBuilder library to create AppStream metadata from packages.
130 %description -n appstream-builder -l pl.UTF-8
131 Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów.
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}
140 %description -n appstream-builder-devel
141 Header files for AppStreamBuilder library.
143 %description -n appstream-builder-devel -l pl.UTF-8
144 Pliki nagłówkowe biblioteki AppStreamBuilder.
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}
152 %description -n appstream-builder-static
153 Static AppStreamBuilder library.
155 %description -n appstream-builder-static -l pl.UTF-8
156 Statyczna biblioteka AppStreamBuilder.
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
165 %description -n bash-completion-appstream-builder
166 Bash completion for appstream-builder command.
168 %description -n bash-completion-appstream-builder -l pl.UTF-8
169 Bashowe dopełnianie składni polecenia appstream-builder.
183 %{?with_alpm:--enable-alpm} \
184 %{!?with_ostree:--disable-ostree} \
185 --disable-silent-rules \
186 --with-html-dir=%{_gtkdocdir}
190 rm -rf $RPM_BUILD_ROOT
193 DESTDIR=$RPM_BUILD_ROOT
195 %{__rm} $RPM_BUILD_ROOT%{_libdir}/asb-plugins-4/lib*.{la,a}
197 # obsoleted by pkg-config
198 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-*.la
203 rm -rf $RPM_BUILD_ROOT
205 %post -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
208 %post -n appstream-builder -p /sbin/ldconfig
209 %postun -n appstream-builder -p /sbin/ldconfig
211 %files -f %{name}.lang
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.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.8
217 %{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
218 %{_aclocaldir}/appdata-xml.m4
219 %{_mandir}/man1/appstream-util.1*
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
227 %{_aclocaldir}/appstream-xml.m4
230 %defattr(644,root,root,755)
231 %{_libdir}/libappstream-glib.a
233 %files -n bash-completion-appstream-glib
234 %defattr(644,root,root,755)
235 %{bash_compdir}/appstream-util
238 %defattr(644,root,root,755)
239 %{_gtkdocdir}/appstream-glib
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.*.*.*
245 %attr(755,root,root) %ghost %{_libdir}/libappstream-builder.so.8
246 %{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
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
262 %attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_ostree.so
264 %{_mandir}/man1/appstream-builder.1*
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
273 %files -n appstream-builder-static
274 %defattr(644,root,root,755)
275 %{_libdir}/libappstream-builder.a
277 %files -n bash-completion-appstream-builder
278 %defattr(644,root,root,755)
279 %{bash_compdir}/appstream-builder