diff --git a/fedora/jellyfin-web.spec b/fedora/jellyfin-web.spec index a16fcfa27d..056528db2e 100644 --- a/fedora/jellyfin-web.spec +++ b/fedora/jellyfin-web.spec @@ -17,9 +17,6 @@ BuildRequires: git BuildRequires: npm %endif -# Disable Automatic Dependency Processing -AutoReqProv: no - %description Jellyfin is a free software media system that puts you in control of managing and streaming your media. @@ -27,22 +24,26 @@ Jellyfin is a free software media system that puts you in control of managing an %prep %autosetup -n jellyfin-web-%{version} -b 0 -%build - -%install %if 0%{?rhel} > 0 && 0%{?rhel} < 8 # Required for CentOS build chown root:root -R . %endif + + +%build npm ci --no-audit --unsafe-perm -%{__mkdir} -p %{buildroot}%{_datadir} -mv dist %{buildroot}%{_datadir}/jellyfin-web -%{__install} -D -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/jellyfin/LICENSE + + +%install +%{__mkdir} -p %{buildroot}%{_datadir}/jellyfin-web +%{__cp} -r dist/* %{buildroot}%{_datadir}/jellyfin-web + %files %defattr(644,root,root,755) %{_datadir}/jellyfin-web -%{_datadir}/licenses/jellyfin/LICENSE +%license LICENSE + %changelog * Fri Jun 10 2022 Jellyfin Packaging Team