mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Rewrite Fedora build version detection
Rewrite so we don't need to constantly update with every new Fedora release. This is especially useful when Fedora and Jellyfin release cycles don't line up. Version selection is as follows: * TARGET environment variable, which is currently used already * Currently running Fedora version * Hardcoded Fallback version that can be updated occasionally
This commit is contained in:
parent
e727eed1d1
commit
2ff0a67e10
@ -9,8 +9,12 @@ TARBALL :=$(NAME)-$(subst -,~,$(VERSION)).tar.gz
|
|||||||
|
|
||||||
epel-7-x86_64_repos := https://rpm.nodesource.com/pub_16.x/el/\$$releasever/\$$basearch/
|
epel-7-x86_64_repos := https://rpm.nodesource.com/pub_16.x/el/\$$releasever/\$$basearch/
|
||||||
|
|
||||||
|
fed_ver := $(shell rpm -E %fedora)
|
||||||
|
# fallback when not running on Fedora
|
||||||
|
fed_ver ?= 36
|
||||||
|
TARGET ?= fedora-$(fed_ver)-x86_64
|
||||||
|
|
||||||
outdir ?= $(PWD)/$(DIR)/
|
outdir ?= $(PWD)/$(DIR)/
|
||||||
TARGET ?= fedora-35-x86_64
|
|
||||||
|
|
||||||
srpm: $(DIR)/$(SRPM)
|
srpm: $(DIR)/$(SRPM)
|
||||||
tarball: $(DIR)/$(TARBALL)
|
tarball: $(DIR)/$(TARBALL)
|
||||||
|
Loading…
Reference in New Issue
Block a user