]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- pass _specdir and _sourcedir to rpm-specdump
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Sep 2012 08:32:49 +0000 (10:32 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Sep 2012 08:43:22 +0000 (10:43 +0200)
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

index bf3d12f2066547fb1ee21ec6c2503d6a0a715220..1f517760ce8612fb9bb4ae50be51f9480b23897f 100755 (executable)
@@ -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
This page took 0.047886 seconds and 4 git commands to generate.