diff --git a/fedora/Makefile b/fedora/Makefile index 806417adb..ce770e0ec 100644 --- a/fedora/Makefile +++ b/fedora/Makefile @@ -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 diff --git a/fedora/jellyfin-web.spec b/fedora/jellyfin-web.spec index 70e20e5fc..22ea36480 100644 --- a/fedora/jellyfin-web.spec +++ b/fedora/jellyfin-web.spec @@ -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