Re: Need help with rpmbuild

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

 



On 03/23/2011 06:00 PM, Steve Blackwell wrote:
> Specifically the install section. I'm not understanding how the
> %install section works with the %files section.
> I hope this is not considered OT.
>
> Let's say I want my rpm to install the file "hello"
> in /tmp on a target system. The %prep and %build sections work OK and
> create my hello file in BUILD/hello-1. (Why BUILD/hello-1 and not just
> BUILD I don't know but for now it doesn't matter.)
>
> The install and files sections of my spec file look like this:
> (Obviously %{name} is defined as hello)
>
> %install
> cp %{name} $RPM_BUILD_ROOT/
>
> %files
> %defattr(-,root,root,-)
> /tmp/hello
>
> %BuildRoot is defined (by default) to be
> %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
>
> What's with the XXXXX?
> The cp works as expected but then an error occurs saying:
>
> Extracting debug info ... blah ... blah...
> ...
> error: File not
> found: /home/steve/rpmbuild/BUILDROOT/hello-1-1.fc12.i386/tmp/hello
>
> I feel like I'm missing the big picture here.
> I'd appreciate any direct help or pointers to some good explanation.
> I've read a bunch of docs but they have not helped in this case.
>
> Thanks,
> Steve
>
See these (long) URL's  (sorry, my mail client broke each URL into 3 lines):

http://www.google.com/url?sa=t&source=web&cd=3&ved=0CCIQFjAC&url=http%3A%2F%2Flinuxtoolkit.blogspot.com%2F2010%2F06%2Frpmbuild-tutorial.html&ei=_5-KTde6MYWcsQPJ_9iZCA&usg=AFQjCNG6fz2MUt1tEkyrfAQYiG3A4qKDCw

http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Frpmbuildtut.wordpress.com%2F&ei=_5-KTde6MYWcsQPJ_9iZCA&usg=AFQjCNFdo7a19lm9b5lr3MhGtKwlIQdqYA

Centos (RHEL) rpmbuild tutorial- Part 1
http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Fwww.lamolabs.org%2Fblog%2F164%2Fcentos-rpm-tutorial-1%2F&ei=5qCKTc_mFo30swPSwbCMCA&usg=AFQjCNFpI12G2I1SVfesD6FXyZk9QbsWbg


Centos (RHEL) rpmbuild tutorial- Part 2
http://www.google.com/url?sa=t&source=web&cd=2&ved=0CB0QFjAB&url=http%3A%2F%2Fwww.lamolabs.org%2Fblog%2F169%2Fcentos-rpm-tutorial-2%2F&ei=5qCKTc_mFo30swPSwbCMCA&usg=AFQjCNENVHIcEkK0Au9kFw9oqsx6Jfyjlw

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux