From ab899d46ea2fc459332a2902edbe7e9c6d476262 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 14 Dec 2021 09:05:32 -0500 Subject: [PATCH] Fix to build on EL7 --- fedora/Makefile | 2 +- fedora/jellyfin-web.spec | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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