Hello all,
I'm attempting to package Kwakd for Fedora. I'm pretty new to rpm
packaging but have already managed to build and package some simple
stuff.
I can get kwakd to build and package properly apart from one thing.
The systemd service file needs to be copied to the appropriate
directory and it doesn't seem to be working. Here are the relevant
parts of the spec file:
%install
make install DESTDIR=$RPM_BUILD_ROOT
cp %{name}.service %{_unitdir}
%files
%doc README NEWS ChangeLog COPYING AUTHORS TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_unitdir}/%{name}.service
The error I get is this:
+ cp kwakd.service /usr/lib/systemd/system
cp: cannot create regular file '/usr/lib/systemd/system/kwakd.service':
Permission denied error: Bad exit status from /var/tmp/rpm-tmp.vQB9sv
(%install)
What am I doing wrong? If this is the wrong mailing list then please
point me to the correct one if you can too!
thanks,
Ananda Samaddar