generated from unkin/rpmbuild-template
This commit is contained in:
parent
c94c534367
commit
6c53b3a03d
@ -9,42 +9,27 @@ URL: https://jellyfin.org
|
|||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
|
BuildRequires: nodejs, npm
|
||||||
BuildRequires: nodejs
|
Requires: nodejs, npm
|
||||||
%else
|
|
||||||
BuildRequires: git
|
|
||||||
%if 0%{?fedora} >= 37
|
|
||||||
BuildRequires: nodejs-npm
|
|
||||||
%else
|
|
||||||
BuildRequires: npm
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Jellyfin is a free software media system that puts you in control of managing and streaming your media.
|
Jellyfin Web is the frontend used for most of the clients available for end users, such as desktop browsers, Android, and iOS.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n jellyfin-web-%{version} -b 0
|
%setup -q
|
||||||
|
|
||||||
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
|
|
||||||
# Required for CentOS build
|
|
||||||
chown root:root -R .
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
npm ci --no-audit --unsafe-perm
|
npm install
|
||||||
|
npm run build:development
|
||||||
|
|
||||||
%install
|
%install
|
||||||
ls -lha
|
mkdir -p %{buildroot}/%{_libdir}/jellyfin/jellyfin-web
|
||||||
%{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web
|
cp -r dist/* %{buildroot}/%{_libdir}/jellyfin/jellyfin-web
|
||||||
%{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
|
||||||
%{_libdir}/jellyfin/jellyfin-web
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%{_libdir}/jellyfin/jellyfin-web
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 26 2024 Ben Vincent <ben@unkin.net> - 10.9.10
|
* Mon Aug 26 2024 Ben Vincent <ben@unkin.net> - 10.9.10-1
|
||||||
- Initial package
|
- Initial build of jellyfin-web 10.9.10
|
||||||
|
|||||||
Reference in New Issue
Block a user