Browse Source

Removed dependency on rpmmacros

pull/1943/head
Greg Szabo 8 years ago
parent
commit
1e033b6051
3 changed files with 6 additions and 10 deletions
  1. +2
    -2
      build/Makefile
  2. +0
    -6
      build/rpmmacros
  3. +4
    -2
      build/sign

+ 2
- 2
build/Makefile View File

@ -140,8 +140,8 @@ package-rpm-%: folder-%
sed -i "s/@VERSION@/$($*_version)/" SPECS/$*.spec
sed -i "s/@BUILD_NUMBER@/$(BUILD_NUMBER)/" SPECS/$*.spec
rpmbuild -bb SPECS/$*.spec
./sign RPMS/x86_64/$*-$($*_version)-$(BUILD_NUMBER).x86_64.rpm
rpmbuild -bb SPECS/$*.spec --define "_topdir `pwd`" --define "_tmppath `pwd`/tmp"
./sign RPMS/x86_64/$*-$($*_version)-$(BUILD_NUMBER).x86_64.rpm "$(gpg_key)" "`which gpg`"
rpm -Kv RPMS/x86_64/$*-$($*_version)-$(BUILD_NUMBER).x86_64.rpm
@echo "*** Packaged RPM $* version $($*_version)"


+ 0
- 6
build/rpmmacros View File

@ -1,6 +0,0 @@
%_topdir %(echo $WORKSPACE)/tools/build
%_tmppath %(echo $WORKSPACE)/tools/build/tmp
%_signature gpg
%_gpg_name 2122CBE9
%_gpgbin /usr/bin/gpg

+ 4
- 2
build/sign View File

@ -1,15 +1,17 @@
#!/usr/bin/expect -f
set timeout 3
set PACKAGE [lindex $argv 0]
set GPG_NAME [lindex $argv 1]
set GPG_PATH [lindex $argv 2]
set GPG_PASSPHRASE $env(GPG_PASSPHRASE)
if {[llength $argv] == 0} {
send_user "Usage: ./sign <rpm_package>\n"
send_user "Usage: ./sign <rpm_package> <gpg_key> <gpg_binary>\n"
exit 1
}
send_user "\nSigning $PACKAGE\n"
spawn rpmsign --resign $PACKAGE
spawn rpmsign --resign $PACKAGE --define "_signature gpg" --define "_gpg_name $GPG_NAME" --define "_gpgbin $GPG_PATH"
expect {
timeout { send_user "\nTimeout signing $PACKAGE\n"; exit 1 }
"Enter pass phrase:"


Loading…
Cancel
Save