Skip to content

Commit

Permalink
Remove support for different python version from RPM Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SlouchyButton committed Sep 13, 2024
1 parent 638bb34 commit 63f6849
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rpm/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PROJECT = distgen
PYTHON := python3
VERSION := $(shell python3 -m distgen --version | grep -o '[0-9]*\.[0-9]*')
RELEASE := 1

Expand All @@ -23,14 +22,14 @@ spec = $(PROJECT).spec
all: $(spec) $(tarball)

$(spec): $(PROJECT).spec.dg
$(PYTHON) -m distgen --template $< \
python3 -m distgen --template $< \
--distro fedora-rawhide-x86_64 \
--macro "VERSION $(VERSION)" \
--macro "RELEASE $(RELEASE)" \
--output $@

$(tarball):
$(PYTHON) -m build -o . ..
python3 -m build -o . ..

srpm: $(spec) $(tarball)
rm -rf *.src.rpm
Expand Down

0 comments on commit 63f6849

Please sign in to comment.