jellyfish-web/fedora/jellyfin-web.spec

59 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-03-24 00:01:03 -04:00
%global debug_package %{nil}
Name: jellyfin-web
Version: 10.8.0
Release: 2%{?dist}
2020-03-24 00:01:03 -04:00
Summary: The Free Software Media System web client
License: GPLv2
URL: https://jellyfin.org
2021-03-10 09:37:44 -05:00
# Jellyfin Server tarball created by `make -f .copr/Makefile srpm`, real URL ends with `v%%{version}.tar.gz`
2020-03-24 00:01:03 -04:00
Source0: jellyfin-web-%{version}.tar.gz
BuildArch: noarch
2021-12-14 09:43:48 -05:00
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
2021-12-14 09:05:32 -05:00
BuildRequires: nodejs
%else
BuildRequires: git
# Nodejs 20 is required and npm >= 10 should bring in NodeJS 20
# This requires the build environment to use the nodejs:20 module stream:
# dnf module {install|switch-to}:web nodejs:20
BuildRequires: npm >= 10
2021-12-14 09:05:32 -05:00
%endif
2020-03-24 00:01:03 -04:00
%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
2021-12-29 15:17:18 -05:00
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
# Required for CentOS build
chown root:root -R .
%endif
%build
2021-04-08 23:09:52 +02:00
npm ci --no-audit --unsafe-perm
2023-03-10 12:24:43 -05:00
npm run build:production
%install
%{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web
%{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web
2020-03-24 00:01:03 -04:00
%files
2021-03-10 09:37:44 -05:00
%defattr(644,root,root,755)
%{_libdir}/jellyfin/jellyfin-web
%license LICENSE
2020-03-24 00:01:03 -04:00
%changelog
* Fri Dec 04 2020 Jellyfin Packaging Team <packaging@jellyfin.org>
- Forthcoming stable release
* Mon Jul 27 2020 Jellyfin Packaging Team <packaging@jellyfin.org>
- Forthcoming stable release
2020-03-24 00:01:03 -04:00
* Mon Mar 23 2020 Jellyfin Packaging Team <packaging@jellyfin.org>
- Forthcoming stable release