mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Standardise Fedora spec to packaging guidelines
* move actual building process to %build * remove AutoReqProv as the package purely contains text files and fonts. There's no dependencies to begin with. This feature is also intended as sort of a "last resort" and we don't need this here. * define LICENSE as %license, which automatically puts it in a standardised directory
This commit is contained in:
parent
2896cfbdb2
commit
390a0edf70
1 changed files with 11 additions and 10 deletions
|
@ -17,9 +17,6 @@ BuildRequires: git
|
||||||
BuildRequires: npm
|
BuildRequires: npm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Disable Automatic Dependency Processing
|
|
||||||
AutoReqProv: no
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Jellyfin is a free software media system that puts you in control of managing and streaming your media.
|
Jellyfin is a free software media system that puts you in control of managing and streaming your media.
|
||||||
|
|
||||||
|
@ -27,22 +24,26 @@ Jellyfin is a free software media system that puts you in control of managing an
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n jellyfin-web-%{version} -b 0
|
%autosetup -n jellyfin-web-%{version} -b 0
|
||||||
|
|
||||||
%build
|
|
||||||
|
|
||||||
%install
|
|
||||||
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
|
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
|
||||||
# Required for CentOS build
|
# Required for CentOS build
|
||||||
chown root:root -R .
|
chown root:root -R .
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
npm ci --no-audit --unsafe-perm
|
npm ci --no-audit --unsafe-perm
|
||||||
%{__mkdir} -p %{buildroot}%{_datadir}
|
|
||||||
mv dist %{buildroot}%{_datadir}/jellyfin-web
|
|
||||||
%{__install} -D -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/jellyfin/LICENSE
|
%install
|
||||||
|
%{__mkdir} -p %{buildroot}%{_datadir}/jellyfin-web
|
||||||
|
%{__cp} -r dist/* %{buildroot}%{_datadir}/jellyfin-web
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%{_datadir}/jellyfin-web
|
%{_datadir}/jellyfin-web
|
||||||
%{_datadir}/licenses/jellyfin/LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jun 10 2022 Jellyfin Packaging Team <packaging@jellyfin.org>
|
* Fri Jun 10 2022 Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue