remove jellyfin-web and jellyfin-server packages (#185)
ci/woodpecker/push/deploy-fedora42 Pipeline was successful
ci/woodpecker/push/deploy-fedora43 Pipeline was successful
ci/woodpecker/push/deploy-fedora44 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
ci/woodpecker/push/deploy-fedora42 Pipeline was successful
ci/woodpecker/push/deploy-fedora43 Pipeline was successful
ci/woodpecker/push/deploy-fedora44 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
The jellyfin-web el8 build breaks CI (OOM-killed, missing nodejs/npm), and the jellyfin packages are no longer built here. - remove rpms/jellyfin-web - remove rpms/jellyfin-server Reviewed-on: #185 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #185.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
name: jellyfin-server
|
||||
github: unknown/jellyfin-server
|
||||
description: jellyfin-server package
|
||||
dist_tag: false
|
||||
builds:
|
||||
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository:
|
||||
- almalinux/el8
|
||||
version: 10.10.7
|
||||
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository:
|
||||
- almalinux/el9
|
||||
version: 10.10.7
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Setup rpmbuild directory structure
|
||||
mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
|
||||
# Install .NET SDK for building
|
||||
dnf install dotnet-sdk-8.0 -y
|
||||
|
||||
# Download source files using spectool
|
||||
spectool -g -R /app/resources/jellyfin-server_${PACKAGE_VERSION}.spec
|
||||
|
||||
# Copy additional files to SOURCES
|
||||
cp /app/resources/fix-envfile-path.patch /root/rpmbuild/SOURCES/fix-envfile-path.patch
|
||||
cp /app/resources/tmpfiles.conf /root/rpmbuild/SOURCES/tmpfiles.conf
|
||||
|
||||
# Build the RPM
|
||||
rpmbuild -ba /app/resources/jellyfin-server_${PACKAGE_VERSION}.spec
|
||||
|
||||
# Copy the built RPMs to output directory
|
||||
cp /root/rpmbuild/RPMS/x86_64/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm /app/dist/
|
||||
cp /root/rpmbuild/SRPMS/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/debian/conf/jellyfin.service
|
||||
+++ b/debian/conf/jellyfin.service
|
||||
@@ -4,7 +4,7 @@ After = network-online.target
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
-EnvironmentFile = /etc/default/jellyfin
|
||||
+EnvironmentFile = /etc/jellyfin/jellyfin.env
|
||||
User = jellyfin
|
||||
Group = jellyfin
|
||||
WorkingDirectory = /var/lib/jellyfin
|
||||
@@ -1,127 +0,0 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global jellyfin_version 10.10.7
|
||||
%global jellyfin_packaging_timestamp 202504051515
|
||||
%global jellyfin_packaging_version %{jellyfin_version}-%{jellyfin_packaging_timestamp}
|
||||
|
||||
%global dotnet_runtime %( \
|
||||
if [ "%{_arch}" = "x86_64" ]; then \
|
||||
echo -n "linux-x64"; \
|
||||
elif [ "%{_arch}" = "aarch64" ]; then \
|
||||
echo -n "linux-arm64"; \
|
||||
else \
|
||||
echo "Unsupported architecture: %{_arch}"; \
|
||||
exit 1; \
|
||||
fi \
|
||||
)
|
||||
|
||||
Name: jellyfin-server
|
||||
Version: %{jellyfin_version}
|
||||
Release: 1
|
||||
Summary: The Free Software Media System - Server Backend & API
|
||||
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/jellyfin/jellyfin
|
||||
Source0: https://github.com/jellyfin/jellyfin/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: https://github.com/jellyfin/jellyfin-packaging/archive/refs/tags/v%{jellyfin_packaging_version}.tar.gz
|
||||
Source2: tmpfiles.conf
|
||||
Patch0: fix-envfile-path.patch
|
||||
|
||||
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
|
||||
|
||||
BuildRequires: dotnet-sdk-8.0
|
||||
BuildRequires: git
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
|
||||
Requires: aspnetcore-runtime-8.0
|
||||
Requires: bash
|
||||
Requires: fontconfig
|
||||
Requires: jellyfin-ffmpeg-bin
|
||||
Requires: sqlite
|
||||
|
||||
|
||||
Recommends: jellyfin-web
|
||||
Recommends: google-noto-fonts-common
|
||||
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
tar --extract --file="%{SOURCE1}" --directory="%{_builddir}"
|
||||
pushd %{_builddir}/jellyfin-packaging-%{jellyfin_packaging_version}
|
||||
patch -p1 -i "%{PATCH0}"
|
||||
popd
|
||||
%setup -q -n jellyfin-%{version}
|
||||
|
||||
|
||||
%build
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 \
|
||||
DOTNET_NOLOGO=1 \
|
||||
dotnet \
|
||||
publish \
|
||||
Jellyfin.Server \
|
||||
--configuration Release \
|
||||
--output builddir \
|
||||
--self-contained false \
|
||||
--runtime %{dotnet_runtime} \
|
||||
-p:DebugSymbols=false \
|
||||
-p:DebugType=none
|
||||
|
||||
|
||||
%install
|
||||
install --directory "%{buildroot}%{_libdir}"
|
||||
cp --recursive builddir "%{buildroot}%{_libdir}/jellyfin"
|
||||
|
||||
install --directory "%{buildroot}%{_bindir}"
|
||||
ln --symbolic --force "%{_libdir}/jellyfin/jellyfin" "%{buildroot}%{_bindir}/jellyfin"
|
||||
|
||||
pushd %{_builddir}/jellyfin-packaging-%{jellyfin_packaging_version}/debian/conf
|
||||
install -D --mode=644 jellyfin.service "%{buildroot}%{_unitdir}/jellyfin.service"
|
||||
install -D --mode=640 jellyfin "%{buildroot}%{_sysconfdir}/jellyfin/jellyfin.env"
|
||||
popd
|
||||
|
||||
install -D --mode=0644 "%{SOURCE2}" "%{buildroot}%{_tmpfilesdir}/jellyfin.conf"
|
||||
|
||||
install --directory --mode=750 "%{buildroot}%{_localstatedir}/cache/jellyfin"
|
||||
install --directory --mode=750 "%{buildroot}%{_sharedstatedir}/jellyfin"
|
||||
find %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/jellyfin
|
||||
%{_libdir}/jellyfin
|
||||
%{_tmpfilesdir}/jellyfin.conf
|
||||
%{_unitdir}/jellyfin.service
|
||||
%defattr(640,jellyfin,jellyfin,750)
|
||||
%dir %{_localstatedir}/cache/jellyfin
|
||||
%dir %{_sharedstatedir}/jellyfin
|
||||
%dir %{_sysconfdir}/jellyfin
|
||||
%config(noreplace) %{_sysconfdir}/jellyfin/jellyfin.env
|
||||
|
||||
|
||||
%pre
|
||||
getent group jellyfin > /dev/null || groupadd --system jellyfin
|
||||
getent passwd jellyfin > /dev/null || \
|
||||
useradd --system --home-dir "%{_sharedstatedir}/jellyfin" --gid jellyfin \
|
||||
-s /sbin/nologin -c "jellyfin daemon" jellyfin
|
||||
exit 0
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post jellyfin.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun jellyfin.service
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun jellyfin.service
|
||||
@@ -1 +0,0 @@
|
||||
d /var/log/jellyfin 0750 jellyfin jellyfin
|
||||
@@ -1,15 +0,0 @@
|
||||
name: jellyfin-web
|
||||
github: unknown/jellyfin-web
|
||||
description: jellyfin-web package
|
||||
dist_tag: false
|
||||
builds:
|
||||
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository:
|
||||
- almalinux/el8
|
||||
version: 10.10.7
|
||||
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository:
|
||||
- almalinux/el9
|
||||
version: 10.10.7
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Setup rpmbuild directory structure
|
||||
mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
|
||||
# Install Node.js for building
|
||||
dnf module enable nodejs:20 -y
|
||||
dnf install nodejs npm -y
|
||||
|
||||
# Download source files using spectool
|
||||
spectool -g -R /app/resources/jellyfin-web_${PACKAGE_VERSION}.spec
|
||||
|
||||
# Build the RPM
|
||||
rpmbuild -ba /app/resources/jellyfin-web_${PACKAGE_VERSION}.spec
|
||||
|
||||
# Copy the built RPMs to output directory
|
||||
cp /root/rpmbuild/RPMS/noarch/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.noarch.rpm /app/dist/
|
||||
cp /root/rpmbuild/SRPMS/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/
|
||||
@@ -1,43 +0,0 @@
|
||||
%global jellyfin_version 10.10.7
|
||||
|
||||
|
||||
Name: jellyfin-web
|
||||
Version: %{jellyfin_version}
|
||||
Release: 1
|
||||
Summary: The Free Software Media System - Official Web Client
|
||||
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/jellyfin/jellyfin-web
|
||||
Source0: https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: nodejs
|
||||
BuildRequires: npm
|
||||
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n jellyfin-web-%{version}
|
||||
|
||||
|
||||
%build
|
||||
SKIP_PREPARE=1 npm ci --no-audit --no-fund --no-update-notifier
|
||||
npm run build:production
|
||||
|
||||
|
||||
%install
|
||||
install --directory "%{buildroot}%{_datadir}/jellyfin/web"
|
||||
cp --recursive dist/* "%{buildroot}%{_datadir}/jellyfin/web"
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_datadir}/jellyfin/web
|
||||
Reference in New Issue
Block a user