From 6c53b3a03de6eed2a5ec8548ac6842e9be2e9050 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Mon, 26 Aug 2024 23:31:21 +1000 Subject: [PATCH] testing new RPM spec --- jellyfin-web.spec | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/jellyfin-web.spec b/jellyfin-web.spec index d171d47..f594657 100644 --- a/jellyfin-web.spec +++ b/jellyfin-web.spec @@ -9,42 +9,27 @@ 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 +BuildRequires: nodejs, npm +Requires: nodejs, npm %description -Jellyfin is a free software media system that puts you in control of managing and streaming your media. - +Jellyfin Web is the frontend used for most of the clients available for end users, such as desktop browsers, Android, and iOS. %prep -%autosetup -n jellyfin-web-%{version} -b 0 - -%if 0%{?rhel} > 0 && 0%{?rhel} < 8 -# Required for CentOS build -chown root:root -R . -%endif +%setup -q %build -npm ci --no-audit --unsafe-perm +npm install +npm run build:development %install -ls -lha -%{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web -%{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web +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 +%{_libdir}/jellyfin/jellyfin-web %changelog -* Mon Aug 26 2024 Ben Vincent - 10.9.10 -- Initial package +* Mon Aug 26 2024 Ben Vincent - 10.9.10-1 +- Initial build of jellyfin-web 10.9.10