Skip to content

Commit

Permalink
Add Make srpm for COPR
Browse files Browse the repository at this point in the history
  • Loading branch information
thebeanogamer committed May 21, 2023
1 parent eeb16d5 commit abbac24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .copr/Makefile
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ tar:
mkdir -p rpmbuild/SOURCES/
tar --exclude='./rpmbuild' --transform 's,^,hstsparser-$(VERSION)/,' -czvhf rpmbuild/SOURCES/$(VERSION).tar.gz .

rpm: tar
srpm: tar
rpmbuild -bs --define "_topdir `pwd`/rpmbuild" ./hstsparser.spec
ifdef outdir
cp ./rpmbuild/SRPMS/* $(outdir)
endif

rpm: srpm
sudo dnf install -y python3-poetry
sudo dnf builddep -y hstsparser.spec
rpmbuild -br --define "_topdir `pwd`/rpmbuild" ./hstsparser.spec
Expand Down

0 comments on commit abbac24

Please sign in to comment.