jellyfin-web/fedora/jellyfin-web.spec

55 lines
1.3 KiB
RPMSpec
Raw Normal View History

2020-03-23 21:01:03 -07:00
%global debug_package %{nil}
Name: jellyfin-web
Version: 10.8.0
Release: 1%{?dist}
2020-03-23 21:01:03 -07:00
Summary: The Free Software Media System web client
License: GPLv2
URL: https://jellyfin.org
2021-03-10 07:37:44 -07:00
# Jellyfin Server tarball created by `make -f .copr/Makefile srpm`, real URL ends with `v%%{version}.tar.gz`
2020-03-23 21:01:03 -07:00
Source0: jellyfin-web-%{version}.tar.gz
BuildArch: noarch
2021-12-14 07:43:48 -07:00
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
2021-12-14 07:05:32 -07:00
BuildRequires: nodejs
%else
BuildRequires: git
BuildRequires: npm
2021-12-14 07:05:32 -07:00
%endif
2020-03-23 21:01:03 -07: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 13:17:18 -07:00
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
# Required for CentOS build
chown root:root -R .
%endif
%build
2021-04-08 14:09:52 -07:00
npm ci --no-audit --unsafe-perm
%install
%{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web
%{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web
2020-03-23 21:01:03 -07:00
%files
2021-03-10 07:37:44 -07:00
%defattr(644,root,root,755)
%{_libdir}/jellyfin/jellyfin-web
%license LICENSE
2020-03-23 21:01:03 -07: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-23 21:01:03 -07:00
* Mon Mar 23 2020 Jellyfin Packaging Team <packaging@jellyfin.org>
- Forthcoming stable release