|
|
c68504 |
%global glib2_version 2.46.0
|
|
|
c68504 |
%global gtk3_version 3.22.4
|
|
|
c68504 |
%global json_glib_version 1.1.1
|
|
|
c68504 |
%global packagekit_version 1.1.1
|
|
|
c68504 |
%global appstream_glib_version 0.6.9
|
|
|
c68504 |
%global libsoup_version 2.51.92
|
|
|
c68504 |
%global gsettings_desktop_schemas_version 3.11.5
|
|
|
c68504 |
%global gnome_desktop_version 3.17.92
|
|
|
c68504 |
%global flatpak_version 0.8.0
|
|
|
c68504 |
|
|
|
c68504 |
# this should be set using "--without packagekit" when atomic
|
|
|
c68504 |
%bcond_without packagekit
|
|
|
c68504 |
|
|
|
c68504 |
Name: gnome-software
|
|
|
c68504 |
Version: 3.22.7
|
|
|
c68504 |
Release: 5%{?dist}
|
|
|
c68504 |
Summary: A software center for GNOME
|
|
|
c68504 |
|
|
|
c68504 |
License: GPLv2+
|
|
|
c68504 |
URL: https://wiki.gnome.org/Apps/Software
|
|
|
c68504 |
Source0: https://download.gnome.org/sources/gnome-software/3.22/%{name}-%{version}.tar.xz
|
|
|
c68504 |
|
|
|
c68504 |
# We can't use the new name
|
|
|
c68504 |
Patch2: 0001-Change-the-name-of-the-application-to-Application-In.patch
|
|
|
c68504 |
|
|
|
c68504 |
# Update translations
|
|
|
c68504 |
Patch3: downstream-translations.patch
|
|
|
c68504 |
|
|
|
c68504 |
# No error when a GsApp has no valid sources
|
|
|
c68504 |
Patch4: 0001-packagekit-Never-call-GetDetails-when-there-are-no-s.patch
|
|
|
c68504 |
Patch5: 0002-trivial-Add-some-error-prefixes-to-better-chase-down.patch
|
|
|
c68504 |
|
|
|
c68504 |
# Blacklist the session manager
|
|
|
c68504 |
Patch6: 0001-trivial-Add-another-application-to-the-blacklist.patch
|
|
|
c68504 |
|
|
|
c68504 |
# Fix flatpakref installation
|
|
|
c68504 |
Patch7: 0001-flatpak-Set-the-correct-origin-when-installing-a-fla.patch
|
|
|
c68504 |
|
|
|
c68504 |
BuildRequires: gettext
|
|
|
c68504 |
BuildRequires: intltool
|
|
|
c68504 |
BuildRequires: libxslt
|
|
|
c68504 |
BuildRequires: docbook-style-xsl
|
|
|
c68504 |
BuildRequires: desktop-file-utils
|
|
|
c68504 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
c68504 |
BuildRequires: gnome-desktop3-devel
|
|
|
c68504 |
BuildRequires: gsettings-desktop-schemas-devel >= %{gsettings_desktop_schemas_version}
|
|
|
c68504 |
BuildRequires: gtk3-devel >= %{gtk3_version}
|
|
|
c68504 |
BuildRequires: gtkspell3-devel
|
|
|
c68504 |
BuildRequires: json-glib-devel >= %{json_glib_version}
|
|
|
c68504 |
BuildRequires: libappstream-glib-devel >= %{appstream_glib_version}
|
|
|
c68504 |
BuildRequires: libsoup-devel
|
|
|
c68504 |
BuildRequires: PackageKit-glib-devel >= %{packagekit_version}
|
|
|
c68504 |
BuildRequires: polkit-devel
|
|
|
c68504 |
BuildRequires: libsecret-devel
|
|
|
c68504 |
BuildRequires: flatpak-devel >= %{flatpak_version}
|
|
|
c68504 |
BuildRequires: rpm-devel
|
|
|
c68504 |
BuildRequires: libgudev1-devel
|
|
|
c68504 |
|
|
|
c68504 |
Requires: appstream-data
|
|
|
c68504 |
%if 0%{?fedora}
|
|
|
c68504 |
Requires: epiphany-runtime
|
|
|
c68504 |
%endif
|
|
|
c68504 |
Requires: flatpak%{?_isa} >= %{flatpak_version}
|
|
|
c68504 |
Requires: flatpak-libs%{?_isa} >= %{flatpak_version}
|
|
|
c68504 |
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
c68504 |
Requires: gnome-desktop3%{?_isa} >= %{gnome_desktop_version}
|
|
|
c68504 |
# gnome-menus is needed for app folder .directory entries
|
|
|
c68504 |
Requires: gnome-menus%{?_isa}
|
|
|
c68504 |
Requires: gsettings-desktop-schemas%{?_isa} >= %{gsettings_desktop_schemas_version}
|
|
|
c68504 |
Requires: gtk3%{?_isa} >= %{gtk3_version}
|
|
|
c68504 |
Requires: json-glib%{?_isa} >= %{json_glib_version}
|
|
|
c68504 |
Requires: iso-codes
|
|
|
c68504 |
Requires: libappstream-glib%{?_isa} >= %{appstream_glib_version}
|
|
|
c68504 |
# librsvg2 is needed for gdk-pixbuf svg loader
|
|
|
c68504 |
Requires: librsvg2%{?_isa}
|
|
|
c68504 |
Requires: libsoup%{?_isa} >= %{libsoup_version}
|
|
|
c68504 |
Requires: PackageKit%{?_isa} >= %{packagekit_version}
|
|
|
c68504 |
|
|
|
c68504 |
# this is not a library version
|
|
|
c68504 |
%define gs_plugin_version 11
|
|
|
c68504 |
|
|
|
c68504 |
%description
|
|
|
c68504 |
gnome-software is an application that makes it easy to add, remove
|
|
|
c68504 |
and update software in the GNOME desktop.
|
|
|
c68504 |
|
|
|
c68504 |
%package devel
|
|
|
c68504 |
Summary: Headers for building external gnome-software plugins
|
|
|
c68504 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
c68504 |
|
|
|
c68504 |
%description devel
|
|
|
c68504 |
These development files are for building gnome-software plugins outside
|
|
|
c68504 |
the source tree. Most users do not need this subpackage installed.
|
|
|
c68504 |
|
|
|
c68504 |
%prep
|
|
|
c68504 |
%setup -q
|
|
|
c68504 |
%patch2 -p1 -b .funky-name
|
|
|
c68504 |
%patch3 -p1 -b .downstream-translations
|
|
|
c68504 |
%patch4 -p1 -b .ignore-no-source-ids
|
|
|
c68504 |
%patch5 -p1 -b .better-error-messages
|
|
|
c68504 |
%patch6 -p1 -b .no-session-manager
|
|
|
c68504 |
%patch7 -p1 -b .flatpakref-installation
|
|
|
c68504 |
|
|
|
c68504 |
%build
|
|
|
c68504 |
%configure \
|
|
|
c68504 |
--disable-static \
|
|
|
c68504 |
--disable-firmware \
|
|
|
c68504 |
--disable-steam \
|
|
|
c68504 |
--disable-ostree \
|
|
|
c68504 |
--enable-gudev \
|
|
|
c68504 |
%if %{with packagekit}
|
|
|
c68504 |
--enable-packagekit \
|
|
|
c68504 |
%else
|
|
|
c68504 |
--disable-packagekit \
|
|
|
c68504 |
%endif
|
|
|
c68504 |
--disable-silent-rules
|
|
|
c68504 |
make %{?_smp_mflags}
|
|
|
c68504 |
|
|
|
c68504 |
%install
|
|
|
c68504 |
%make_install
|
|
|
c68504 |
|
|
|
c68504 |
rm %{buildroot}%{_libdir}/gs-plugins-%{gs_plugin_version}/*.la
|
|
|
c68504 |
|
|
|
c68504 |
# make the software center load faster
|
|
|
c68504 |
desktop-file-edit %{buildroot}%{_datadir}/applications/org.gnome.Software.desktop \
|
|
|
c68504 |
--set-key=X-AppInstall-Package --set-value=%{name}
|
|
|
c68504 |
|
|
|
c68504 |
# set up for Fedora
|
|
|
c68504 |
cat >> %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.software-fedora.gschema.override << FOE
|
|
|
c68504 |
[org.gnome.software]
|
|
|
c68504 |
official-sources = [ 'rhel-7' ]
|
|
|
c68504 |
FOE
|
|
|
c68504 |
|
|
|
c68504 |
%find_lang %name --with-gnome
|
|
|
c68504 |
|
|
|
c68504 |
%check
|
|
|
c68504 |
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
c68504 |
|
|
|
c68504 |
%post
|
|
|
c68504 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
c68504 |
|
|
|
c68504 |
%postun
|
|
|
c68504 |
if [ $1 -eq 0 ]; then
|
|
|
c68504 |
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
c68504 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
c68504 |
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
c68504 |
fi
|
|
|
c68504 |
|
|
|
c68504 |
%posttrans
|
|
|
c68504 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
c68504 |
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
c68504 |
|
|
|
c68504 |
%files -f %{name}.lang
|
|
|
c68504 |
%doc AUTHORS NEWS README
|
|
|
c68504 |
%license COPYING
|
|
|
c68504 |
%{_bindir}/gnome-software
|
|
|
c68504 |
%{_datadir}/applications/*.desktop
|
|
|
c68504 |
%dir %{_datadir}/gnome-software
|
|
|
c68504 |
%{_datadir}/gnome-software/*.png
|
|
|
c68504 |
%{_datadir}/appdata/*.appdata.xml
|
|
|
c68504 |
%{_mandir}/man1/gnome-software.1.gz
|
|
|
c68504 |
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
c68504 |
%{_datadir}/gnome-software/featured-*.svg
|
|
|
c68504 |
%{_datadir}/gnome-software/featured-*.jpg
|
|
|
c68504 |
%dir %{_libdir}/gs-plugins-%{gs_plugin_version}
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_appstream.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_desktop-categories.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_desktop-menu-path.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_dpkg.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_dummy.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_epiphany.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fedora-distro-upgrades.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fedora-tagger-usage.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_flatpak.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-blacklist.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-featured.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_hardcoded-popular.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_icons.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_key-colors.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_modalias.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_odrs.so
|
|
|
c68504 |
%if %{with packagekit}
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-history.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-local.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-offline.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-origin.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-proxy.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-refine.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-refresh.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-upgrade.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit.so
|
|
|
c68504 |
%endif
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_provenance-license.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_provenance.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_repos.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_rpm.so
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_shell-extensions.so
|
|
|
c68504 |
%if %{with packagekit}
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_systemd-updates.so
|
|
|
c68504 |
%endif
|
|
|
c68504 |
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_ubuntuone.so
|
|
|
c68504 |
%{_sysconfdir}/xdg/autostart/gnome-software-service.desktop
|
|
|
c68504 |
%if %{with packagekit}
|
|
|
c68504 |
%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
|
|
|
c68504 |
%endif
|
|
|
c68504 |
%{_datadir}/dbus-1/services/org.gnome.Software.service
|
|
|
c68504 |
%{_datadir}/gnome-shell/search-providers/org.gnome.Software-search-provider.ini
|
|
|
c68504 |
%{_datadir}/glib-2.0/schemas/org.gnome.software.gschema.xml
|
|
|
c68504 |
%{_datadir}/glib-2.0/schemas/org.gnome.software-fedora.gschema.override
|
|
|
c68504 |
|
|
|
c68504 |
%files devel
|
|
|
c68504 |
%{_libdir}/pkgconfig/gnome-software.pc
|
|
|
c68504 |
%dir %{_includedir}/gnome-software
|
|
|
c68504 |
%{_includedir}/gnome-software/*.h
|
|
|
c68504 |
%{_datadir}/gtk-doc/html/gnome-software
|
|
|
c68504 |
|
|
|
c68504 |
%changelog
|
|
|
c68504 |
* Wed Feb 07 2018 Kalev Lember <klember@redhat.com> - 3.22.7-5
|
|
|
c68504 |
- Backport a fix for installing flatpakref files
|
|
|
c68504 |
- Resolves: #1509883
|
|
|
c68504 |
|
|
|
c68504 |
* Tue Jan 23 2018 Ray Strode <rstrode@redhat.com> - 3.22.7-4
|
|
|
c68504 |
- Drop non-free sources from schema to avoid confusing infobar at startup
|
|
|
c68504 |
Resolves: #1514113
|
|
|
c68504 |
|
|
|
c68504 |
* Fri Nov 03 2017 Richard Hughes <rhughes@redhat.com> - 3.22.7-3
|
|
|
c68504 |
- Never show 'Startup Applications' in the search results
|
|
|
c68504 |
- Note: the other issue shown in the bug is likely a dupe of #1445651
|
|
|
c68504 |
- Resolves: #1481145
|
|
|
c68504 |
|
|
|
c68504 |
* Tue Sep 19 2017 Richard Hughes <rhughes@redhat.com> - 3.22.7-2
|
|
|
c68504 |
- Backport two fixes to fix a common error message
|
|
|
c68504 |
- Resolves: #1445651
|
|
|
c68504 |
|
|
|
c68504 |
* Tue Mar 14 2017 Kalev Lember <klember@redhat.com> - 3.22.7-1
|
|
|
c68504 |
- Update to 3.22.7
|
|
|
c68504 |
- Resolves: #1386961
|
|
|
c68504 |
|
|
|
c68504 |
* Wed Mar 08 2017 Kalev Lember <klember@redhat.com> - 3.22.6-1
|
|
|
c68504 |
- Update to 3.22.6
|
|
|
c68504 |
- Build with flatpak support
|
|
|
c68504 |
- Resolves: #1386961
|
|
|
c68504 |
|
|
|
c68504 |
* Thu Mar 02 2017 Richard Hughes <rhughes@redhat.com> - 3.22.5-1
|
|
|
c68504 |
- Update to 3.22.5
|
|
|
c68504 |
- Resolves: #1386961
|
|
|
c68504 |
|
|
|
c68504 |
* Sun Aug 30 2015 Kalev Lember <klember@redhat.com> - 3.14.7-2
|
|
|
c68504 |
- Add translations for three new strings
|
|
|
c68504 |
- Resolves: #1246388
|
|
|
c68504 |
|
|
|
c68504 |
* Mon Aug 03 2015 Kalev Lember <klember@redhat.com> - 3.14.7-1
|
|
|
c68504 |
- Update to 3.14.7
|
|
|
c68504 |
- Show installation progress when installing apps
|
|
|
c68504 |
- Fix incomplete Japanese translations
|
|
|
c68504 |
- Show a new notification when security updates remain unapplied
|
|
|
c68504 |
- Resolves: #1237181, #1055643, #1136954
|
|
|
c68504 |
|
|
|
c68504 |
* Mon Jul 13 2015 Richard Hughes <rhughes@redhat.com> - 3.14.6-5
|
|
|
c68504 |
- Do not show applications that are not available when searching by category.
|
|
|
c68504 |
- Resolves: #1237215
|
|
|
c68504 |
|
|
|
c68504 |
* Thu Jul 09 2015 Richard Hughes <rhughes@redhat.com> - 3.14.6-4
|
|
|
c68504 |
- Actually apply the last patch.
|
|
|
c68504 |
- Resolves: #1184203
|
|
|
c68504 |
|
|
|
c68504 |
* Wed Jul 08 2015 Richard Hughes <rhughes@redhat.com> - 3.14.6-3
|
|
|
c68504 |
- Use a different application name in the menu.
|
|
|
c68504 |
- Resolves: #1184203
|
|
|
c68504 |
|
|
|
c68504 |
* Wed Jul 01 2015 Kalev Lember <klember@redhat.com> - 3.14.6-2
|
|
|
c68504 |
- Update version display logic to cover the .el suffix used in RHEL
|
|
|
c68504 |
- Resolves: #1184203
|
|
|
c68504 |
|
|
|
c68504 |
* Fri Jun 19 2015 Kalev Lember <klember@redhat.com> - 3.14.6-1
|
|
|
c68504 |
- Update to 3.14.6
|
|
|
c68504 |
- Resolves: #1184203
|
|
|
c68504 |
|
|
|
c68504 |
* Wed Jun 17 2015 Kalev Lember <klember@redhat.com> - 3.14.5-2
|
|
|
c68504 |
- Add more apps to the Editor's Picks list
|
|
|
c68504 |
- Resolves: #1184203
|
|
|
c68504 |
|
|
|
c68504 |
* Tue Jun 16 2015 Richard Hughes <rhughes@redhat.com> - 3.14.5-1
|
|
|
c68504 |
- New package for RHEL
|
|
|
c68504 |
- Resolves: #1184203
|