Skip to content

Commit

Permalink
add lots of debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Jun 4, 2024
1 parent d8f1d45 commit 49d72a7
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions pkg/rpm/build-rpm.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
#!/bin/bash

set -e

echo "Setting up rpmbuild dir"
rpmdev-setuptree

echo "cd to rpmbuild"
cd "$HOME/rpmbuild"
ls

echo "cloning maps"
git clone "https://github.com/aaruni96/maps"
ls

VERSION=$(cat maps/Readme.md | grep -i 'version' | head -n 1 | sed 's/^.*version-//' | sed 's/-.*//').0.1

echo "VERSION is $VERSION"

mv maps maps-$VERSION

cd "$HOME/rpmbuild/maps-$VERSION"
#cd "$HOME/rpmbuild/maps-$VERSION"

# figure out changelogs later
#git log --format="* %ad %an - %s%b%n" $(git rev-list --tags --max-count=1)..HEAD >> pkg/rpm/maps.spec

cd "$HOME/rpmbuild"
#cd "$HOME/rpmbuild"

tar -czf maps-$VERSION.tar.gz maps-$VERSION

mv maps-$VERSION.tar.gz SOURCES

cp maps-$VERSION/pkg/rpm/maps.spec SPECS/maps.spec
echo "trying to move SPECfile to right place"
echo "step1 : list specfile"
ls "maps-$VERSION"
ls "maps-$VERSION/pkg"
ls "maps-$VERSION/pkg/rpm"
cp -v maps-$VERSION/pkg/rpm/maps.spec SPECS/maps.spec

rpmbuild -bb ~/rpmbuild/SPECS/maps.spec

0 comments on commit 49d72a7

Please sign in to comment.