forked from vesoapp/veso-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjellyfin-web.spec
54 lines (40 loc) · 1.29 KB
/
jellyfin-web.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%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
# Veso 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
Veso 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 Veso Packaging Team <[email protected]>
- Forthcoming stable release
* Mon Jul 27 2020 Veso Packaging Team <[email protected]>
- Forthcoming stable release
* Mon Mar 23 2020 Veso Packaging Team <[email protected]>
- Forthcoming stable release