mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
Merge pull request #17725 from lsm5/modulesload-conditional-rhel10
podman.spec.rpkg: distro conditionals for modulesloaddir
This commit is contained in:
@ -172,7 +172,9 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI
|
|||||||
install.docker \
|
install.docker \
|
||||||
install.docker-docs \
|
install.docker-docs \
|
||||||
install.remote \
|
install.remote \
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 10
|
||||||
install.modules-load
|
install.modules-load
|
||||||
|
%endif
|
||||||
|
|
||||||
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/
|
||||||
@ -225,7 +227,9 @@ fi
|
|||||||
%{_userunitdir}/%{name}-kube@.service
|
%{_userunitdir}/%{name}-kube@.service
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_user_tmpfilesdir}/%{name}-docker.conf
|
%{_user_tmpfilesdir}/%{name}-docker.conf
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 10
|
||||||
%{_modulesloaddir}/%{name}-iptables.conf
|
%{_modulesloaddir}/%{name}-iptables.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%files docker
|
%files docker
|
||||||
%{_bindir}/docker
|
%{_bindir}/docker
|
||||||
|
Reference in New Issue
Block a user