From 097ee18b3a57ad5a414646a84e84bc70d4558de1 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 3 Dec 2013 21:48:39 +0100 Subject: try to grab RPM source files from upstream project --- bin/build-rpm-package | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3