Re: noobie question about including any file in my rpm

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

 



Douglas Phillipson wrote:
> Bob Proulx wrote:
> >  %install
> >  %makeinstall
> >  cp my_special_etc_file $RPM_BUILD_ROOT/etc/
> >  cp my_special_bin_file $RPM_BUILD_ROOT/usr/bin/
>
> Ah!  You put the copy command in the spec file??  I was copying the file 
>  to the RPM_BUILD_ROOT before the rpmbuild command.

Yes.  Because typically there is another command in there that I left
out in my haste.

  %install
  rm -rf $RPM_BUILD_ROOT
  %makeinstall

That makes sure there are no files left over from a previous build.
An important point about packaging is that it is designed that the
builds are repeatable.  So things try to be self-contained to avoid
unrecorded external events from affecting the result.

> That worked fine, thanks!

Glad things are working for you.

Bob

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux