diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-15 10:41:52 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-15 10:41:52 +0200 |
commit | 2c450f3486042a4e0adfe5b773ac7c28f18a7b5e (patch) | |
tree | f110fab8ea114983a3c413201d235248f4a0b30c /rpm-local/build.sh | |
parent | a3ac6e388a3ef851c91305c760e5b23026d541f5 (diff) |
build.sh: copy spec file from osmo repo
Change-Id: I55483fff210e0d300ae0c4bfdff07f6338dfcc58
Diffstat (limited to 'rpm-local/build.sh')
-rwxr-xr-x | rpm-local/build.sh | 7 |
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" |