%global debug_package %{nil} Name: jellyfin-web Version: 10.9.10 Release: 1%{?dist} Summary: The Free Software Media System web client License: GPLv2 URL: https://jellyfin.org Source0: %{name}-%{version}.tar.gz BuildArch: noarch %if 0%{?rhel} > 0 && 0%{?rhel} < 8 BuildRequires: nodejs %else BuildRequires: git %if 0%{?fedora} >= 37 BuildRequires: nodejs-npm %else BuildRequires: npm %endif %endif %description Jellyfin is a free software media system that puts you in control of managing and streaming your media. %prep %autosetup -n jellyfin-web-%{version} -b 0 %if 0%{?rhel} > 0 && 0%{?rhel} < 8 # Required for CentOS build chown root:root -R . %endif %build npm ci --no-audit --unsafe-perm %install %{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web %{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web %files %defattr(644,root,root,755) %{_libdir}/jellyfin/jellyfin-web %license LICENSE %changelog * Mon Aug 26 2024 Ben Vincent - 10.9.10 - Initial package