summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-10-14 13:12:13 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-10-14 13:12:13 +0200
commitc8d5b58a7524fca3513dc3839941427f3f709f6c (patch)
treefd1de7a51799e680c8645564c4aa99805fb2d223 /bin/build-rpm-package
parent0c50ba7a061177b4d74ee6d1aadbfdeb0f249013 (diff)
downloadbuildscripts-c8d5b58a7524fca3513dc3839941427f3f709f6c.tar.gz
buildscripts-c8d5b58a7524fca3513dc3839941427f3f709f6c.tar.bz2
buildscripts-c8d5b58a7524fca3513dc3839941427f3f709f6c.zip
build-rpm-package: become able to substitute %{name} in SourceN: fields.
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 01dda79..8d4ab19 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -201,7 +201,7 @@ build_packages() {
( cd $PROJECT && QUILT_PATCHES=debian/patches quilt push -a && rm .pc/ -Rf; )
fi
- cat $PROJECT.spec | egrep "^Source[1-9]+:.*" | awk '{ print $2 }' | while read source_file; do
+ cat $PROJECT.spec | egrep "^Source[1-9]+:.*" | sed "s/%\{name\}/$PROJECT/" | awk '{ print $2 }' | while read source_file; do
find $PROJECT/rpm/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/rpm/$source_file $PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SOURCES/ && continue
find $PROJECT/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/$source_file $PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SOURCES/
done