mirror of
https://github.com/containers/podman.git
synced 2025-05-19 08:07:10 +08:00
Replace ExclusiveArch with ifarch
Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:

committed by
openshift-cherrypick-robot

parent
aad97a1342
commit
139fd2a7cf
@ -40,6 +40,9 @@
|
|||||||
# %%{name}
|
# %%{name}
|
||||||
%global git0 %{container_base_url}/%{name}
|
%global git0 %{container_base_url}/%{name}
|
||||||
|
|
||||||
|
# podman-machine subpackage will be present only on these architectures
|
||||||
|
%global machine_arches x86_64 aarch64
|
||||||
|
|
||||||
Name: podman
|
Name: podman
|
||||||
%if %{defined copr_build}
|
%if %{defined copr_build}
|
||||||
Epoch: 102
|
Epoch: 102
|
||||||
@ -179,6 +182,7 @@ capabilities specified in user quadlets.
|
|||||||
It is a symlink to %{_bindir}/%{name} and execs into the `%{name}sh` container
|
It is a symlink to %{_bindir}/%{name} and execs into the `%{name}sh` container
|
||||||
when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
|
when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
|
||||||
|
|
||||||
|
%ifarch %{machine_arches}
|
||||||
%package machine
|
%package machine
|
||||||
Summary: Metapackage for setting up %{name} machine
|
Summary: Metapackage for setting up %{name} machine
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
@ -189,6 +193,7 @@ Requires: virtiofsd
|
|||||||
%description machine
|
%description machine
|
||||||
This subpackage installs the dependencies for %{name} machine, for more see:
|
This subpackage installs the dependencies for %{name} machine, for more see:
|
||||||
https://docs.podman.io/en/latest/markdown/podman-machine.1.html
|
https://docs.podman.io/en/latest/markdown/podman-machine.1.html
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{name}-%{version_no_tilde}
|
%autosetup -Sgit -n %{name}-%{version_no_tilde}
|
||||||
@ -282,8 +287,10 @@ rm -f %{buildroot}%{_mandir}/man5/docker*.5
|
|||||||
install -d -p %{buildroot}%{_datadir}/%{name}/test/system
|
install -d -p %{buildroot}%{_datadir}/%{name}/test/system
|
||||||
cp -pav test/system %{buildroot}%{_datadir}/%{name}/test/
|
cp -pav test/system %{buildroot}%{_datadir}/%{name}/test/
|
||||||
|
|
||||||
|
%ifarch %{machine_arches}
|
||||||
# symlink virtiofsd in %%{name} libexecdir for machine subpackage
|
# symlink virtiofsd in %%{name} libexecdir for machine subpackage
|
||||||
ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
|
ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
#define license tag if not already defined
|
#define license tag if not already defined
|
||||||
%{!?_licensedir:%global license %doc}
|
%{!?_licensedir:%global license %doc}
|
||||||
@ -338,9 +345,11 @@ ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
|
|||||||
%{_bindir}/%{name}sh
|
%{_bindir}/%{name}sh
|
||||||
%{_mandir}/man1/%{name}sh.1*
|
%{_mandir}/man1/%{name}sh.1*
|
||||||
|
|
||||||
|
%ifarch %{machine_arches}
|
||||||
%files machine
|
%files machine
|
||||||
%dir %{_libexecdir}/%{name}
|
%dir %{_libexecdir}/%{name}
|
||||||
%{_libexecdir}/%{name}/virtiofsd
|
%{_libexecdir}/%{name}/virtiofsd
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Reference in New Issue
Block a user