Drop the gphoto2 and mtp subpackages on s390(x) architectures

The gphoto2 and mtp support is not needed for s390(x) architectures.
The mobile phones, players or cameras can't be connected to those
devices.

Resolves: RHEL-51129
This commit is contained in:
Ondrej Holy 2024-07-29 12:44:39 +02:00
parent b589268ef2
commit fe1be50d66

View File

@ -22,7 +22,7 @@
Name: gvfs Name: gvfs
Version: 1.54.2 Version: 1.54.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: Backends for the gio framework in GLib Summary: Backends for the gio framework in GLib
License: LGPL-2.0-or-later AND GPL-3.0-only AND MPL-2.0 AND BSD-3-Clause-Sun License: LGPL-2.0-or-later AND GPL-3.0-only AND MPL-2.0 AND BSD-3-Clause-Sun
@ -68,6 +68,10 @@ Obsoletes: gnome-mount-nautilus-properties <= 0.8
Obsoletes: gvfs-obexftp < 1.17.91-2 Obsoletes: gvfs-obexftp < 1.17.91-2
Obsoletes: gvfs-devel < 1.54.2-1 Obsoletes: gvfs-devel < 1.54.2-1
Obsoletes: gvfs-tests < 1.54.2-2 Obsoletes: gvfs-tests < 1.54.2-2
%ifarch s390 s390x
Obsoletes: gvfs-gphoto2 < 1.54.2-3
Obsoletes: gvfs-mtp < 1.54.2-3
%endif
%description %description
The gvfs package provides backend implementations for the gio The gvfs package provides backend implementations for the gio
@ -120,6 +124,7 @@ as well as ISO images, to applications using gvfs.
%endif %endif
%ifnarch s390 s390x
%package gphoto2 %package gphoto2
Summary: gphoto2 support for gvfs Summary: gphoto2 support for gvfs
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
@ -133,7 +138,6 @@ PTP based cameras (Picture Transfer Protocol) and MTP based
media players (Media Transfer Protocol) to applications using gvfs. media players (Media Transfer Protocol) to applications using gvfs.
%ifnarch s390 s390x
%if ! 0%{?rhel} %if ! 0%{?rhel}
%package afc %package afc
Summary: AFC support for gvfs Summary: AFC support for gvfs
@ -166,6 +170,7 @@ to applications using gvfs.
%endif %endif
%ifnarch s390 s390x
%package mtp %package mtp
Summary: MTP support for gvfs Summary: MTP support for gvfs
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
@ -176,6 +181,7 @@ BuildRequires: pkgconfig(libusb-1.0) >= %{libusb_version}
%description mtp %description mtp
This package provides support for reading and writing files on This package provides support for reading and writing files on
MTP based devices (Media Transfer Protocol) to applications using gvfs. MTP based devices (Media Transfer Protocol) to applications using gvfs.
%endif
%if ! 0%{?rhel} %if ! 0%{?rhel}
@ -215,6 +221,9 @@ file services.
-Dman=true \ -Dman=true \
%ifarch s390 s390x %ifarch s390 s390x
-Dafc=false \ -Dafc=false \
-Dgphoto2=false \
-Dlibusb=false \
-Dmtp=false \
%endif %endif
%if 0%{?rhel} %if 0%{?rhel}
-Dnfs=false \ -Dnfs=false \
@ -250,10 +259,12 @@ killall -USR1 gvfsd >&/dev/null || :
# Reload .mount files when single subpackage is installed: # Reload .mount files when single subpackage is installed:
%post smb %post smb
killall -USR1 gvfsd >&/dev/null || : killall -USR1 gvfsd >&/dev/null || :
%ifnarch s390 s390x
%post gphoto2 %post gphoto2
killall -USR1 gvfsd >&/dev/null || : killall -USR1 gvfsd >&/dev/null || :
%post mtp %post mtp
killall -USR1 gvfsd >&/dev/null || : killall -USR1 gvfsd >&/dev/null || :
%endif
%post goa %post goa
killall -USR1 gvfsd >&/dev/null || : killall -USR1 gvfsd >&/dev/null || :
%ifnarch s390 s390x %ifnarch s390 s390x
@ -359,7 +370,7 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/gvfs/mounts/archive.mount %{_datadir}/gvfs/mounts/archive.mount
%endif %endif
%ifnarch s390 s390x
%files gphoto2 %files gphoto2
%{_libexecdir}/gvfsd-gphoto2 %{_libexecdir}/gvfsd-gphoto2
%{_datadir}/gvfs/mounts/gphoto2.mount %{_datadir}/gvfs/mounts/gphoto2.mount
@ -368,7 +379,6 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/gvfs/remote-volume-monitors/gphoto2.monitor %{_datadir}/gvfs/remote-volume-monitors/gphoto2.monitor
%{_userunitdir}/gvfs-gphoto2-volume-monitor.service %{_userunitdir}/gvfs-gphoto2-volume-monitor.service
%ifnarch s390 s390x
%if ! 0%{?rhel} %if ! 0%{?rhel}
%files afc %files afc
%{_libexecdir}/gvfsd-afc %{_libexecdir}/gvfsd-afc
@ -388,6 +398,7 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/gvfs/mounts/afp-browse.mount %{_datadir}/gvfs/mounts/afp-browse.mount
%endif %endif
%ifnarch s390 s390x
%files mtp %files mtp
%{_libexecdir}/gvfsd-mtp %{_libexecdir}/gvfsd-mtp
%{_datadir}/gvfs/mounts/mtp.mount %{_datadir}/gvfs/mounts/mtp.mount
@ -395,6 +406,7 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service %{_datadir}/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service
%{_datadir}/gvfs/remote-volume-monitors/mtp.monitor %{_datadir}/gvfs/remote-volume-monitors/mtp.monitor
%{_userunitdir}/gvfs-mtp-volume-monitor.service %{_userunitdir}/gvfs-mtp-volume-monitor.service
%endif
%if ! 0%{?rhel} %if ! 0%{?rhel}
%files nfs %files nfs
@ -419,6 +431,9 @@ killall -USR1 gvfsd >&/dev/null || :
%changelog %changelog
* Mon Jul 29 2024 Ondrej Holy <oholy@redhat.com> - 1.54.2-3
- Drop the gphoto2 and mtp subpackages on s390(x) architectures
* Mon Jul 29 2024 Ondrej Holy <oholy@redhat.com> - 1.54.2-2 * Mon Jul 29 2024 Ondrej Holy <oholy@redhat.com> - 1.54.2-2
- Drop the gvfs-tests subpackage - Drop the gvfs-tests subpackage