Bug 66250 - extended globbing in %files
Summary: extended globbing in %files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-06 19:28 UTC by Ville Skyttä
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-06-06 19:28:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Ville Skyttä 2002-06-06 19:28:20 UTC
IMHO it would be very useful to be able to use extended globbing in spec 
files' %files sections; "shopt -s extglob" does it for bash. 
 
ATM it doesn't seem to be possible, as I haven't found a way to put any shell 
commands into %files sections.  If a workaround exists, I'd be grateful to 
hear about it...

Comment 1 Jeff Johnson 2002-06-07 14:59:42 UTC
Use "%files -f manifest", and generate the
manifest file any way you choose at the end
of the %install scriptlet.

There's no way to do directly in %files, as
this isn't a shell context. If you can map
the "shoopt -s extglob" back to the actual
C API flags for glob(3) and/or fnmatch(3),
I might be able to set that flag by default.
Currently rpm has a conservative "0" value for
the flags, and a spot check of the available
glob flags shows no immediately interesting values.


Note You need to log in before you can comment on or make changes to this bug.