diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec index 43e559f..b49ef25 100644 --- a/containernetworking-plugins.spec +++ b/containernetworking-plugins.spec @@ -152,6 +152,9 @@ providing packages with %{import_path} prefix. %autosetup -Sgit -n %{repo}-%{commit0} rm -rf plugins/main/windows +# Use correct paths in cni-dhcp unitfiles +sed -i 's/\/opt\/cni\/bin/\%{_prefix}\/libexec\/cni/' plugins/ipam/dhcp/systemd/cni-dhcp.service + %build export ORG_PATH="%{provider}.%{provider_tld}/%{project}" export REPO_PATH="$ORG_PATH/%{repo}"