On September 14, 2007, Michael Jennings wrote: > On Friday, 14 September 2007, at 10:15:05 (-0600), > > Dmitry S. Makovey wrote: > > for that there is this: > > > > %files -f all_but_mysql > > > > %files mysql > > %{_libexecdir}/mod_sql_mysql.so > > There is also %exclude. > > > where all_but_mysql could be built using: > > > > find $RPM_BUILD_ROOT | \ > > grep -v mod_sql_mysql | \ > > sed -e 's#'$RPM_BUILD_ROOT'##g' > all_but_mysql > > > > it works without overcomplicating things with "exclude". > > How on earth do you imagine all that mess is better than one simple > %exclude directive. The method you suggest is the overcomplication, > not the other way around. in most of RPMs I build I have pretty complicated rules of file inclusion/exclusion. esp. (Logical AND/OR/XOR) which is easier done with find/grep/sed then any combination of excludes. Besides it keeps SPEC file portable for those old systems that run RPM 4.0 (which I have quite a few). -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list