]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
rpm: generate local tarball using git archive to fix build errors master
authorFlole <flole@flole.de>
Thu, 18 Jun 2026 13:24:32 +0000 (15:24 +0200)
committerFlole <Flole998@users.noreply.github.com>
Thu, 18 Jun 2026 20:08:29 +0000 (22:08 +0200)
rpm/Makefile

index 8e1042d2d9ce82acd969c284afd0028bfc0f8150..91870c3dd30e488405a1c6f9faf138829dff742d 100644 (file)
@@ -51,12 +51,12 @@ SOURCES:
 
 .PHONY: srpm
 srpm: clean SOURCES tvheadend.spec
-       spectool --get-files -C SOURCES tvheadend.spec
+       cd $(TOPDIR)/.. && git archive --format=tar.gz --prefix=tvheadend-$(COMMITR)/ HEAD -o $(TOPDIR)/SOURCES/tvheadend-$(COMMITR).tar.gz
        rpmbuild $(DEFINES) -bs tvheadend.spec
 
 .PHONY: build
 build: clean SOURCES tvheadend.spec
-       spectool --get-files -C SOURCES tvheadend.spec
+       cd $(TOPDIR)/.. && git archive --format=tar.gz --prefix=tvheadend-$(COMMITR)/ HEAD -o $(TOPDIR)/SOURCES/tvheadend-$(COMMITR).tar.gz
        rpmbuild $(DEFINES) -ba tvheadend.spec
 
 .PHONY: build-doozer