Re: Multiple packages out of a single build?

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

 



2011/11/9 Nils Philippsen <nils@xxxxxxxxxx>:

> You could add a subpackage for each of these, e.g. a specfile like this
> would produce packages mypkg-foo and mypkg-bar:
>
> ...
> Name: mypkg
> ...
> %package foo
> ...
> %description foo
> ...
> %package bar
> ...
> %description bar
> ...
> %build
> # build both foo and bar
> ...
> %install
> # install both foo and bar
> ...
> %files foo
> %dir /usr/local/foo
> /usr/local/foo/...
> ...
> %files bar
> %dir /usr/local/bar
> /usr/local/bar/...
> ...

This is indeed an interesting idea, thanks. I suppose there cannot be
something like "%install foo", "%install bar" etc., right? (it's
because if not, we'll have to modify the installation step itself to
install into all valid paths).

Thanks!
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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