File nospec.patch of Package rpm

commit 31f6d8a70bcd6f1b69e1558bfcacb85f45fa6be0
Author: Bernhard M. Wiedemann <bernhard+gitcommit lsmod.de>
Date:   Mon Nov 13 16:11:41 2023 +0100

    Add option to not store expanded spec
    
    because some macros are hard to make reproducible

Index: build/pack.c
===================================================================
--- build/pack.c.orig
+++ build/pack.c
@@ -872,6 +872,7 @@ rpmRC packageSources(rpmSpec spec, char
     headerPutUint32(sourcePkg->header, RPMTAG_BUILDTIME, &(spec->buildTime), 1);
 
     /* Include spec in parsed and expanded form */
+    if (!rpmExpandNumeric("%{?no_store_expanded_spec}"))
     headerPutString(sourcePkg->header, RPMTAG_SPEC,
 		    rpmSpecGetSection(spec, RPMBUILD_NONE));
 
openSUSE Build Service is sponsored by