aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-15 10:41:52 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-15 10:41:52 +0200
commit2c450f3486042a4e0adfe5b773ac7c28f18a7b5e (patch)
treef110fab8ea114983a3c413201d235248f4a0b30c
parenta3ac6e388a3ef851c91305c760e5b23026d541f5 (diff)
build.sh: copy spec file from osmo repo
-rwxr-xr-xrpm-local/build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/rpm-local/build.sh b/rpm-local/build.sh
index 699b083..2159bf2 100755
--- a/rpm-local/build.sh
+++ b/rpm-local/build.sh
@@ -98,6 +98,7 @@ build_pkg_osmo() {
local pkgname="$1"
local repo="$2"
local specfile="spec/$pkgname/$pkgname.spec"
+ local specfile_git
local version
skip_pkg "$pkgname" && return
@@ -107,6 +108,12 @@ build_pkg_osmo() {
repo="$pkgname"
fi
+ # Copy spec file from osmo git repo
+ specfile_git="$SRCDIR/$repo/contrib/$repo.spec"
+ require_path "$specfile_git"
+ cp "$specfile_git" "$specfile"
+
+
version="$(spec_version "$specfile")"
tarball="rpmbuild/SOURCES/$pkgname-$version.tar.xz"
echo "add source: git HEAD tarball: $tarball"