mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Add RPM build
This commit is contained in:
parent
bba3377b9e
commit
41f149f5ab
7 changed files with 145 additions and 46 deletions
12
build_util/build_rpm
Executable file
12
build_util/build_rpm
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd /root
|
||||
cp -Rv build build2
|
||||
cd build2
|
||||
|
||||
SPEC=$(ls *.spec)
|
||||
VER=$(grep Version $SPEC | awk '{print $2}')
|
||||
tar cvf $HOME/rpmbuild/SOURCES/DataMigrator-${VER}.tar.gz --show-transformed --transform="s/^\./PPL_DataMigrationTools-${VER}/" .
|
||||
rpmbuild -ba $SPEC
|
||||
cp /root/rpmbuild/RPMS/x86_64/PPL_DataMigrationTools-* /root/build/
|
||||
Loading…
Add table
Add a link
Reference in a new issue