Disable snap support for RHEL
We don't have snapd-glib in RHEL.
This commit is contained in:
parent
e0a6f43b26
commit
fdffaaabc9
@ -43,7 +43,9 @@ BuildRequires: rpm-ostree-devel
|
||||
BuildRequires: libgudev1-devel
|
||||
BuildRequires: valgrind-devel
|
||||
BuildRequires: liboauth-devel
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: snapd-glib-devel
|
||||
%endif
|
||||
|
||||
Requires: appstream-data
|
||||
%if 0%{?fedora}
|
||||
@ -88,6 +90,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description editor
|
||||
Editor for designing banners for GNOME Software.
|
||||
|
||||
%if 0%{?fedora}
|
||||
%package snap
|
||||
Summary: Support for Ubuntu Snap packages
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
@ -95,13 +98,18 @@ Supplements: (gnome-software%{?_isa} and snapd%{?_isa})
|
||||
|
||||
%description snap
|
||||
Adds support for Snap packages from the Snap store.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%meson \
|
||||
%if 0%{?fedora}
|
||||
-Denable-snap=true \
|
||||
%else
|
||||
-Denable-snap=false \
|
||||
%endif
|
||||
-Denable-gudev=true \
|
||||
-Denable-packagekit=true \
|
||||
-Denable-external-appstream=false \
|
||||
@ -195,9 +203,11 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||
%{_libexecdir}/gnome-software-cmd
|
||||
%{_libexecdir}/gnome-software-restarter
|
||||
|
||||
%if 0%{?fedora}
|
||||
%files snap
|
||||
%{_libdir}/gs-plugins-%{gs_plugin_version}/libgs_plugin_snap.so
|
||||
%{_datadir}/metainfo/org.gnome.Software.Plugin.Snap.metainfo.xml
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/gnome-software.pc
|
||||
|
Loading…
Reference in New Issue
Block a user