diff --git a/.copr/Makefile b/.copr/Makefile new file mode 120000 index 0000000..d0b0e8e --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1 @@ +../Makefile \ No newline at end of file diff --git a/Makefile b/Makefile index 906f34c..9d0d262 100644 --- a/Makefile +++ b/Makefile @@ -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