2014-07-14 09:06:58 +02:00
#
# spec file for package appstream-glib
#
2019-08-07 10:33:25 +02:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
2014-07-14 09:06:58 +02:00
# Copyright (c) 2014 Dominique Leuenberger, Amsterdam, The Netherlands
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-08-15 16:16:44 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2014-07-14 09:06:58 +02:00
#
Name : appstream-glib
2019-08-15 16:16:44 +02:00
Version : 0.7.15
2014-07-14 09:06:58 +02:00
Release : 0
Summary : AppStream Abstraction Library
2018-03-06 18:35:32 +01:00
License : LGPL-2.1-or-later AND GPL-2.0-or-later
2014-07-14 09:06:58 +02:00
Group : System/Libraries
2018-03-05 13:38:19 +01:00
URL : http://people.freedesktop.org/~hughsient/appstream-glib/
2015-04-07 14:57:45 +02:00
Source0 : %{name} -%{version} .tar.xz
Source1 : openSUSE-appstream-process
2019-08-07 10:33:25 +02:00
#PATCH-FIX-UPSTREAM as-glib-fix-broken-appstream-files-permission.patch gh#hughsie/appstream-glib#312 sckang@suse.com -- Do not preserve restrictive permissions when installing AppStream files.
Patch0 : as-glib-fix-broken-appstream-files-permission.patch
2018-03-05 13:38:19 +01:00
BuildRequires : docbook-xsl-stylesheets
2015-03-31 00:43:48 +02:00
BuildRequires : gcab >= 0.6
2014-10-14 11:27:52 +02:00
BuildRequires : gobject-introspection-devel
2017-02-06 23:04:18 +01:00
BuildRequires : gperf
2018-03-05 13:38:19 +01:00
BuildRequires : gtk-doc
2017-08-31 09:41:13 +02:00
BuildRequires : meson
2017-09-08 13:34:47 +02:00
BuildRequires : pkgconfig
2018-06-11 10:19:00 +02:00
# We still need some part to build the man pages
BuildRequires : xsltproc
2018-03-05 13:38:19 +01:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0) >= 2.31.5
2014-07-14 09:06:58 +02:00
BuildRequires : pkgconfig(gio-2.0)
2018-03-05 13:38:19 +01:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.45.8
BuildRequires : pkgconfig(glib-2.0) >= 2.45.8
BuildRequires : pkgconfig(gmodule-2.0) >= 2.45.8
2014-07-14 09:06:58 +02:00
BuildRequires : pkgconfig(gobject-2.0)
2018-03-05 13:38:19 +01:00
BuildRequires : pkgconfig(json-glib-1.0) >= 1.1.2
2014-07-14 09:06:58 +02:00
BuildRequires : pkgconfig(libarchive)
2015-11-11 12:31:35 +01:00
BuildRequires : pkgconfig(libgcab-1.0)
2018-03-05 13:38:19 +01:00
BuildRequires : pkgconfig(libsoup-2.4) >= 2.51.92
2014-08-23 13:52:38 +02:00
BuildRequires : pkgconfig(rpm)
2015-11-27 09:34:40 +01:00
BuildRequires : pkgconfig(uuid)
2018-03-05 13:38:19 +01:00
BuildRequires : pkgconfig(yaml-0.1)
2015-03-17 14:09:04 +01:00
Requires : gcab
# Required in order to be able to convert .svg icons
Requires : gdk-pixbuf-loader-rsvg
2018-03-05 13:38:19 +01:00
Requires : pngquant >= 2.8
2014-07-14 09:06:58 +02:00
%description
2017-09-06 19:30:43 +02:00
This library provides GObjects and helper methods to read and write
AppStream metadata. It also provides a DOM implementation to edit
nodes and convert to and from the standardized XML representation.
2014-07-14 09:06:58 +02:00
2017-09-06 19:30:43 +02:00
This library allows to:
2014-07-14 09:06:58 +02:00
* Read and write compressed AppStream XML files
* Add and search for applications in an application store
* Get screenshot image data and release announcements
* Easily retrieve the best application data for the current locale
* Efficiently interface with more heavy-weight parsers like expat
2015-09-04 13:27:56 +02:00
%package -n libappstream-glib8
2014-07-14 09:06:58 +02:00
Summary : AppStream Abstraction Library
2018-03-05 13:38:19 +01:00
License : LGPL-2.1-or-later
2014-07-14 09:06:58 +02:00
Group : System/Libraries
2015-09-04 13:27:56 +02:00
%description -n libappstream-glib8
2017-09-06 19:30:43 +02:00
This library provides GObjects and helper methods to read and write
AppStream metadata. It also provides a DOM implementation to edit
nodes and convert to and from the standardized XML representation.
2014-07-14 09:06:58 +02:00
2014-10-14 11:27:52 +02:00
%package -n typelib-1_0-AppStreamGlib-1_0
2017-09-06 19:30:43 +02:00
Summary : Introspection bindings for the AppStream abstraction library
2018-03-05 13:38:19 +01:00
License : LGPL-2.1-or-later
2014-10-14 11:27:52 +02:00
Group : System/Libraries
%description -n typelib-1_0-AppStreamGlib-1_0
2017-09-06 19:30:43 +02:00
This library provides GObjects and helper methods to read and write
AppStream metadata. It also provides a DOM implementation to edit
nodes and convert to and from the standardized XML representation.
2014-10-14 11:27:52 +02:00
2014-07-14 09:06:58 +02:00
%package devel
2017-09-06 19:30:43 +02:00
Summary : Development files for the AppStream abstraction library
2018-03-06 18:35:32 +01:00
License : LGPL-2.1-or-later AND GPL-2.0-or-later
2014-07-14 09:06:58 +02:00
Group : Development/Languages/C and C++
2016-04-29 14:23:56 +02:00
Requires : %{name} = %{version}
2015-09-04 13:27:56 +02:00
Requires : libappstream-glib8 = %{version}
2014-10-14 11:27:52 +02:00
Requires : typelib-1_0-AppStreamGlib-1_0 = %{version}
2014-11-14 00:30:48 +01:00
# appdata-tools was consumed into appstream-glib and is no longer maintained upstream
Obsoletes : appdata-tools < 0.1.9
Provides : appdata-tools = 0.1.9
2014-12-24 23:54:04 +01:00
# Also obsolete the -lang package; or we end up with strange conflicts
Obsoletes : appdata-tools-lang < 0.1.9
2014-07-14 09:06:58 +02:00
%description devel
2017-09-06 19:30:43 +02:00
This library provides GObjects and helper methods to read and write
AppStream metadata. It also provides a DOM implementation to edit
nodes and convert to and from the standardized XML representation.
2014-07-14 09:06:58 +02:00
2017-09-06 19:30:43 +02:00
This library allows to:
2014-07-14 09:06:58 +02:00
* Read and write compressed AppStream XML files
* Add and search for applications in an application store
* Get screenshot image data and release announcements
* Easily retrieve the best application data for the current locale
* Efficiently interface with more heavy-weight parsers like expat
2015-04-07 14:57:45 +02:00
%package -n openSUSE-appstream-process
Summary : Appstream processor employed by kiwi
2018-03-06 18:35:32 +01:00
License : LGPL-2.1-or-later AND GPL-2.0-or-later
2017-09-06 19:30:43 +02:00
Group : Development/Tools/Building
2015-04-07 14:57:45 +02:00
Requires : appstream-glib >= %{version}
Requires : openSUSE-appdata-extra
%description -n openSUSE-appstream-process
A wrapper around appstream-builder, called by kiwi in order to produce AppStream metadata
for the repositories to be published
2014-07-14 09:06:58 +02:00
%lang_package
%prep
2019-08-15 16:16:44 +02:00
%autosetup -p1
2014-07-14 09:06:58 +02:00
%build
2018-03-05 13:38:19 +01:00
%meson \
2019-08-15 16:16:44 +02:00
-Ddep11=true \
-Dbuilder=true \
-Drpm=true \
-Dalpm=false \
-Dfonts=false \
-Dstemmer=false \
-Dman=true \
-Dgtk-doc=true \
-Dintrospection=true \
%{nil}
2018-03-05 13:38:19 +01:00
%meson_build
2014-07-14 09:06:58 +02:00
%install
2018-03-05 13:38:19 +01:00
%meson_install
2014-08-23 13:52:38 +02:00
# We don't care for 'installed tests'; that's used by GNOME Smoke Testing.
2014-10-13 23:12:26 +02:00
rm %{buildroot} %{_datadir} /installed-tests/appstream-glib/*.test
2015-04-07 14:57:45 +02:00
# install the appstream process script to be used by kiwi
install -d -m 0755 %{_buildroot}%{_bindir}
2017-09-05 09:27:27 +02:00
install -m 0755 -D %{SOURCE1} %{buildroot} %{_bindir} /$(basename %{SOURCE1} )
2015-04-07 14:57:45 +02:00
2014-07-14 09:06:58 +02:00
%find_lang %{name}
2014-11-14 00:30:48 +01:00
%check
2018-06-11 10:19:00 +02:00
if %meson_test; then
2015-03-17 14:09:04 +01:00
echo CHECKS passed
exit 0
else
echo CHECKS failed... dumping log file
2018-06-11 10:19:00 +02:00
find -name testlog.txt -exec cat {} +
2015-07-13 15:06:21 +02:00
exit 0
2015-03-17 14:09:04 +01:00
fi
2014-11-14 00:30:48 +01:00
2015-09-04 13:27:56 +02:00
%post -n libappstream-glib8 -p /sbin/ldconfig
%postun -n libappstream-glib8 -p /sbin/ldconfig
2014-07-14 09:06:58 +02:00
%files
2018-03-05 13:38:19 +01:00
%doc AUTHORS NEWS
2014-07-14 09:06:58 +02:00
%{_bindir} /appstream-builder
2016-01-29 13:19:03 +01:00
%{_bindir} /appstream-compose
2014-07-14 09:06:58 +02:00
%{_bindir} /appstream-util
%{_datadir} /bash-completion/completions/appstream-builder
%{_datadir} /bash-completion/completions/appstream-util
2016-01-29 13:19:03 +01:00
%{_libdir} /asb-plugins-5/
2014-10-14 11:27:52 +02:00
%{_mandir} /man1/appstream-builder.1%{?ext_man}
2016-01-29 13:19:03 +01:00
%{_mandir} /man1/appstream-compose.1%{?ext_man}
2014-10-14 11:27:52 +02:00
%{_mandir} /man1/appstream-util.1%{?ext_man}
2014-07-14 09:06:58 +02:00
2015-09-04 13:27:56 +02:00
%files -n libappstream-glib8
2019-08-15 16:16:44 +02:00
%license COPYING
2014-07-14 09:06:58 +02:00
%{_libdir} /libappstream-glib.so.*
2014-10-14 11:27:52 +02:00
%files -n typelib-1_0-AppStreamGlib-1_0
%{_libdir} /girepository-1.0/AppStreamGlib-1.0.typelib
2014-07-14 09:06:58 +02:00
%files devel
2018-03-05 13:38:19 +01:00
%doc MAINTAINERS README.md
2017-09-05 09:27:27 +02:00
%{_datadir} /aclocal/appdata-xml.m4
2014-10-27 17:08:27 +01:00
%{_datadir} /aclocal/appstream-xml.m4
2016-01-29 17:15:14 +01:00
%dir %{_datadir} /gettext/its
2016-01-29 13:19:03 +01:00
%{_datadir} /gettext/its/appdata.*
2014-10-27 17:08:27 +01:00
%{_datadir} /gir-1.0/AppStreamGlib-1.0.gir
%{_datadir} /gtk-doc/html/appstream-glib/
2014-07-14 09:06:58 +02:00
%{_includedir} /libappstream-glib/
%{_libdir} /pkgconfig/appstream-glib.pc
%{_libdir} /libappstream-glib.so
2015-04-07 14:57:45 +02:00
%files -n openSUSE-appstream-process
%{_bindir} /openSUSE-appstream-process
2018-03-05 13:38:19 +01:00
%files lang -f %{name}.lang
2014-07-14 09:06:58 +02:00
%changelog