| Summary: | FR: brace expansion in %files section (esp. for %doc) | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Mikhail Zabaluev <mhz> |
| Component: | rpm-build | Assignee: | 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 | ||
As well as in other %files lines. It is not a bug report but feature request. As well as in other %files lines. It is not a bug report but feature request. But the relative form of %doc expands braces. It\'s inconsistent behaviour at least. But the relative form of %doc expands braces. It\'s inconsistent behaviour at least. 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). |
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} --- ---