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
|
|
|
#
|
2018-01-17 18:48:17 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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-09-29 21:52:50 +02:00
|
|
|
|
2016-02-05 13:09:44 +01:00
|
|
|
Name: AppStream
|
2018-01-31 13:12:40 +01:00
|
|
|
Version: 0.11.1
|
2016-02-05 13:09:44 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities to generate, maintain and access the AppStream Xapian database
|
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-09-17 19:48:44 +02:00
|
|
|
Url: https://www.freedesktop.org/software/appstream/docs/
|
2016-02-05 13:09:44 +01:00
|
|
|
Source: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz
|
2018-01-31 13:12:40 +01:00
|
|
|
BuildRequires: cmake >= 3.1.0
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: intltool
|
2017-01-13 17:33:12 +01:00
|
|
|
BuildRequires: itstool
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2017-01-13 17:33:12 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.46
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(packagekit-glib2)
|
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2016-05-06 19:56:58 +02:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
|
|
|
BuildRequires: pkgconfig(xapian-core)
|
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2016-02-05 13:09:44 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
2016-02-29 15:06:36 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
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
|
2016-02-29 15:06:36 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
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
|
2016-02-05 13:09:44 +01:00
|
|
|
Summary: Needed include files and libraries for development
|
2016-02-29 15:06:36 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
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
|
|
|
|
Summary: Needed include files and libraries for development
|
|
|
|
License: GPL-2.0+
|
|
|
|
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.
|
|
|
|
|
2016-02-07 21:58:25 +01:00
|
|
|
%package -n typelib-1_0-AppStream-1.0
|
2016-02-05 13:09:44 +01:00
|
|
|
Summary: Simple software installation management software -- Introspection bindings
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-02-07 21:58:25 +01:00
|
|
|
%description -n typelib-1_0-AppStream-1.0
|
2016-02-05 13:09:44 +01:00
|
|
|
PackageKit is a system designed to make installing and updating
|
|
|
|
software on your computer easier. The primary design goal is to unify
|
|
|
|
all the software graphical tools used in different distributions, and
|
|
|
|
use some of the latest technology like PolicyKit to make the process
|
|
|
|
suck less.
|
|
|
|
|
|
|
|
%lang_package
|
2016-02-07 21:58:25 +01:00
|
|
|
|
2016-02-05 13:09:44 +01:00
|
|
|
%prep
|
2016-05-12 09:42:08 +02:00
|
|
|
%setup -q
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if "%{?_lib}" == "lib64"
|
|
|
|
SUFFIX="64"
|
|
|
|
%else
|
|
|
|
SUFFIX=""
|
|
|
|
%endif
|
2016-02-07 21:58:25 +01:00
|
|
|
|
2018-01-31 13:12:40 +01:00
|
|
|
%cmake -DQT=ON \
|
|
|
|
-DVAPI=ON \
|
|
|
|
-DINSTALL_PREBUILT_DOCS=OFF \
|
|
|
|
-DDOCUMENTATION=OFF \
|
|
|
|
-DSTEMMING=OFF \
|
|
|
|
-DAPPSTREAM_QT_VERSION=5
|
|
|
|
|
|
|
|
%make_jobs
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-31 13:12:40 +01:00
|
|
|
%make_install -C build
|
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
|
2016-02-07 22:12:46 +01:00
|
|
|
|
2016-09-29 21:52:50 +02:00
|
|
|
%postun -n libappstream%{libappstream_sover} -p /sbin/ldconfig
|
2016-02-07 22:12:46 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%post -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%postun -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE* NEWS
|
|
|
|
%{_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}
|
2016-02-07 21:58:25 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE* NEWS
|
|
|
|
%{_libdir}/libappstream.so.*
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%files -n libAppStreamQt%{libAppStreamQt_sover}
|
2016-02-05 13:09:44 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE*
|
2017-01-13 17:33:12 +01:00
|
|
|
%{_libdir}/libAppStreamQt.so.*
|
2016-02-05 13:09:44 +01:00
|
|
|
|
2017-01-13 17:33:12 +01:00
|
|
|
%files -n libAppStreamQt-devel
|
2016-02-05 13:09:44 +01:00
|
|
|
%defattr(-,root,root)
|
2017-01-13 17:33:12 +01:00
|
|
|
%{_includedir}/AppStreamQt/
|
|
|
|
%{_libdir}/cmake/AppStreamQt/
|
|
|
|
%{_libdir}/libAppStreamQt.so
|
2016-02-05 13:09:44 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libappstream.so
|
|
|
|
%{_libdir}/pkgconfig/appstream.pc
|
2018-01-31 13:12:40 +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/
|
2016-05-18 10:34:10 +02:00
|
|
|
%dir %{_datadir}/vala/
|
|
|
|
%dir %{_datadir}/vala/vapi/
|
2017-07-05 11:23:36 +02:00
|
|
|
%{_datadir}/vala/vapi/appstream.deps
|
2016-05-18 10:34:10 +02:00
|
|
|
%{_datadir}/vala/vapi/appstream.vapi
|
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
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE*
|
|
|
|
%{_libdir}/girepository-1.0/AppStream-1.0.typelib
|
|
|
|
|
|
|
|
%changelog
|