Bug 66250

Summary: extended globbing in %files
Product: [Retired] Red Hat Linux Reporter: Ville Skyttä <scop>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-06 19:28:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.