Fix to build on EL7

This commit is contained in:
Brian J. Murrell 2021-12-14 09:05:32 -05:00
parent b907d08b86
commit ab899d46ea
2 changed files with 5 additions and 1 deletions

View file

@ -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
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)/
TARGET ?= fedora-35-x86_64

View file

@ -10,8 +10,12 @@ URL: https://jellyfin.org
Source0: jellyfin-web-%{version}.tar.gz
BuildArch: noarch
%if 0%{?rhel} < 8
BuildRequires: nodejs
%else
BuildRequires: git
BuildRequires: npm
%endif
# Disable Automatic Dependency Processing
AutoReqProv: no