[packages/rpm-build-tools] - pass _specdir and _sourcedir to rpm-specdump

baggins baggins at pld-linux.org
Sun Sep 16 10:43:36 CEST 2012


commit 646d81cff15f03220571ec46c419807f55b4294f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Sep 16 10:32:49 2012 +0200

    - pass _specdir and _sourcedir to rpm-specdump
    
    Same case as for rpmbuild and %{name} different from spec NAME.
    rpm-specdump looked for files in _topdir/%{name} instead of _topdir/NAME.
    It's wonders why this came out only after migration to rpm5.

 builder.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index bf3d12f..1f51776 100755
--- a/builder.sh
+++ b/builder.sh
@@ -627,7 +627,7 @@ cache_rpm_dump() {
 
 	if [ -x /usr/bin/rpm-specdump ]; then
 		update_shell_title "cache_rpm_dump using rpm-specdump command"
-		rpm_dump_cache=$(rpm-specdump $TARGET_SWITCH $BCOND $SPECFILE)
+		rpm_dump_cache=$(rpm-specdump $TARGET_SWITCH $BCOND --define "_specdir $PACKAGE_DIR" --define "_sourcedir $PACKAGE_DIR" $PACKAGE_DIR/$SPECFILE)
 	else
 		update_shell_title "cache_rpm_dump using rpmbuild command"
 		local rpm_dump
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/646d81cff15f03220571ec46c419807f55b4294f



More information about the pld-cvs-commit mailing list