|
 |
bd1a78 |
# Enable hardening in RHEL 7
|
|
 |
bd1a78 |
%global _hardened_build 1
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%global glib2_version 2.45.8
|
|
 |
bd1a78 |
%global libsoup_version 2.51.92
|
|
 |
bd1a78 |
%global json_glib_version 1.1.1
|
|
 |
bd1a78 |
%global gdk_pixbuf_version 2.31.5
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
Summary: Library for AppStream metadata
|
|
 |
bd1a78 |
Name: libappstream-glib
|
|
 |
bd1a78 |
Version: 0.7.8
|
|
 |
bd1a78 |
Release: 2%{?dist}
|
|
 |
bd1a78 |
License: LGPLv2+
|
|
 |
bd1a78 |
URL: http://people.freedesktop.org/~hughsient/appstream-glib/
|
|
 |
bd1a78 |
Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-%{version}.tar.xz
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
 |
bd1a78 |
BuildRequires: docbook-utils
|
|
 |
bd1a78 |
BuildRequires: gtk-doc
|
|
 |
bd1a78 |
BuildRequires: gobject-introspection-devel
|
|
 |
bd1a78 |
BuildRequires: gperf
|
|
 |
bd1a78 |
BuildRequires: libarchive-devel
|
|
 |
bd1a78 |
BuildRequires: libsoup-devel >= %{libsoup_version}
|
|
 |
bd1a78 |
BuildRequires: gdk-pixbuf2-devel >= %{gdk_pixbuf_version}
|
|
 |
bd1a78 |
BuildRequires: gtk3-devel
|
|
 |
bd1a78 |
BuildRequires: gettext
|
|
 |
bd1a78 |
BuildRequires: libgcab1-devel
|
|
 |
bd1a78 |
BuildRequires: libuuid-devel
|
|
 |
bd1a78 |
BuildRequires: json-glib-devel >= %{json_glib_version}
|
|
 |
bd1a78 |
BuildRequires: meson
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
# for the builder component
|
|
 |
bd1a78 |
BuildRequires: fontconfig-devel
|
|
 |
bd1a78 |
BuildRequires: freetype-devel
|
|
 |
bd1a78 |
BuildRequires: pango-devel
|
|
 |
bd1a78 |
BuildRequires: rpm-devel
|
|
 |
bd1a78 |
BuildRequires: sqlite-devel
|
|
 |
bd1a78 |
BuildRequires: gcab
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
# for the manpages
|
|
 |
bd1a78 |
BuildRequires: libxslt
|
|
 |
bd1a78 |
BuildRequires: docbook-style-xsl
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
# Make sure we pull in the minimum required versions
|
|
 |
bd1a78 |
Requires: gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf_version}
|
|
 |
bd1a78 |
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
 |
bd1a78 |
Requires: json-glib%{?_isa} >= %{json_glib_version}
|
|
 |
bd1a78 |
Requires: libsoup%{?_isa} >= %{libsoup_version}
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
# no longer required
|
|
 |
bd1a78 |
Obsoletes: appdata-tools < 0.1.9
|
|
 |
bd1a78 |
Provides: appdata-tools
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
# this is not a library version
|
|
 |
bd1a78 |
%define as_plugin_version 5
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%description
|
|
 |
bd1a78 |
This library provides GObjects and helper methods to make it easy to read and
|
|
 |
bd1a78 |
write AppStream metadata. It also provides a simple DOM implementation that
|
|
 |
bd1a78 |
makes it easy to edit nodes and convert to and from the standardized XML
|
|
 |
bd1a78 |
representation.
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%package devel
|
|
 |
bd1a78 |
Summary: GLib Libraries and headers for appstream-glib
|
|
 |
bd1a78 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%description devel
|
|
 |
bd1a78 |
GLib headers and libraries for appstream-glib.
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%package builder
|
|
 |
bd1a78 |
Summary: Library and command line tools for building AppStream metadata
|
|
 |
bd1a78 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%description builder
|
|
 |
bd1a78 |
This library and command line tool is used for building AppStream metadata
|
|
 |
bd1a78 |
from a directory of packages.
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%package builder-devel
|
|
 |
bd1a78 |
Summary: GLib Libraries and headers for appstream-builder
|
|
 |
bd1a78 |
Requires: %{name}-builder%{?_isa} = %{version}-%{release}
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%description builder-devel
|
|
 |
bd1a78 |
GLib headers and libraries for appstream-builder.
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%prep
|
|
 |
bd1a78 |
%autosetup -p1 -n appstream-glib-%{version}
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%build
|
|
 |
bd1a78 |
%meson \
|
|
 |
bd1a78 |
-Dgtk-doc=true \
|
|
 |
bd1a78 |
-Dstemmer=false \
|
|
 |
bd1a78 |
-Ddep11=false
|
|
 |
bd1a78 |
%meson_build
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%install
|
|
 |
bd1a78 |
%meson_install
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%find_lang appstream-glib
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%post -p /sbin/ldconfig
|
|
 |
bd1a78 |
%post builder -p /sbin/ldconfig
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%postun -p /sbin/ldconfig
|
|
 |
bd1a78 |
%postun builder -p /sbin/ldconfig
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%files -f appstream-glib.lang
|
|
 |
bd1a78 |
%license COPYING
|
|
 |
bd1a78 |
%doc README.md AUTHORS NEWS
|
|
 |
bd1a78 |
%{_libdir}/libappstream-glib.so.8*
|
|
 |
bd1a78 |
%{_libdir}/girepository-1.0/*.typelib
|
|
 |
bd1a78 |
%{_bindir}/appstream-util
|
|
 |
bd1a78 |
%{_bindir}/appstream-compose
|
|
 |
bd1a78 |
%dir %{_datadir}/bash-completion/completions/
|
|
 |
bd1a78 |
%{_datadir}/bash-completion/completions/appstream-util
|
|
 |
bd1a78 |
%{_mandir}/man1/appstream-util.1.gz
|
|
 |
bd1a78 |
%{_mandir}/man1/appstream-compose.1.gz
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%files devel
|
|
 |
bd1a78 |
%{_libdir}/libappstream-glib.so
|
|
 |
bd1a78 |
%{_libdir}/pkgconfig/appstream-glib.pc
|
|
 |
bd1a78 |
%dir %{_includedir}/libappstream-glib
|
|
 |
bd1a78 |
%{_includedir}/libappstream-glib/*.h
|
|
 |
bd1a78 |
%{_datadir}/gtk-doc/html/appstream-glib
|
|
 |
bd1a78 |
%{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
|
|
 |
bd1a78 |
%{_datadir}/aclocal/*.m4
|
|
 |
bd1a78 |
%{_datadir}/installed-tests/appstream-glib/*.test
|
|
 |
bd1a78 |
%{_datadir}/gettext/its/appdata.its
|
|
 |
bd1a78 |
%{_datadir}/gettext/its/appdata.loc
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%files builder
|
|
 |
bd1a78 |
%license COPYING
|
|
 |
bd1a78 |
%{_bindir}/appstream-builder
|
|
 |
bd1a78 |
%{_datadir}/bash-completion/completions/appstream-builder
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_appdata.so
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_desktop.so
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_font.so
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_gettext.so
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_hardcoded.so
|
|
 |
bd1a78 |
%{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_shell_extension.so
|
|
 |
bd1a78 |
%{_libdir}/libappstream-builder.so.8*
|
|
 |
bd1a78 |
%{_mandir}/man1/appstream-builder.1.gz
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%files builder-devel
|
|
 |
bd1a78 |
%license COPYING
|
|
 |
bd1a78 |
%{_libdir}/libappstream-builder.so
|
|
 |
bd1a78 |
%{_libdir}/pkgconfig/appstream-builder.pc
|
|
 |
bd1a78 |
%dir %{_includedir}/libappstream-builder
|
|
 |
bd1a78 |
%{_includedir}/libappstream-builder/*.h
|
|
 |
bd1a78 |
%{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
%changelog
|
|
 |
bd1a78 |
* Wed Sep 05 2018 Kalev Lember <klember@redhat.com> 0.7.8-2
|
|
 |
bd1a78 |
- Build with full hardening enabled
|
|
 |
bd1a78 |
- Resolves: #1616185
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
* Fri Apr 20 2018 Richard Hughes <richard@hughsie.com> 0.7.8-1
|
|
 |
bd1a78 |
- New upstream release
|
|
 |
bd1a78 |
- Resolves: #1570025
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
* Mon Mar 06 2017 Richard Hughes <richard@hughsie.com> 0.6.10-1
|
|
 |
bd1a78 |
- New upstream release
|
|
 |
bd1a78 |
- Resolves: #1386997
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
* Thu Feb 02 2017 Kalev Lember <klember@redhat.com> 0.6.8-1
|
|
 |
bd1a78 |
- New upstream release
|
|
 |
bd1a78 |
- Resolves: #1386997
|
|
 |
bd1a78 |
|
|
 |
bd1a78 |
* Sat Nov 01 2014 Richard Hughes <richard@hughsie.com> 0.3.6-1
|
|
 |
bd1a78 |
- Initial import
|
|
 |
bd1a78 |
- Resolves: #1184201
|
|
 |
bd1a78 |
|