On September 13, 2007, Philip Prindeville wrote: > %package > ... > > %files > ... > %{_libexecdir}/mod_*.so > ... > > %package mysql > ... > %files mysql > %{_libexecdir}/mod_sql_mysql.so > > etc. > > And indeed, predictably, /usr/libexec/mod_sql_mysql.so ends up being > included in both packages. > > So I was thinking that having a directive like: > > %files > ... > %exclude %{_libexecdir}/mod_sql_mysql.so > %{_libexecdir}/mod_*.so > > would be handy. That is, first all the patterns would be applied and > the list built, then %exclude directives would be applied and the list > whittled down. for that there is this: %files -f all_but_mysql %files mysql %{_libexecdir}/mod_sql_mysql.so 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". all heavy-lifting could be done generating approriate file-lists (even if it's done automatically). -- 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