[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] rpm brace expansion
>>> Mark Duckworth wrote:
>>>
>>>>
>>>> So in rpm there is a line like mkdir -p
>>>> $RPM_BUILD_ROOT/{bin,usr/bin,usr/man/man1}
>>>>
I found this from a 2004 post of a patch:
-mkdir -p $RPM_BUILD_ROOT/{etc,usr/X11R6/bin,usr/X11R6/man/man1,usr/bin,usr/man/man1}
-# can't use make install here. It would put manuf directly into /etc
-cp ethereal $RPM_BUILD_ROOT/usr/X11R6/bin
-cp tethereal $RPM_BUILD_ROOT/usr/bin
-cp editcap $RPM_BUILD_ROOT/usr/bin
-cp ethereal.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1
-cp tethereal.1 $RPM_BUILD_ROOT/usr/man/man1
-cp editcap.1 $RPM_BUILD_ROOT/usr/man/man1
-cp manuf $RPM_BUILD_ROOT/etc
-cp dictionary.dtd $RPM_BUILD_ROOT/etc
-cp dictionary.xml $RPM_BUILD_ROOT/etc
-cp mobileipv4.xml $RPM_BUILD_ROOT/etc
-cp nasreq.xml $RPM_BUILD_ROOT/etc
-cp sunping.xml $RPM_BUILD_ROOT/etc
+make DESTDIR=$RPM_BUILD_ROOT install
Its an ethereal spec file patch from 2004, but it implies the use of
"make install" instead of "mkdir -p" and the resulting cp's
http://www.ethereal.com/lists/ethereal-users/200406/msg00173.html
You might find other useful info here:
http://www.google.com.au/search?hl=en&q=%24RPM_BUILD_ROOT%2F{bin%2Cusr%2Fbin%2Cusr%2Fman%2Fman1}
Paul