Skip to content

Commit 60f72b5

Browse files
committed
Fix COPR build.
1 parent 1bc5a75 commit 60f72b5

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.copr/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FEDORA_RELEASE = $(shell cut -d' ' -f 3 /etc/fedora-release)
1+
FEDORA_RELEASE ?= $(shell cut -d' ' -f 3 /etc/fedora-release)
22

33
.PHONY: srpm
44
srpm:

Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ FEDORA_RELEASE ?= 41
44
ARCH ?= x86_64
55

66
totpm-$(VERSION).tar.gz: $(SOURCES)
7-
tar \
8-
--exclude '*.tar.gz' \
9-
--exclude '.git*' \
10-
--exclude '.vscode' \
11-
--exclude target \
12-
--exclude '*.rpm' \
13-
--exclude 'results_*' \
14-
--transform 's,^\(\.[^/]\+\),totpm-$(VERSION)/\1,' \
15-
--transform 's,^\.,totpm-$(VERSION),' \
16-
-czf totpm-$(VERSION).tar.gz .
7+
git archive --prefix=totpm-$(VERSION)/ HEAD | gzip > totpm-$(VERSION).tar.gz
178

189
totpm-$(VERSION)-1.fc$(FEDORA_RELEASE).src.rpm: totpm-$(VERSION).tar.gz
1910
fedpkg --release f$(FEDORA_RELEASE) srpm

0 commit comments

Comments
 (0)