[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

_specfile macro



Hi Folk,

could you apply this small patch, please?
Sometimes, it very handy to know a specfile to make some scripting.

BR,
Andrei
index bbe94ce..deb7ab1 100644
--- a/rpmbuild.c
+++ b/rpmbuild.c
@@ -431,6 +431,8 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
        goto exit;
     }
 
+    addMacro(NULL, "_specfile", NULL, specFile, RMIL_TARBALL);
+    
     /* Parse the spec file */
 #define        _anyarch(_f)    \
 (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0)

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]