diff --git a/podman.spec b/podman.spec index 1c6f8ef..0808a50 100644 --- a/podman.spec +++ b/podman.spec @@ -1,4 +1,7 @@ %if "%{_vendor}" == "debbuild" +%global _unitdir %{_usr}/lib/systemd/system +%global _userunitdir %{_usr}/lib/systemd/user +%global _tmpfilesdir %{_usr}/lib/tmpfiles.d # Older distros don't work yet %if (0%{?debian} && 0%{?debian} <= 11) || (0%{?ubuntu} && 0%{?ubuntu} < 2204) %define gobuild(o:) GO111MODULE=off %{_prefix}/lib/go-1.16/bin/go build -buildmode pie -tags=" ${BUILDTAGS:-}" -a -v -x %{?**}; @@ -381,11 +384,7 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/ %{_datadir}/fish/vendor_completions.d/%{name}.fish %{_unitdir}/%{name}* %{_userunitdir}/%{name}* -%if "%{_vendor}" == "debbuild" -%{_usr}/lib/tmpfiles.d/%{name}.conf -%else %{_tmpfilesdir}/%{name}.conf -%endif %if 0%{?fedora} >= 36 %{_modulesloaddir}/%{name}-iptables.conf %endif