Blame SPECS/gnome-software.spec

c68504
%global glib2_version 2.46.0
c68504
%global gtk3_version 3.22.4
ce8785
%global json_glib_version 1.2.0
c68504
%global packagekit_version 1.1.1
ce8785
%global appstream_glib_version 0.7.8
ce8785
%global libsoup_version 2.52.0
ce8785
%global gsettings_desktop_schemas_version 3.12.0
ce8785
%global gnome_desktop_version 3.18.0
ce8785
%global fwupd_version 1.0.7
ce8785
%global flatpak_version 0.9.4
c68504
c68504
# this should be set using "--without packagekit" when atomic
c68504
%bcond_without packagekit
c68504
c68504
Name:      gnome-software
ce8785
Version:   3.28.2
ce8785
Release:   3%{?dist}
c68504
Summary:   A software center for GNOME
c68504
c68504
License:   GPLv2+
c68504
URL:       https://wiki.gnome.org/Apps/Software
ce8785
Source0:   https://download.gnome.org/sources/gnome-software/3.28/%{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
Patch3:    downstream-translations.patch
c68504
c68504
BuildRequires: gettext
c68504
BuildRequires: intltool
c68504
BuildRequires: libxslt
c68504
BuildRequires: docbook-style-xsl
c68504
BuildRequires: desktop-file-utils
ce8785
BuildRequires: fwupd-devel >= %{fwupd_version}
c68504
BuildRequires: glib2-devel >= %{glib2_version}
c68504
BuildRequires: gnome-desktop3-devel
c68504
BuildRequires: gsettings-desktop-schemas-devel >= %{gsettings_desktop_schemas_version}
ce8785
BuildRequires: gspell-devel
c68504
BuildRequires: gtk3-devel >= %{gtk3_version}
ce8785
BuildRequires: gtk-doc
c68504
BuildRequires: json-glib-devel >= %{json_glib_version}
c68504
BuildRequires: libappstream-glib-devel >= %{appstream_glib_version}
c68504
BuildRequires: libsoup-devel
ce8785
BuildRequires: meson
c68504
BuildRequires: PackageKit-glib-devel >= %{packagekit_version}
c68504
BuildRequires: polkit-devel
c68504
BuildRequires: libsecret-devel
c68504
BuildRequires: flatpak-devel >= %{flatpak_version}
c68504
BuildRequires: libgudev1-devel
ce8785
BuildRequires: liboauth-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}
ce8785
Requires: fwupd%{?_isa} >= %{fwupd_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
ce8785
# Removed in RHEL 7.6
ce8785
Obsoletes: gnome-shell-browser-plugin < 3.28.3-4
ce8785
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
ce8785
%package editor
ce8785
Summary: Banner designer for GNOME Software
ce8785
Requires: %{name}%{?_isa} = %{version}-%{release}
ce8785
ce8785
%description editor
ce8785
Editor for designing banners for GNOME Software.
ce8785
c68504
%prep
ce8785
%autosetup -p1
c68504
c68504
%build
ce8785
%meson \
ce8785
    -Denable-valgrind=false \
ce8785
    -Denable-snap=false \
ce8785
    -Denable-fwupd=true \
ce8785
    -Denable-gudev=true \
c68504
%if %{with packagekit}
ce8785
    -Denable-packagekit=true \
c68504
%else
ce8785
    -Denable-packagekit=false \
c68504
%endif
ce8785
    -Denable-external-appstream=false \
ce8785
    -Denable-rpm-ostree=false \
ce8785
    -Denable-tests=false \
ce8785
    -Denable-ubuntuone=false \
ce8785
    -Denable-ubuntu-reviews=false
ce8785
%meson_build
c68504
c68504
%install
ce8785
%meson_install
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]
ce8785
official-repos = [ '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
ce8785
%doc AUTHORS README.md
c68504
%license COPYING
c68504
%{_bindir}/gnome-software
ce8785
%{_datadir}/applications/gnome-software-local-file.desktop
ce8785
%{_datadir}/applications/org.gnome.Software.desktop
c68504
%dir %{_datadir}/gnome-software
c68504
%{_datadir}/gnome-software/*.png
ce8785
%{_datadir}/doc/gnome-software/README.md
c68504
%{_mandir}/man1/gnome-software.1.gz
c68504
%{_datadir}/icons/hicolor/*/apps/*
c68504
%{_datadir}/gnome-software/featured-*.svg
c68504
%{_datadir}/gnome-software/featured-*.jpg
ce8785
%{_datadir}/metainfo/org.gnome.Software.appdata.xml
ce8785
%{_datadir}/metainfo/org.gnome.Software.Plugin.Epiphany.metainfo.xml
ce8785
%{_datadir}/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
ce8785
%{_datadir}/metainfo/org.gnome.Software.Plugin.Fwupd.metainfo.xml
ce8785
%{_datadir}/metainfo/org.gnome.Software.Plugin.Odrs.metainfo.xml
ce8785
%{_datadir}/metainfo/org.gnome.Software.Plugin.Steam.metainfo.xml
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
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fedora-pkgdb-collections.so
c68504
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_flatpak.so
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_fwupd.so
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_generic-updates.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
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_key-colors-metadata.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
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_os-release.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-proxy.so
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-refine-repos.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
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_packagekit-url-to-app.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
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_rewrite-resource.so
c68504
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_shell-extensions.so
ce8785
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_steam.so
c68504
%if %{with packagekit}
c68504
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_systemd-updates.so
c68504
%endif
c68504
%{_sysconfdir}/xdg/autostart/gnome-software-service.desktop
ce8785
%{_datadir}/app-info/xmls/org.gnome.Software.Featured.xml
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
ce8785
%{_libexecdir}/gnome-software-cmd
ce8785
%{_libexecdir}/gnome-software-restarter
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
ce8785
%files editor
ce8785
%{_bindir}/gnome-software-editor
ce8785
%{_datadir}/applications/org.gnome.Software.Editor.desktop
ce8785
%{_mandir}/man1/gnome-software-editor.1*
ce8785
c68504
%changelog
ce8785
* Mon Sep 10 2018 Kalev Lember <klember@redhat.com> - 3.28.2-3
ce8785
- Obsolete gnome-shell-browser-plugin
ce8785
- Resolves: #1626104
ce8785
ce8785
* Thu Jul 12 2018 Richard Hughes <rhughes@redhat.com> - 3.28.2-2
ce8785
- Set the repo provenance properly, showing the source line where required.
ce8785
- Resolves: #1592809
ce8785
ce8785
* Fri Jun 08 2018 Richard Hughes <rhughes@redhat.com> - 3.28.2-1
ce8785
- Update to 3.28.2
ce8785
- Resolves: #1568625
ce8785
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