2014-07-14 09:06:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package appstream-glib
|
|
|
|
#
|
2016-01-29 13:19:03 +01:00
|
|
|
# Copyright (c) 2016 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
|
2016-04-29 14:23:56 +02:00
|
|
|
Version: 0.5.14
|
2014-07-14 09:06:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: AppStream Abstraction Library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://people.freedesktop.org/~hughsient/appstream-glib/
|
2014-10-27 21:45:46 +01:00
|
|
|
#Source: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
|
2015-04-07 14:57:45 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: openSUSE-appstream-process
|
2015-03-21 10:18:34 +01:00
|
|
|
Patch0: 0001-Add-yast2-branding-openSUSE-if-an-app-depends-on-yas.patch
|
2016-05-19 13:58:37 +02:00
|
|
|
Patch1: 0001-Sort-archive-contents-by-name-for-repeatable-results.patch
|
|
|
|
Patch2: 0001-Omit-timestamp-from-gzip-compressed-files.patch
|
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
|
2014-07-14 09:06:58 +02:00
|
|
|
BuildRequires: intltool >= 0.40.0
|
2014-10-14 11:27:52 +02:00
|
|
|
BuildRequires: libyaml-devel
|
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
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
2015-03-21 10:18:34 +01:00
|
|
|
%patch0 -p1
|
2016-05-19 13:58:37 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2014-07-14 09:06:58 +02:00
|
|
|
|
|
|
|
%build
|
2014-10-27 17:08:27 +01:00
|
|
|
%if %{_build_from_vcs}
|
2014-10-14 11:27:52 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-10-27 17:08:27 +01:00
|
|
|
%endif
|
2014-07-14 23:35:33 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2014-10-27 17:08:27 +01:00
|
|
|
--enable-gtk-doc \
|
2014-07-14 23:35:33 +02:00
|
|
|
--enable-rpm
|
2014-07-14 09:06:58 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_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}
|
|
|
|
install -m 0755 -D %{S:1} %{buildroot}%{_bindir}/$(basename %{S:1})
|
|
|
|
|
2014-07-14 09:06:58 +02:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2014-11-14 00:30:48 +01:00
|
|
|
%check
|
2015-03-17 14:09:04 +01:00
|
|
|
if make check; then
|
|
|
|
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
|
2014-07-14 09:06:58 +02:00
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%postun -n libappstream-glib8 -p /sbin/ldconfig
|
2014-07-14 09:06:58 +02:00
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%post -n libappstream-builder8 -p /sbin/ldconfig
|
2014-07-14 09:06:58 +02:00
|
|
|
|
2015-09-04 13:27:56 +02:00
|
|
|
%postun -n libappstream-builder8 -p /sbin/ldconfig
|
2014-07-14 09:06:58 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_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
|
|
|
%defattr(-,root,root)
|
|
|
|
%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
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libappstream-glib.so.*
|
|
|
|
|
2014-10-14 11:27:52 +02:00
|
|
|
%files -n typelib-1_0-AppStreamBuilder-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
|
|
|
|
|
|
|
|
%files -n typelib-1_0-AppStreamGlib-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
|
|
|
|
|
2014-07-14 09:06:58 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-11-14 00:30:48 +01: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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2015-04-07 14:57:45 +02:00
|
|
|
%files -n openSUSE-appstream-process
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/openSUSE-appstream-process
|
|
|
|
|
2014-07-14 09:06:58 +02:00
|
|
|
%changelog
|