diff options
Diffstat (limited to 'rpm-local/build.sh')
-rwxr-xr-x | rpm-local/build.sh | 9 |
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" |