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