Re: RPM packaging: systemd service files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 Jul 2013 20:01:42 +0200
Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote:

> 
> 
> Am 28.07.2013 19:57, schrieb আনন্দ কুমার সমাদ্দার Ananda Samaddar:
> > 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}
> 
> *anything* inside install has to use the %{buildroot}% macro
> cp %{name}.service %{buildroot}%{_unitdir}/
> 

It's still not working.  I have: 

	BuildRequires: systemd

In the spec file.

With your suggestion I get the following error:

+ cp
kwakd.service /home/ananda/rpmbuild/BUILDROOT/kwakd-0.3-1.fc19.x86_64/usr/lib/systemd/system/
cp: cannot create regular file
'/home/ananda/rpmbuild/BUILDROOT/kwakd-0.3-1.fc19.x86_64/usr/lib/systemd/system/':
No such file or directory 
error: Bad exit status from /var/tmp/rpm-tmp.7hHDNH (%install)


Ananda
 
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux