|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
#= CentOS/RHEL 8+ amd64 .rpm
|
|
|
|
#= CentOS/RHEL 9+ amd64 .rpm
|
|
|
|
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o errexit
|
|
|
|
set -o xtrace
|
|
|
|
set -o xtrace
|
|
|
@ -10,7 +10,7 @@ pushd "${SOURCE_DIR}"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
|
|
# Remove BuildRequires for dotnet, since it's installed manually
|
|
|
|
# Remove BuildRequires for dotnet, since it's installed manually
|
|
|
|
pushd fedora
|
|
|
|
pushd centos
|
|
|
|
|
|
|
|
|
|
|
|
cp -a jellyfin.spec /tmp/spec.orig
|
|
|
|
cp -a jellyfin.spec /tmp/spec.orig
|
|
|
|
sed -i 's/BuildRequires: dotnet/# BuildRequires: dotnet/' jellyfin.spec
|
|
|
|
sed -i 's/BuildRequires: dotnet/# BuildRequires: dotnet/' jellyfin.spec
|
|
|
@ -20,7 +20,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# Modify changelog to unstable configuration if IS_UNSTABLE
|
|
|
|
# Modify changelog to unstable configuration if IS_UNSTABLE
|
|
|
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
|
|
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
|
|
|
pushd fedora
|
|
|
|
pushd centos
|
|
|
|
|
|
|
|
|
|
|
|
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
|
|
|
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Build RPM
|
|
|
|
# Build RPM
|
|
|
|
make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
|
|
|
make -f centos/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
|
|
|
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
|
|
|
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
|
|
|
|
|
|
|
|
|
|
|
# Move the artifacts out
|
|
|
|
# Move the artifacts out
|
|
|
@ -45,10 +45,10 @@ if [[ ${IS_DOCKER} == YES ]]; then
|
|
|
|
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
|
|
|
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
rm -f fedora/jellyfin*.tar.gz
|
|
|
|
rm -f centos/jellyfin*.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
|
|
pushd fedora
|
|
|
|
pushd centos
|
|
|
|
|
|
|
|
|
|
|
|
cp -a /tmp/spec.orig jellyfin.spec
|
|
|
|
cp -a /tmp/spec.orig jellyfin.spec
|
|
|
|
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
|
|
|
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
|
|
|