diff options
-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" |