File gnome-software.spec of Package gnome-software

# spec file for package gnome-software
# Copyright (c) 2014 SUSE LINUX Products 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

Name:           gnome-software
Version:        3.14.1
Release:        0
%define gs_plugin_api 7
Summary:        GNOME Software Store
License:        GPL-2.0+
Group:          System/GUI/GNOME
# PATCH-FEATURE-OPENSUSE gnome-software-PK-updates.patch -- Switch to PackageKit Update provider instead of systemd offline updates.
Patch0:         gnome-software-PK-updates.patch
# PATCH-FEATURE-OPENSUSE gnome-software-add-default-yast-appfolder.patch boo#897713 -- Adds a YaST app-folder by default, in addition to existing app-folders Sundry and Utilities
Patch1:         gnome-software-add-default-yast-appfolder.patch
# PATCH-FIX-OPENSUSE gnome-software-nouser-proxy.patch -- Do not pass user settings between the user session and packagekitd
Patch100:       gnome-software-nouser-proxy.patch
BuildRequires:  intltool >= 0.35.0
BuildRequires:  suse-xsl-stylesheets
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appstream-glib) >= 0.2.4
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas) >= 3.11.5
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.13.1
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(packagekit-glib2) >= 1.0.0
BuildRequires:  pkgconfig(sqlite3)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libzypp-plugin-appdata

AppStore like management of Applications for your GNOME Desktop.

%package -n libzypp-plugin-appdata
Version:        1.0
Release:        0
Summary:        Extend libzypp to handle AppStream metadata
Group:          System/Libraries
BuildArch:      noarch
Requires:       appstream-glib >= 0.2.4
# appdata hook was introduced in libzypp 14.29.4
Requires:       libzypp >= 14.29.4

%description -n libzypp-plugin-appdata
This plugin extends libzypp to install AppStream metadata, as extracted from the
repository metadata, onto the file system in order to be picked up by
software centers.

At this moment, gnome-software is the only known implementation making use of it.

%setup -q
# Disables - let's try the systemd offline updater
#patch0 -p1
%patch1 -p1
%patch100 -p1

%configure \
make %{?_smp_mflags}

find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
# Install AppData zypp plugin
install -Dm 0755 %{S:1} %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/$(basename %{S:1})
#suse_update_desktop_file gnome-software
%find_lang %{name}

%icon_theme_cache_post HighContrast

%icon_theme_cache_postun HighContrast

%dir %{_datadir}/appdata
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%dir %{_libdir}/gs-plugins-%{gs_plugin_api}
# zypp plugin triggering AppData update on repo refresh
%dir %{_prefix}/lib/zypp
%dir %{_prefix}/lib/zypp/plugins
%dir %{_prefix}/lib/zypp/plugins/appdata/

%files -n libzypp-plugin-appdata

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by