diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-03 21:48:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-03 21:48:39 +0100 |
commit | 097ee18b3a57ad5a414646a84e84bc70d4558de1 (patch) | |
tree | 44bc1aa1d62e5fb469a5371a1682dc931bd7216f /bin | |
parent | 81324fff912a530295fddb187245d71808487a09 (diff) | |
download | buildscripts-097ee18b3a57ad5a414646a84e84bc70d4558de1.tar.gz buildscripts-097ee18b3a57ad5a414646a84e84bc70d4558de1.tar.bz2 buildscripts-097ee18b3a57ad5a414646a84e84bc70d4558de1.zip |
try to grab RPM source files from upstream project
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-rpm-package | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index ae5fa58..387ad1f 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -181,6 +181,11 @@ build_packages() { fi sed -i $PROJECT.spec -e "s/%{?dist}/.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT%{?dist}/" + cat $PROJECT.spec | egrep "^Source[0-9]+:.*" | awk '{ print $2 }' | while read source_file; do + find $PROJECT/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/$source_file . + find $PROJECT/rpm/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/$source_file . + done + mv $TEMP_DIR/$PROJECT $TEMP_DIR/$PROJECT-$UPSTREAM_VERSION tar -czf $PKGDIST/rpmbuild/SOURCES/$PROJECT-$UPSTREAM_VERSION.tar.gz $PROJECT-$UPSTREAM_VERSION |