aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-19 16:23:25 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-19 16:23:25 +0200
commit1f579be648e803075376638aa7e286722f431aed (patch)
treebb30d792f38c6fa015a01e3e389698a660d08302
parent335b302c3e8efc6d8904d8f22abfdfc1b32e5759 (diff)
update spec file from .spec.in
-rwxr-xr-xrpm-local/build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/rpm-local/build.sh b/rpm-local/build.sh
index 017f5c7..5ee13a0 100755
--- a/rpm-local/build.sh
+++ b/rpm-local/build.sh
@@ -109,10 +109,15 @@ build_pkg_osmo() {
fi
# Copy spec file from osmo git repo
- specfile_git="$SRCDIR/$repo/contrib/$repo.spec"
+ cd "$SRCDIR/$repo"
+ specfile_git="$(find -name "$repo.spec.in")"
require_path "$specfile_git"
- cp "$specfile_git" "$specfile"
+ echo "update spec file from: $specfile_git"
+ cp "$specfile_git" "$DIR/$specfile"
+ cd "$DIR"
+ # Set version to 0.0.0
+ sed -i "s/^Version:.*/Version: 0.0.0/g" "$specfile"
version="$(spec_version "$specfile")"
tarball="rpmbuild/SOURCES/$pkgname-$version.tar.xz"