[Rpm-maint] [rpm-software-management/rpm] %license (and similar tags) should take priority over other listings and RPM shouldn't warn about files listed twice (Issue #2144)
Miro Hrončok
notifications at github.com
Fri Aug 5 09:41:11 UTC 2022
We have talked about this with @torsava and I feel like the explanation here is a bit hard to understand, so let me try some examples:
We'd like the following examples:
```
%files
/foo/bar
%license /foo/bar/baz/LICENSE
```
```
%files
/foo/bar
%doc /foo/bar/baz/howto.txt
```
```
%files
/foo/bar
%lang(cs) /foo/bar/langs/cs.frr
```
and similar directives to:
- Not warn about the file listed twice
- Ensure the marker (license, doc, etc.) is applied¹
The alternative is tedious:
```
%files
%dir /foo/bar
/foo/bar/<all the files except baz listed manually>
%dir /foo/bar/baz
/foo/bar/baz/<all the files except LICENSE listed manually>
%license /foo/bar/baz/LICENSE
```
-------------------
¹ From experience, I can tell that this is *almost always* true but I have seen a situation where it was not the case.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2144#issuecomment-1206255030
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2144/1206255030 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220805/111b2497/attachment.html>
More information about the Rpm-maint
mailing list