Blob Blame History Raw
# Enable hardening in RHEL 7
%global _hardened_build 1

%global glib2_version 2.45.8
%global libsoup_version 2.51.92
%global json_glib_version 1.1.1
%global gdk_pixbuf_version 2.31.5

Summary:   Library for AppStream metadata
Name:      libappstream-glib
Version:   0.7.8
Release:   2%{?dist}
License:   LGPLv2+

BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: docbook-utils
BuildRequires: gtk-doc
BuildRequires: gobject-introspection-devel
BuildRequires: gperf
BuildRequires: libarchive-devel
BuildRequires: libsoup-devel >= %{libsoup_version}
BuildRequires: gdk-pixbuf2-devel >= %{gdk_pixbuf_version}
BuildRequires: gtk3-devel
BuildRequires: gettext
BuildRequires: libgcab1-devel
BuildRequires: libuuid-devel
BuildRequires: json-glib-devel >= %{json_glib_version}
BuildRequires: meson

# for the builder component
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: pango-devel
BuildRequires: rpm-devel
BuildRequires: sqlite-devel
BuildRequires: gcab

# for the manpages
BuildRequires: libxslt
BuildRequires: docbook-style-xsl

# Make sure we pull in the minimum required versions
Requires: gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf_version}
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: json-glib%{?_isa} >= %{json_glib_version}
Requires: libsoup%{?_isa} >= %{libsoup_version}

# no longer required
Obsoletes: appdata-tools < 0.1.9
Provides: appdata-tools

# this is not a library version
%define as_plugin_version               5

This library provides GObjects and helper methods to make it easy to read and
write AppStream metadata. It also provides a simple DOM implementation that
makes it easy to edit nodes and convert to and from the standardized XML

%package devel
Summary: GLib Libraries and headers for appstream-glib
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
GLib headers and libraries for appstream-glib.

%package builder
Summary: Library and command line tools for building AppStream metadata
Requires: %{name}%{?_isa} = %{version}-%{release}

%description builder
This library and command line tool is used for building AppStream metadata
from a directory of packages.

%package builder-devel
Summary: GLib Libraries and headers for appstream-builder
Requires: %{name}-builder%{?_isa} = %{version}-%{release}

%description builder-devel
GLib headers and libraries for appstream-builder.

%autosetup -p1 -n appstream-glib-%{version}

%meson \
    -Dgtk-doc=true \
    -Dstemmer=false \


%find_lang appstream-glib

%post -p /sbin/ldconfig
%post builder -p /sbin/ldconfig

%postun -p /sbin/ldconfig
%postun builder -p /sbin/ldconfig

%files -f appstream-glib.lang
%license COPYING
%dir %{_datadir}/bash-completion/completions/

%files devel
%dir %{_includedir}/libappstream-glib

%files builder
%license COPYING

%files builder-devel
%license COPYING
%dir %{_includedir}/libappstream-builder

* Wed Sep 05 2018 Kalev Lember <> 0.7.8-2
- Build with full hardening enabled
- Resolves: #1616185

* Fri Apr 20 2018 Richard Hughes <> 0.7.8-1
- New upstream release
- Resolves: #1570025

* Mon Mar 06 2017 Richard Hughes <> 0.6.10-1
- New upstream release
- Resolves: #1386997

* Thu Feb 02 2017 Kalev Lember <> 0.6.8-1
- New upstream release
- Resolves: #1386997

* Sat Nov 01 2014 Richard Hughes <> 0.3.6-1
- Initial import
- Resolves: #1184201