2014-07-14 09:06:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package appstream-glib
|
|
|
|
#
|
2017-01-12 12:51:03 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-10-27 17:08:27 +01:00
|
|
|
%define _build_from_vcs 1
|
2014-07-14 09:06:58 +02:00
|
|
|
Name: appstream-glib
|
2017-09-05 09:27:27 +02:00
|
|
|
Version: 0.7.2
|
2014-07-14 09:06:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: AppStream Abstraction Library
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+ AND GPL-2.0+
|
2014-07-14 09:06:58 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
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
|
2014-10-27 17:08:27 +01:00
|
|
|
%if %{_build_from_vcs}
|
2014-10-14 11:27:52 +02:00
|
|
|
BuildRequires: gnome-common
|
2014-10-27 17:08:27 +01:00
|
|
|
%else
|
|
|
|
# We still need some part to build the man pages
|
|
|
|
BuildRequires: xsltproc
|
|
|
|
%endif
|
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
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: intltool >= 0.40.0
|
2014-10-14 11:27:52 +02:00
|
|
|
BuildRequires: libyaml-devel
|
2017-08-31 09:41:13 +02:00
|
|
|
BuildRequires: meson
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.14
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.16.1
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2016-03-08 16:54:14 +01:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= 1.1.1
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: pkgconfig(libarchive)
|
2015-11-11 12:31:35 +01:00
|
|
|
BuildRequires: pkgconfig(libgcab-1.0)
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.24
|
2014-08-23 13:52:38 +02:00
|
|
|
BuildRequires: pkgconfig(rpm)
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2015-11-27 09:34:40 +01:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
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
|
2014-07-14 09:06:58 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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 representation.
|
|
|
|
|
|
|
|
What this library allows you to do:
|
|
|
|
|
|
|
|
* 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
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+
|
2014-07-14 09:06:58 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%description -n libappstream-glib8
|
2014-07-14 09:06:58 +02:00
|
|
|
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 representation.
|
|
|
|
|
|
|
|
What this library allows you to do:
|
|
|
|
|
|
|
|
* 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-builder8
|
2014-07-14 09:06:58 +02:00
|
|
|
Summary: AppStream Abstraction Library
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+
|
2014-07-14 09:06:58 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%description -n libappstream-builder8
|
2014-07-14 09:06:58 +02:00
|
|
|
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 representation.
|
|
|
|
|
|
|
|
What this library allows you to do:
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2014-10-14 11:27:52 +02:00
|
|
|
%package -n typelib-1_0-AppStreamBuilder-1_0
|
|
|
|
Summary: AppStream Abstraction Library -- Introspection bindings
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+
|
2014-10-14 11:27:52 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-AppStreamBuilder-1_0
|
|
|
|
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 representation.
|
|
|
|
|
|
|
|
%package -n typelib-1_0-AppStreamGlib-1_0
|
|
|
|
Summary: AppStream Abstraction Library -- Introspection bindings
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+
|
2014-10-14 11:27:52 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-AppStreamGlib-1_0
|
|
|
|
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 representation.
|
|
|
|
|
2014-07-14 09:06:58 +02:00
|
|
|
%package devel
|
|
|
|
Summary: AppStream Abstraction Library -- Development files
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+ AND GPL-2.0+
|
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-builder8 = %{version}
|
|
|
|
Requires: libappstream-glib8 = %{version}
|
2014-10-14 11:27:52 +02:00
|
|
|
Requires: typelib-1_0-AppStreamBuilder-1_0 = %{version}
|
|
|
|
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
|
|
|
|
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 representation.
|
|
|
|
|
|
|
|
What this library allows you to do:
|
|
|
|
|
|
|
|
* 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
|
2017-09-05 09:27:27 +02:00
|
|
|
License: LGPL-2.1+ AND GPL-2.0+
|
|
|
|
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
2015-04-07 14:57:45 +02:00
|
|
|
Group: System
|
|
|
|
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
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-09-05 09:27:27 +02:00
|
|
|
%{meson} \
|
2017-08-31 09:41:13 +02:00
|
|
|
-Denable-rpm=true \
|
|
|
|
-Denable-gtk-doc=true \
|
|
|
|
-Denable-stemmer=false \
|
|
|
|
%{nil}
|
2017-09-05 09:27:27 +02:00
|
|
|
%{meson_build}
|
2014-07-14 09:06:58 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-05 09:27:27 +02: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
|
2014-07-14 09:06:58 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
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
|
2017-09-05 09:27:27 +02:00
|
|
|
if make %{?_smp_mflags} check; then
|
2015-03-17 14:09:04 +01:00
|
|
|
echo CHECKS passed
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo CHECKS failed... dumping log file
|
2016-02-19 15:30:06 +01:00
|
|
|
find -name test-suite.log -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
|
|
|
|
%post -n libappstream-builder8 -p /sbin/ldconfig
|
|
|
|
%postun -n libappstream-builder8 -p /sbin/ldconfig
|
2014-07-14 09:06:58 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_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-builder8
|
2014-07-14 09:06:58 +02:00
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libappstream-builder.so.*
|
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%files -n libappstream-glib8
|
2014-07-14 09:06:58 +02:00
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libappstream-glib.so.*
|
|
|
|
|
2014-10-14 11:27:52 +02:00
|
|
|
%files -n typelib-1_0-AppStreamBuilder-1_0
|
|
|
|
%{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
|
|
|
|
|
|
|
|
%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
|
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/AppStreamBuilder-1.0.gir
|
|
|
|
%{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
|
|
|
|
%{_datadir}/gtk-doc/html/appstream-glib/
|
2014-07-14 09:06:58 +02:00
|
|
|
%{_includedir}/libappstream-builder/
|
|
|
|
%{_includedir}/libappstream-glib/
|
|
|
|
%{_libdir}/pkgconfig/appstream-builder.pc
|
|
|
|
%{_libdir}/pkgconfig/appstream-glib.pc
|
|
|
|
%{_libdir}/libappstream-builder.so
|
|
|
|
%{_libdir}/libappstream-glib.so
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2015-04-07 14:57:45 +02:00
|
|
|
%files -n openSUSE-appstream-process
|
|
|
|
%{_bindir}/openSUSE-appstream-process
|
|
|
|
|
2014-07-14 09:06:58 +02:00
|
|
|
%changelog
|