Skip to content

Commit

Permalink
Create .src.rpm script
Browse files Browse the repository at this point in the history
Because sometimes I forget the exact syntax.

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Apr 19, 2024
1 parent 47538d2 commit fdbcdf3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/create-src.rpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -ex

REL="$(git tag | tail -1)"
mkdir -p "$HOME/rpmbuild/SOURCES/"
git archive -o "$HOME/rpmbuild/SOURCES/twincam-$REL.tar.gz" --prefix "twincam-$REL/" HEAD
rpmbuild -bs twincam.spec

#copr-cli build @centos-automotive-sig/next $HOME/rpmbuild/SRPMS/twincam-*.src.rpm

0 comments on commit fdbcdf3

Please sign in to comment.