Bug 1128

Summary: FR: brace expansion in %files section (esp. for %doc)
Product: Sisyphus Reporter: Mikhail Zabaluev <mhz>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: ASSIGNED --- QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P5 CC: arseny, glebfm, imz, ldv, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description Mikhail Zabaluev 2002-07-25 02:45:50 MSD
When the file list contains a %doc line with an absolute path specification, e.g.:
%doc %_docdir/%name-%version/{AUTHORS,README,TODO}
, the brace expansion doesn\'t occur, whereas a relative spec expands braces just fine:
%doc subdir/{README,TODO}
---

---

Comment 1 Dmitry V. Levin 2003-04-22 15:26:15 MSD
As well as in other %files lines.
It is not a bug report but feature request.
Comment 2 Dmitry V. Levin 2003-04-22 15:26:15 MSD
As well as in other %files lines.
It is not a bug report but feature request.
Comment 3 Mikhail Zabaluev 2003-05-06 02:26:23 MSD
But the relative form of %doc expands braces. It\'s inconsistent behaviour at least.
Comment 4 Mikhail Zabaluev 2003-05-06 02:26:23 MSD
But the relative form of %doc expands braces. It\'s inconsistent behaviour at least.
Comment 5 at@altlinux.org 2008-03-31 00:39:00 MSD
In bourne shell, brace expansion is a separate stage of substitution that is
prefromed BEFORE glob.  There is no such stage in %files section.  However,
glob(3) has GLOB_BRACE option, which we may want (or may not want to use).