Fix to build on EL7
This commit is contained in:
parent
b907d08b86
commit
ab899d46ea
2 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,7 @@ GIT_VER := $(shell set -x; git describe --tags | sed -e 's/^v//' -e 's/-[0-9]*-g
|
||||||
SRPM := jellyfin-web-$(subst -,~,$(GIT_VER))-$(RELEASE)$(shell rpm --eval %dist).src.rpm
|
SRPM := jellyfin-web-$(subst -,~,$(GIT_VER))-$(RELEASE)$(shell rpm --eval %dist).src.rpm
|
||||||
TARBALL :=$(NAME)-$(subst -,~,$(GIT_VER)).tar.gz
|
TARBALL :=$(NAME)-$(subst -,~,$(GIT_VER)).tar.gz
|
||||||
|
|
||||||
epel-8-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/
|
||||||
|
|
||||||
outdir ?= $(PWD)/$(DIR)/
|
outdir ?= $(PWD)/$(DIR)/
|
||||||
TARGET ?= fedora-35-x86_64
|
TARGET ?= fedora-35-x86_64
|
||||||
|
|
|
@ -10,8 +10,12 @@ URL: https://jellyfin.org
|
||||||
Source0: jellyfin-web-%{version}.tar.gz
|
Source0: jellyfin-web-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
|
BuildRequires: nodejs
|
||||||
|
%else
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: npm
|
BuildRequires: npm
|
||||||
|
%endif
|
||||||
|
|
||||||
# Disable Automatic Dependency Processing
|
# Disable Automatic Dependency Processing
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue