Re: Proposal to enable spec file preprocessing step before srpm build

2020-04-30 Thread clime
On Thu, 30 Apr 2020 at 20:40, Nicolas Mailhot via devel wrote: > > Le lundi 09 mars 2020 à 00:26 +0100, clime a écrit : > > Hi, > > > the code would fail because at that point, the > > git metadata is already missing (they are not included in srpms). > > Can’t storage of built-time information

Re: Proposal to enable spec file preprocessing step before srpm build

2020-04-30 Thread Nicolas Mailhot via devel
Le lundi 09 mars 2020 à 00:26 +0100, clime a écrit : Hi, > the code would fail because at that point, the > git metadata is already missing (they are not included in srpms). Can’t storage of built-time information in srpms be fixed instead of adding a whole new overlay over existing tools,

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-11 Thread clime
Hello nils! On Wed, 11 Mar 2020 at 16:07, Nils Philippsen wrote: > > On Wed, 2020-03-11 at 12:21 +0100, clime wrote: > > rpmbuild needs to get a preprocessed spec already. > > Hmm, what do you mean with that? I mean, in this proposal, rpmbuild would need to get an already preprocessed spec file

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-11 Thread Nils Philippsen
On Wed, 2020-03-11 at 12:21 +0100, clime wrote: > rpmbuild needs to get a preprocessed spec already. Hmm, what do you mean with that? The spec files we currently have in dist-git can be built directly with rpmbuild, you just need to tell rpmbuild that the sources are in the same directory, e.g.:

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-11 Thread clime
On Wed, 11 Mar 2020 at 11:24, Richard W.M. Jones wrote: > > On Mon, Mar 09, 2020 at 11:36:33PM +0100, clime wrote: > > On Mon, 9 Mar 2020 at 22:45, Richard W.M. Jones wrote: > > > > > > > > > This would break processing with ‘rpmspec’? > > > > With just rpmspec, yes. The preproc-rpmspec tool can

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-11 Thread Richard W.M. Jones
On Mon, Mar 09, 2020 at 11:36:33PM +0100, clime wrote: > On Mon, 9 Mar 2020 at 22:45, Richard W.M. Jones wrote: > > > > > > This would break processing with ‘rpmspec’? > > With just rpmspec, yes. The preproc-rpmspec tool can become a wrapper > around rpmspec aliased prerpmspec essentially doing

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-09 Thread clime
On Mon, 9 Mar 2020 at 22:45, Richard W.M. Jones wrote: > > > This would break processing with ‘rpmspec’? With just rpmspec, yes. The preproc-rpmspec tool can become a wrapper around rpmspec aliased prerpmspec essentially doing the preprocessing, then immediately passing the result to rpmspec for

Re: Proposal to enable spec file preprocessing step before srpm build

2020-03-09 Thread Richard W.M. Jones
This would break processing with ‘rpmspec’? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the

Proposal to enable spec file preprocessing step before srpm build

2020-03-08 Thread clime
Hello Fedora people! I would like to offer a solution for dynamic changelog and release generation and potentially more. Intro -- The solution employs a new type of macros, which can be placed into an rpm spec file and afterward parsed by preproc utility