[Rpm-maint] [rpm-software-management/rpm] Implement build system templating in spec files (#1087)

Panu Matilainen notifications at github.com
Thu Feb 27 08:37:16 UTC 2020


> Would it be possible for this to simply define defaults for %build or %install or whatnot which would be used if those sections aren't present in the specfile? That way it would be simpler to handle that one package that needs a file removed after %make_install without having to completely switch away from using the templates.

That's exactly the idea, sorry if it wasn't clear from the description. But note that in addition to being able to override any single section, I'm suggesting new pre/post sections for each to minimize the need to do override the entire section. So in order to remove that one pesky unwanted file, you wouldn't revert back to manual %install at all, you'd just add
```
%install(post)
rm -f /stupid/file
``` 

FWIW, I've been thinking about this since at least 2013 too, just haven't gotten around to describe it in writing, much less implement. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1087#issuecomment-591848683
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200227/73784424/attachment.html>


More information about the Rpm-maint mailing list