![](https://seccdn.libravatar.org/avatar/f9fb86af86ef66b34b610f49ebc61f39.jpg?s=120&d=mm&r=g)
Robert Schweikert schrieb:
On 10/4/18 2:41 PM, Neal Gompa wrote:
[...] There is a feature in the latest rpm versions: the %artifact attribute, which actually would make sense to mark *.py[co] files with. And there's an install filter switch for it, too.
This is already used for the newer upstream debuginfo stuff, too. It should be present now with rpm 4.14.1, and I'm working on moving us to rpm 4.14.2.
Sounds like one part of our problem is already solved. Now getting it back to SLES 12 and SLES 15 that's a different question. And of course fixing up all those python spec files......
Adding %artifact could be done fully automatic by rpm itself based on file pattern. AFAICS tagging artifacts so far is hardcoded to debuginfo though. So there's still work to do. rpmbuild would need to extend eg. the fileattrs mechanism¹ also support hooks for %artifact. With that it would be just a matter of a rebuild. Also, a config option would be needed to have rpm -i/-U automatically use that mode, like %_excludedocs and %_install_langs. cu Ludwig [1] /usr/lib/rpm/fileattrs/python.attr -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org