AppStream/AppStream.spec

182 lines
5.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package AppStream
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define libappstream_sover 4
%define libAppStreamQt_sover 2
Name: AppStream
Version: 0.11.1
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++
Url: https://www.freedesktop.org/software/appstream/docs/
Source: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.1.0
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: xmlto
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.46
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(packagekit-glib2)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(xapian-core)
BuildRequires: pkgconfig(yaml-0.1)
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.
%package -n libappstream%{libappstream_sover}
Summary: The main library for AppStream
License: GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
%description -n libappstream%{libappstream_sover}
The main library for AppStream.
%package -n libAppStreamQt%{libAppStreamQt_sover}
Summary: Qt5 bindings for AppStream
License: GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
%description -n libAppStreamQt%{libAppStreamQt_sover}
The Qt5 bindings for AppStream.
%package -n libAppStreamQt-devel
Summary: Needed include files and libraries for development
License: GPL-2.0+ and LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: libAppStreamQt%{libAppStreamQt_sover} = %{version}
Requires: libappstream%{libappstream_sover} = %{version}
%description -n libAppStreamQt-devel
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++
Requires: libappstream%{libappstream_sover} = %{version}
%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.
%package -n typelib-1_0-AppStream-1.0
Summary: Simple software installation management software -- Introspection bindings
License: LGPL-2.1+
Group: System/Libraries
%description -n typelib-1_0-AppStream-1.0
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
%prep
%setup -q
%build
%if "%{?_lib}" == "lib64"
SUFFIX="64"
%else
SUFFIX=""
%endif
%cmake -DQT=ON \
-DVAPI=ON \
-DINSTALL_PREBUILT_DOCS=OFF \
-DDOCUMENTATION=OFF \
-DSTEMMING=OFF \
-DAPPSTREAM_QT_VERSION=5
%make_jobs
%install
%make_install -C build
%find_lang appstream %{name}.lang
%post -n libappstream%{libappstream_sover} -p /sbin/ldconfig
%postun -n libappstream%{libappstream_sover} -p /sbin/ldconfig
%post -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
%postun -n libAppStreamQt%{libAppStreamQt_sover} -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%doc LICENSE* NEWS
%{_bindir}/appstreamcli
%config(noreplace) %{_sysconfdir}/appstream.conf
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.freedesktop.appstream.cli.metainfo.xml
%{_mandir}/man1/appstreamcli.*
%files -n libappstream%{libappstream_sover}
%defattr(-,root,root)
%doc LICENSE* NEWS
%{_libdir}/libappstream.so.*
%files -n libAppStreamQt%{libAppStreamQt_sover}
%defattr(-,root,root)
%doc LICENSE*
%{_libdir}/libAppStreamQt.so.*
%files -n libAppStreamQt-devel
%defattr(-,root,root)
%{_includedir}/AppStreamQt/
%{_libdir}/cmake/AppStreamQt/
%{_libdir}/libAppStreamQt.so
%files devel
%defattr(-,root,root)
%{_libdir}/libappstream.so
%{_libdir}/pkgconfig/appstream.pc
%{_includedir}/AppStream/
%{_datadir}/gir-1.0/AppStream-1.0.gir
%{_datadir}/gettext/
%dir %{_datadir}/vala/
%dir %{_datadir}/vala/vapi/
Accepting request 508298 from home:Vogtinator:branches:KDE:Frameworks5 - Update to version 0.11.1: Notes: * This release contains refactoring of the XML/YAML parsers and some other changes that are more invasive than usual. Features: * qt: Add new getters/setters and classes to be on par with the GObject library (Jan Grulich) * qt: Add AS::Metadata class used for parsing desktop and appstream metadata files (Jan Grulich) * Refactor the XML parser and serialization code (Matthias Klumpp) * Refactor the YAML parser and emitter code (Matthias Klumpp) * Implement 'service' component type (Matthias Klumpp) * Improve speed of metainfo description parsing slightly (Matthias Klumpp) * test: Add additional testcase for reading metainfo description tags (Matthias Klumpp) * test: Test metainfo descriptions starting with enumerations (Matthias Klumpp) Specification: * doc: Add Distro Packaging page (Jeremy Bicha) * doc: Add "service" components and their launchables (Marius Vollmer) * Allow components to provide other components (provides -> id) (Matthias Klumpp) Bugfixes: * doc: Uncomment line in middle of paragraph (Jeremy Bicha) * doc: A releases tag is not essential for components, but summary is (Matthias Klumpp) * Allow descriptions to start with an enumeration (Matthias Klumpp) * Ensure we always update with fresh data when refreshing the cache (Matthias Klumpp) * Replace invalid components in the pool with new ones of the same name (Matthias Klumpp) * Resolve a few potential bugs (found by static checks) (Matthias Klumpp) * xml: Check if we are trying to parse a real component (Matthias Klumpp) - Update to version 0.11.0: Features: OBS-URL: https://build.opensuse.org/request/show/508298 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=30
2017-07-05 11:23:36 +02:00
%{_datadir}/vala/vapi/appstream.deps
%{_datadir}/vala/vapi/appstream.vapi
%files -n typelib-1_0-AppStream-1.0
%defattr(-,root,root)
%doc LICENSE*
%{_libdir}/girepository-1.0/AppStream-1.0.typelib
%changelog