2016-02-05 13:09:44 +01:00
|
|
|
#
|
2016-02-29 15:06:36 +01:00
|
|
|
# spec file for package AppStream
|
2016-02-05 13:09:44 +01:00
|
|
|
#
|
2022-03-04 12:18:30 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-02-05 13:09:44 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-16 13:58:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-02-05 13:09:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-08-31 08:43:48 +02:00
|
|
|
%if 0%{?sle_version} >= 150300 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
|
|
|
|
%bcond_without vala
|
|
|
|
%endif
|
2016-09-29 21:52:50 +02:00
|
|
|
%define libappstream_sover 4
|
2017-01-13 17:33:12 +01:00
|
|
|
%define libAppStreamQt_sover 2
|
2016-02-05 13:09:44 +01:00
|
|
|
Name: AppStream
|
2021-12-31 10:37:41 +01:00
|
|
|
Version: 0.15.1
|
2016-02-05 13:09:44 +01:00
|
|
|
Release: 0
|
2019-07-29 20:53:19 +02:00
|
|
|
Summary: Tools and libraries to work with AppStream metadata
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2016-02-05 13:09:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-16 13:58:35 +02:00
|
|
|
URL: https://www.freedesktop.org/software/appstream/docs/
|
2018-05-23 23:16:20 +02:00
|
|
|
Source0: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz
|
|
|
|
Source1: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz.asc
|
|
|
|
Source2: %{name}.keyring
|
2019-12-20 09:13:17 +01:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: gettext
|
2018-10-16 13:58:35 +02:00
|
|
|
BuildRequires: gperf
|
2020-02-26 14:54:35 +01:00
|
|
|
BuildRequires: meson >= 0.48
|
2021-08-31 08:43:48 +02:00
|
|
|
%if %{with vala}
|
2021-08-31 08:39:52 +02:00
|
|
|
BuildRequires: vala
|
2021-08-31 08:43:48 +02:00
|
|
|
%endif
|
2022-03-04 12:18:30 +01:00
|
|
|
BuildRequires: itstool
|
2018-10-16 13:58:35 +02:00
|
|
|
BuildRequires: pkgconfig
|
2019-12-20 09:13:17 +01:00
|
|
|
BuildRequires: xsltproc
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2021-12-31 10:37:41 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.62
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2021-02-17 11:46:51 +01:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2021-12-31 10:37:41 +01:00
|
|
|
BuildRequires: pkgconfig(xmlb) >= 0.3.6
|
2022-03-04 12:18:30 +01:00
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2018-02-11 13:02:28 +01:00
|
|
|
Recommends: curl
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
AppStream-Core makes it easy to access application information from the
|
|
|
|
AppStream database over a nice GObject-based interface.
|
|
|
|
|
2016-09-29 21:52:50 +02:00
|
|
|
%package -n libappstream%{libappstream_sover}
|
2016-02-07 21:58:25 +01:00
|
|
|
Summary: The main library for AppStream
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2016-02-07 21:58:25 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-09-29 21:52:50 +02:00
|
|
|
%description -n libappstream%{libappstream_sover}
|
2016-02-07 21:58:25 +01:00
|
|
|
The main library for AppStream.
|
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%package -n libAppStreamQt%{libAppStreamQt_sover}
|
2016-02-05 13:09:44 +01:00
|
|
|
Summary: Qt5 bindings for AppStream
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2016-02-05 13:09:44 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%description -n libAppStreamQt%{libAppStreamQt_sover}
|
2016-02-05 13:09:44 +01:00
|
|
|
The Qt5 bindings for AppStream.
|
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%package -n libAppStreamQt-devel
|
2019-03-17 11:28:35 +01:00
|
|
|
Summary: Header files for AppStream's Qt5 bindings
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2016-02-05 13:09:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-13 17:33:12 +01:00
|
|
|
Requires: libAppStreamQt%{libAppStreamQt_sover} = %{version}
|
2016-09-29 21:52:50 +02:00
|
|
|
Requires: libappstream%{libappstream_sover} = %{version}
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%description -n libAppStreamQt-devel
|
2016-02-05 13:09:44 +01:00
|
|
|
This package contains all necessary include files, libraries,
|
|
|
|
configuration files and development tools (with manual pages) needed to
|
|
|
|
compile and link applications using the Qt bindings for AppStream.
|
|
|
|
|
|
|
|
%package devel
|
2019-03-17 11:28:35 +01:00
|
|
|
Summary: Header files for AppStream development
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later
|
2016-02-05 13:09:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-09-29 21:52:50 +02:00
|
|
|
Requires: libappstream%{libappstream_sover} = %{version}
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files, libraries,
|
|
|
|
configuration files and development tools (with manual pages) needed to
|
|
|
|
compile and link applications using AppStream.
|
|
|
|
|
2018-02-02 18:16:49 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for AppStream
|
2018-05-23 23:16:20 +02:00
|
|
|
License: GPL-2.0-or-later
|
2018-02-02 18:16:49 +01:00
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
AppStream-Core makes it easy to access application information from the
|
|
|
|
AppStream database over a nice GObject-based interface.
|
|
|
|
|
|
|
|
This package contains the documentation files for AppStream.
|
|
|
|
|
2016-02-07 21:58:25 +01:00
|
|
|
%package -n typelib-1_0-AppStream-1.0
|
2019-03-17 11:28:35 +01:00
|
|
|
Summary: Introspection bindings for AppStream
|
2018-05-23 23:16:20 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-02-05 13:09:44 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-02-07 21:58:25 +01:00
|
|
|
%description -n typelib-1_0-AppStream-1.0
|
2019-07-29 20:53:19 +02:00
|
|
|
GObject introspection bindings for interfaces provided by AppStream.
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%lang_package
|
2016-02-07 21:58:25 +01:00
|
|
|
|
2016-02-05 13:09:44 +01:00
|
|
|
%prep
|
2019-06-19 15:11:50 +02:00
|
|
|
%autosetup -p1
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%build
|
2018-02-02 18:16:49 +01:00
|
|
|
%meson -Dqt=true \
|
2021-08-31 08:43:48 +02:00
|
|
|
%if %{with vala}
|
2021-08-31 08:39:52 +02:00
|
|
|
-Dvapi=true \
|
|
|
|
%else
|
2021-01-11 13:18:17 +01:00
|
|
|
-Dvapi=false \
|
2021-08-31 08:39:52 +02:00
|
|
|
%endif
|
2018-02-02 18:16:49 +01:00
|
|
|
-Ddocs=false \
|
|
|
|
-Dapidocs=false \
|
|
|
|
-Dstemming=false
|
|
|
|
%meson_build
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%install
|
2018-02-02 18:16:49 +01:00
|
|
|
%meson_install
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2021-10-23 10:40:12 +02:00
|
|
|
# Unneeded test file
|
|
|
|
rm -r %{buildroot}%{_datadir}/installed-tests
|
|
|
|
|
2019-07-30 10:48:39 +02:00
|
|
|
%check
|
|
|
|
%meson_test
|
|
|
|
|
2016-02-05 13:09:44 +01:00
|
|
|
%find_lang appstream %{name}.lang
|
|
|
|
|
2016-09-29 21:52:50 +02:00
|
|
|
%post -n libappstream%{libappstream_sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libappstream%{libappstream_sover} -p /sbin/ldconfig
|
2017-01-13 17:33:12 +01:00
|
|
|
%post -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%files
|
2018-05-23 23:16:20 +02:00
|
|
|
%doc NEWS
|
2016-02-05 13:09:44 +01:00
|
|
|
%{_bindir}/appstreamcli
|
|
|
|
%config(noreplace) %{_sysconfdir}/appstream.conf
|
2017-01-13 17:33:12 +01:00
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/org.freedesktop.appstream.cli.metainfo.xml
|
2016-02-05 13:09:44 +01:00
|
|
|
%{_mandir}/man1/appstreamcli.*
|
2016-02-07 21:58:25 +01:00
|
|
|
|
2016-09-29 21:52:50 +02:00
|
|
|
%files -n libappstream%{libappstream_sover}
|
2018-05-23 23:16:20 +02:00
|
|
|
%license LICENSE*
|
2019-06-19 15:11:50 +02:00
|
|
|
%{_libdir}/libappstream.so.%{libappstream_sover}
|
|
|
|
%{_libdir}/libappstream.so.%{version}
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%files -n libAppStreamQt%{libAppStreamQt_sover}
|
2019-06-19 15:11:50 +02:00
|
|
|
%{_libdir}/libAppStreamQt.so.%{libAppStreamQt_sover}
|
|
|
|
%{_libdir}/libAppStreamQt.so.%{version}
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%files -n libAppStreamQt-devel
|
|
|
|
%{_includedir}/AppStreamQt/
|
|
|
|
%{_libdir}/cmake/AppStreamQt/
|
|
|
|
%{_libdir}/libAppStreamQt.so
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libappstream.so
|
|
|
|
%{_libdir}/pkgconfig/appstream.pc
|
2018-02-02 18:16:49 +01:00
|
|
|
%{_includedir}/appstream/
|
2016-02-05 13:09:44 +01:00
|
|
|
%{_datadir}/gir-1.0/AppStream-1.0.gir
|
2016-02-07 21:58:25 +01:00
|
|
|
%{_datadir}/gettext/
|
2021-08-31 08:43:48 +02:00
|
|
|
%if %{with vala}
|
2021-08-31 08:39:52 +02:00
|
|
|
%dir %{_datadir}/vala/
|
|
|
|
%dir %{_datadir}/vala/vapi/
|
|
|
|
%{_datadir}/vala/vapi/appstream.deps
|
|
|
|
%{_datadir}/vala/vapi/appstream.vapi
|
|
|
|
%endif
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2016-02-07 21:58:25 +01:00
|
|
|
%files -n typelib-1_0-AppStream-1.0
|
2016-02-05 13:09:44 +01:00
|
|
|
%{_libdir}/girepository-1.0/AppStream-1.0.typelib
|
|
|
|
|
2018-02-02 18:16:49 +01:00
|
|
|
%files doc
|
|
|
|
%{_datadir}/doc/appstream
|
|
|
|
|
2016-02-05 13:09:44 +01:00
|
|
|
%changelog
|