Bug 1128 - FR: brace expansion in %files section (esp. for %doc)
Summary: FR: brace expansion in %files section (esp. for %doc)
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P5 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-25 02:45 MSD by Mikhail Zabaluev
Modified: 2008-03-31 00:39 MSD (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).