AppStream/AppStream.spec
Luca Beltrame e3cffceaee Accepting request 681558 from home:elimat:branches:KDE:Frameworks5
- Update to 0.12.6:
  Features:
   * Implement artifacts (Matthias Klumpp)
   * Search improvements (Matthias Klumpp)
  Specification:
   * doc: help distinguish the 2 'languages' tags (Beuc)
   * spec: Document the new artifacts tag (Matthias Klumpp)
- Update to 0.12.5:
  Features:
   * qt: expose the spdx parser to Qt users (Aleix Pol)
   * Implement operating-system component and add convenience functions (Matthias Klumpp)
   * qt: Add operating-system component type and a few utility functions (Matthias Klumpp)
   * Allow fetching the ISO8601 date directly alongside the timestamp in AsRelease (Matthias Klumpp)
   * Implement date_eol for AsRelease (Matthias Klumpp)
   * Add convenience methods for retrieving date_eol as UNIX timestamp (Matthias Klumpp)
   * qt: Allow retrieving the EOL timestamp for releases (Matthias Klumpp)
   * Implement new release details URL (Matthias Klumpp)
   * Make rDNS conversion function more generic and add more extensive tests (Matthias Klumpp)
  Specification:
   * docs: <release> tag can have details url (Jehan)
   * spec: Specify the operating-system component (Matthias Klumpp)
   * spec: Specify date_eol for releases (Matthias Klumpp)
   * docs: Explicitly state list items are allowed in ol/ul lists (Matthias Klumpp)
  Bugfixes:
   * Don't warn about issues in a cache refresh if there weren't any (Matthias Klumpp)
   * Ensure releases are always sorted in descending order (Matthias Klumpp)
   * pool: Fix g-i for get_components_*() while GPtrArray owns its elements (Rico Tzschichholz)
- Update to 0.12.4:
  Features:
   * pool: Be a lot more forgiving when encountering invalid components (Matthias Klumpp)
   * Implement component removal via remove-component merges (Matthias Klumpp)
   * validator: Warn about insecure URLs, handle mailto: URLs (Matthias Klumpp)
   * Add a contact URL type (Robert Ancell)
  Specification:
   * Document new remove-component merge type (Matthias Klumpp)
  Bugfixes:
   * as-pool: fix GObject annotation for GPtrArray owning the elements (Corentin Noël)
   * Make invalid components ratio check more accurate (Matthias Klumpp)
   * Ensure description paragraphs contain no invalid XML tags (Matthias Klumpp)
- Update to 0.12.3:
  Notes:
   * Beginning with this release, data from local .desktop files will not be loaded into
     the pool automatically, unless a metainfo file also exists.
     This should ensure less duplicated components in general higher-quality data to be
     displayed. It also provides another incentive to add/fix metainfo files.
     If you prefer the previous behavior, set the AS_POOL_FLAG_READ_DESKTOP_FILES flag
     on your AsPool instance.
  Features:
   * apt: Ignore errors post-update (Matthias Klumpp)
   * validator: Allow content_rating to be empty (Matthias Klumpp)
   * ascli: Display stock icon name if no suitable icon was found for details view (Matthias Klumpp)
   * Refactor loading of local metainfo files (Matthias Klumpp)
  Specification:
   * spec: Clarify the requirement for content_attribute tags in content_rating (Matthias Klumpp)
   * docs: Write intro for addon quickstart (Matthias Klumpp)
   * docs: Replace hyphens in component-IDs of XML examples (Matthias Klumpp)
  Bugfixes:
   * Ensure all addons are linked to a component (David Hewitt)
   * Annotate nullable return types (David Hewitt)
   * cache: Set explicit variant types for cases where they can not be inferred (Matthias Klumpp)
   * utils: Handle NULL strings when comparing versions (Matthias Klumpp)
   * Explicitly include string.h in as-tag.c (Matthias Klumpp)
   * Properly ignore desktop-entry components if we have better data (Matthias Klumpp)
   * Remove AppStream XSD schema (Matthias Klumpp)
   * Update static data (Matthias Klumpp)
   * Set error variable if there were some errors during refinement (Stefan Bruens)
- Remove patches, now upstream:
  * explicit-variant-types.patch
  * workaround-hidden-symbols.patch

OBS-URL: https://build.opensuse.org/request/show/681558
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=43
2019-03-05 08:57:48 +00:00

193 lines
6.0 KiB
RPMSpec

#
# spec file for package AppStream
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define libappstream_sover 4
%define libAppStreamQt_sover 2
Name: AppStream
Version: 0.12.6
Release: 0
Summary: Utilities to generate, maintain and access the AppStream Xapian database
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://www.freedesktop.org/software/appstream/docs/
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
BuildRequires: gettext
BuildRequires: gperf
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: meson >= 0.42
BuildRequires: pkgconfig
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)
Recommends: curl
%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-or-later AND LGPL-2.1-or-later
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-or-later AND LGPL-2.1-or-later
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-or-later AND LGPL-2.1-or-later
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-or-later
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 doc
Summary: Documentation for AppStream
License: GPL-2.0-or-later
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.
%package -n typelib-1_0-AppStream-1.0
Summary: Simple software installation management software -- Introspection bindings
License: LGPL-2.1-or-later
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
%autosetup
%build
%if "%{?_lib}" == "lib64"
SUFFIX="64"
%else
SUFFIX=""
%endif
%meson -Dqt=true \
-Dvapi=true \
-Ddocs=false \
-Dapidocs=false \
-Dstemming=false
%meson_build
%install
%meson_install
%find_lang appstream %{name}.lang
%post
appstreamcli refresh --force || true
%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
%doc NEWS
%license LICENSE*
%{_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}
%doc NEWS
%license LICENSE*
%{_libdir}/libappstream.so.*
%files -n libAppStreamQt%{libAppStreamQt_sover}
%license LICENSE*
%{_libdir}/libAppStreamQt.so.*
%files -n libAppStreamQt-devel
%{_includedir}/AppStreamQt/
%{_libdir}/cmake/AppStreamQt/
%{_libdir}/libAppStreamQt.so
%files devel
%{_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/
%{_datadir}/vala/vapi/appstream.deps
%{_datadir}/vala/vapi/appstream.vapi
%files -n typelib-1_0-AppStream-1.0
%license LICENSE*
%{_libdir}/girepository-1.0/AppStream-1.0.typelib
%files doc
%{_datadir}/doc/appstream
%changelog