jellyfin-web/fedora/jellyfin-web.spec
Brian J. Murrell 27c0cff47c
Remove chown -R root:root from specfile
%install is run as non-root and as such, chown root is not allowed to be done it.

The correct way of achieving a setting of ownership in RPM specfiles is to do it
in the %files section(s).

Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
2021-11-16 10:43:29 -05:00

47 lines
1.3 KiB
RPMSpec

%global debug_package %{nil}
Name: jellyfin-web
Version: 10.8.0
Release: 1%{?dist}
Summary: The Free Software Media System web client
License: GPLv3
URL: https://jellyfin.org
# Jellyfin Server tarball created by `make -f .copr/Makefile srpm`, real URL ends with `v%%{version}.tar.gz`
Source0: jellyfin-web-%{version}.tar.gz
BuildArch: noarch
%if 0%{?fedora} >= 33
BuildRequires: nodejs
%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.
%prep
%autosetup -n jellyfin-web-%{version} -b 0
%build
%install
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
%files
%defattr(644,root,root,755)
%{_datadir}/jellyfin-web
%{_datadir}/licenses/jellyfin/LICENSE
%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
* Mon Mar 23 2020 Jellyfin Packaging Team <packaging@jellyfin.org>
- Forthcoming stable release