testing new RPM spec
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Ben Vincent 2024-08-26 23:31:21 +10:00
parent c94c534367
commit 6c53b3a03d

View File

@ -9,42 +9,27 @@ URL: https://jellyfin.org
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
BuildRequires: nodejs
%else
BuildRequires: git
%if 0%{?fedora} >= 37
BuildRequires: nodejs-npm
%else
BuildRequires: npm
%endif
%endif
BuildRequires: nodejs, npm
Requires: nodejs, npm
%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
%autosetup -n jellyfin-web-%{version} -b 0
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
# Required for CentOS build
chown root:root -R .
%endif
%setup -q
%build
npm ci --no-audit --unsafe-perm
npm install
npm run build:development
%install
ls -lha
%{__mkdir} -p %{buildroot}%{_libdir}/jellyfin/jellyfin-web
%{__cp} -r dist/* %{buildroot}%{_libdir}/jellyfin/jellyfin-web
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
%{_libdir}/jellyfin/jellyfin-web
%changelog
* Mon Aug 26 2024 Ben Vincent <ben@unkin.net> - 10.9.10
- Initial package
* Mon Aug 26 2024 Ben Vincent <ben@unkin.net> - 10.9.10-1
- Initial build of jellyfin-web 10.9.10