%global glib2_version 2.46.0 %global gtk3_version 3.22.4 %global json_glib_version 1.1.1 %global packagekit_version 1.1.1 %global appstream_glib_version 0.6.9 %global libsoup_version 2.51.92 %global gsettings_desktop_schemas_version 3.11.5 %global gnome_desktop_version 3.17.92 %global flatpak_version 0.8.0 # this should be set using "--without packagekit" when atomic %bcond_without packagekit %define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %else %define doc_license 0 %endif %define license_files COPYING Name: gnome-software Version: 3.22.7 Release: 4%{?dist} Summary: A software center for GNOME License: GPLv2+ URL: https://wiki.gnome.org/Apps/Software Source0: https://download.gnome.org/sources/gnome-software/3.22/%{name}-%{version}.tar.xz # We can't use the new name Patch2: 0001-Change-the-name-of-the-application-to-Application-In.patch # Update translations Patch3: downstream-translations.patch # No error when a GsApp has no valid sources Patch4: 0001-packagekit-Never-call-GetDetails-when-there-are-no-s.patch Patch5: 0002-trivial-Add-some-error-prefixes-to-better-chase-down.patch # Blacklist the session manager Patch6: 0001-trivial-Add-another-application-to-the-blacklist.patch # Backport fixes to snap plugin from gnome-3-22 branch Patch1001: 1001-snap-Fix-icons-not-being-converted-to-pixbufs.patch Patch1002: 1002-snap-Backport-fixes-from-master.patch Patch1003: 1003-snap-Fix-crash-when-fail-to-use-icon-from-cache.patch Patch1004: 1004-snap-Use-title-field-if-available.patch Patch1005: 1005-snap-Only-show-snaps-as-sandboxed-if-snapd-supports-.patch Patch1006: 1006-snap-Mark-non-app-snaps-as-runtimes.patch Patch1007: 1007-snap-Remove-size-limit-on-snap-responses.patch Patch1008: 1008-snap-Fix-failures-to-read-from-snapd.patch Patch1009: 1009-snap-Run-before-hardcoded-popular-plugin.patch Patch1010: 1010-snap-Replace-libsoup-icon-loading-code-with-AsIcon.patch Patch1011: 1011-snap-Fix-leak-of-GsApp.patch BuildRequires: gettext BuildRequires: intltool BuildRequires: libxslt BuildRequires: docbook-style-xsl BuildRequires: desktop-file-utils BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gnome-desktop3-devel BuildRequires: gsettings-desktop-schemas-devel >= %{gsettings_desktop_schemas_version} BuildRequires: gtk3-devel >= %{gtk3_version} BuildRequires: gtkspell3-devel BuildRequires: json-glib-devel >= %{json_glib_version} BuildRequires: libappstream-glib-devel >= %{appstream_glib_version} BuildRequires: libsoup-devel BuildRequires: PackageKit-glib-devel >= %{packagekit_version} BuildRequires: polkit-devel BuildRequires: libsecret-devel BuildRequires: flatpak-devel >= %{flatpak_version} BuildRequires: rpm-devel BuildRequires: libgudev1-devel BuildRequires: snapd-glib-devel Requires: appstream-data %if 0%{?fedora} Requires: epiphany-runtime %endif Requires: flatpak%{?_isa} >= %{flatpak_version} Requires: flatpak-libs%{?_isa} >= %{flatpak_version} Requires: glib2%{?_isa} >= %{glib2_version} Requires: gnome-desktop3%{?_isa} >= %{gnome_desktop_version} # gnome-menus is needed for app folder .directory entries Requires: gnome-menus%{?_isa} Requires: gsettings-desktop-schemas%{?_isa} >= %{gsettings_desktop_schemas_version} Requires: gtk3%{?_isa} >= %{gtk3_version} Requires: json-glib%{?_isa} >= %{json_glib_version} Requires: iso-codes Requires: libappstream-glib%{?_isa} >= %{appstream_glib_version} # librsvg2 is needed for gdk-pixbuf svg loader Requires: librsvg2%{?_isa} Requires: libsoup%{?_isa} >= %{libsoup_version} Requires: PackageKit%{?_isa} >= %{packagekit_version} # this is not a library version %define gs_plugin_version 11 %description gnome-software is an application that makes it easy to add, remove and update software in the GNOME desktop. %package devel Summary: Headers for building external gnome-software plugins Requires: %{name}%{?_isa} = %{version}-%{release} %description devel These development files are for building gnome-software plugins outside the source tree. Most users do not need this subpackage installed. %package snap Summary: Support for Ubuntu Snap packages Requires: %{name}%{?_isa} = %{version}-%{release} Requires: snapd-login-service %description snap Adds support for Snap packages from the Snap store. %prep %setup -q %autopatch -p1 %build %configure \ --disable-static \ --disable-firmware \ --disable-steam \ --disable-ostree \ --enable-gudev \ %if %{with packagekit} --enable-packagekit \ %else --disable-packagekit \ %endif --disable-silent-rules %{__make} %{?_smp_mflags} %install %make_install %{__rm} "%{buildroot}%{_libdir}/gs-plugins-%{gs_plugin_version}"/*.la # make the software center load faster desktop-file-edit "%{buildroot}%{_datadir}/applications/org.gnome.Software.desktop" \ --set-key=X-AppInstall-Package --set-value="%{name}" # set up for Fedora cat >> "%{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.software-fedora.gschema.override" << FOE [org.gnome.software] official-sources = [ 'rhel-7' ] nonfree-sources = [ 'google-chrome' ] FOE %find_lang "%{name}" --with-gnome %check desktop-file-validate "%{buildroot}%{_datadir}/applications"/*.desktop %post touch --no-create "%{_datadir}/icons/hicolor" &>/dev/null || : %postun if [[ "${1}" -eq "0" ]]; then touch --no-create "%{_datadir}/icons/hicolor" &> /dev/null || : gtk-update-icon-cache "%{_datadir}/icons/hicolor" &> /dev/null || : glib-compile-schemas "%{_datadir}/glib-2.0/schemas" &> /dev/null || : fi %posttrans gtk-update-icon-cache "%{_datadir}/icons/hicolor" &> /dev/null || : glib-compile-schemas "%{_datadir}/glib-2.0/schemas" &> /dev/null || : %files -f "%{name}.lang" %doc AUTHORS NEWS README %if 0%{?doc_license} %license %{license_files} %else %doc %{license_files} %endif %{_bindir}/gnome-software %{_datadir}/applications/*.desktop %dir %{_datadir}/gnome-software %{_datadir}/gnome-software/*.png %{_datadir}/appdata/*.appdata.xml %{_mandir}/man1/gnome-software.1.gz %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/gnome-software/featured-*.svg %{_datadir}/gnome-software/featured-*.jpg %dir %{_libdir}/gs-plugins-%{gs_plugin_version} %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_appstream.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_desktop-categories.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_desktop-menu-path.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_dpkg.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_dummy.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_epiphany.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fedora-distro-upgrades.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fedora-tagger-usage.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_flatpak.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-blacklist.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-featured.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-popular.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_icons.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_key-colors.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_modalias.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_odrs.so %if %{with packagekit} %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-history.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-local.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-offline.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-origin.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-proxy.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-refine.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-refresh.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-upgrade.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit.so %endif %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_provenance-license.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_provenance.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_repos.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_rpm.so %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_shell-extensions.so %if %{with packagekit} %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_systemd-updates.so %endif %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_ubuntuone.so %{_sysconfdir}/xdg/autostart/gnome-software-service.desktop %if %{with packagekit} %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service %endif %{_datadir}/dbus-1/services/org.gnome.Software.service %{_datadir}/gnome-shell/search-providers/org.gnome.Software-search-provider.ini %{_datadir}/glib-2.0/schemas/org.gnome.software.gschema.xml %{_datadir}/glib-2.0/schemas/org.gnome.software-fedora.gschema.override %files devel %{_libdir}/pkgconfig/gnome-software.pc %dir %{_includedir}/gnome-software %{_includedir}/gnome-software/*.h %{_datadir}/gtk-doc/html/gnome-software %files snap %{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_snap.so %changelog * Tue May 01 2018 Tomasz Tomasik - 3.22.7-4 - SPEC file cleanups - Use license macro - Rebuilt for EL7 * Thu Jan 25 2018 Neal Gompa - 3.22.7-3.1 - Enable snap plugin - Backport fixes for snap plugin from upstream gnome-3-22 branch * Fri Nov 03 2017 Richard Hughes - 3.22.7-3 - Never show 'Startup Applications' in the search results - Note: the other issue shown in the bug is likely a dupe of #1445651 - Resolves: #1481145 * Tue Sep 19 2017 Richard Hughes - 3.22.7-2 - Backport two fixes to fix a common error message - Resolves: #1445651 * Tue Mar 14 2017 Kalev Lember - 3.22.7-1 - Update to 3.22.7 - Resolves: #1386961 * Wed Mar 08 2017 Kalev Lember - 3.22.6-1 - Update to 3.22.6 - Build with flatpak support - Resolves: #1386961 * Thu Mar 02 2017 Richard Hughes - 3.22.5-1 - Update to 3.22.5 - Resolves: #1386961 * Sun Aug 30 2015 Kalev Lember - 3.14.7-2 - Add translations for three new strings - Resolves: #1246388 * Mon Aug 03 2015 Kalev Lember - 3.14.7-1 - Update to 3.14.7 - Show installation progress when installing apps - Fix incomplete Japanese translations - Show a new notification when security updates remain unapplied - Resolves: #1237181, #1055643, #1136954 * Mon Jul 13 2015 Richard Hughes - 3.14.6-5 - Do not show applications that are not available when searching by category. - Resolves: #1237215 * Thu Jul 09 2015 Richard Hughes - 3.14.6-4 - Actually apply the last patch. - Resolves: #1184203 * Wed Jul 08 2015 Richard Hughes - 3.14.6-3 - Use a different application name in the menu. - Resolves: #1184203 * Wed Jul 01 2015 Kalev Lember - 3.14.6-2 - Update version display logic to cover the .el suffix used in RHEL - Resolves: #1184203 * Fri Jun 19 2015 Kalev Lember - 3.14.6-1 - Update to 3.14.6 - Resolves: #1184203 * Wed Jun 17 2015 Kalev Lember - 3.14.5-2 - Add more apps to the Editor's Picks list - Resolves: #1184203 * Tue Jun 16 2015 Richard Hughes - 3.14.5-1 - New package for RHEL - Resolves: #1184203