mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
c2229c409f
Cleanup and standardise Fedora build (web)
(cherry picked from commit c20243c8bf
)
Signed-off-by: Bill Thornton <billt2006@gmail.com>
55 lines
1.3 KiB
RPMSpec
55 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: GPLv2
|
|
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%{?rhel} > 0 && 0%{?rhel} < 8
|
|
BuildRequires: nodejs
|
|
%else
|
|
BuildRequires: git
|
|
BuildRequires: npm
|
|
%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
|
|
* 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
|