summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-03 21:48:39 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-03 21:48:39 +0100
commit097ee18b3a57ad5a414646a84e84bc70d4558de1 (patch)
tree44bc1aa1d62e5fb469a5371a1682dc931bd7216f /bin
parent81324fff912a530295fddb187245d71808487a09 (diff)
downloadbuildscripts-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-xbin/build-rpm-package5
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