]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- grap output filename from pear command (fixes bad naming of php-pear-Crypt_Rc4...
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 15 Oct 2005 14:08:09 +0000 (14:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.28

pearize.sh

index 843d8b3dc1202530e15afef86cc31c6b219b6484..6da31908f7194f005ace1ec998f21f7e5a3dcd6b 100644 (file)
@@ -42,10 +42,9 @@ Optional: @optional@
 License: @release_license@
 State: @release_state@
 EOF
-pear makerpm --spec-template=$stmp $tarball
+template=$(pear makerpm --spec-template=$stmp $tarball | awk '/Wrote RPM spec file/{print $NF}{print $0 > "/dev/stderr"}')
 rm -f $stmp
 
-template=$(rpm -q --qf "%{name}-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1)
 mv $template .$template~
 template=.$template~
 
This page took 0.02487 seconds and 4 git commands to generate.