OK I fixed it by adding this: mkdir -p %{buildroot}%{_unitdir}/ before copying the service file. It's always the most obvious and daft things!