Remove the SPEC edit hack, replace with proper repos (#7)

* Remove the SPEC edit hack, replace with proper repos

Signed-off-by: Thomas Büttner <thomas@vergesslicher.tech>

* Fix bad rpmbuild flag

Signed-off-by: Thomas Büttner <thomas@vergesslicher.tech>
pull/1859/head
Thomas Büttner 5 years ago committed by Joshua M. Boniface
parent 53ee78170a
commit e6e9cd8ce2

@ -13,13 +13,12 @@ RUN yum update -y \
&& yum install -y epel-release
# Install build dependencies
RUN yum install -y @buildsys-build rpmdevtools yum-plugins-core libcurl-devel fontconfig-devel freetype-devel openssl-devel glibc-devel libicu-devel wget git
RUN yum install -y @buildsys-build rpmdevtools yum-plugins-core libcurl-devel fontconfig-devel freetype-devel openssl-devel glibc-devel libicu-devel git
# Install recent NodeJS and Yarn
RUN wget -O- https://raw.githubusercontent.com/creationix/nvm/v0.35.0/install.sh | /bin/bash \
&& source "$HOME/.nvm/nvm.sh" \
&& nvm install v8 \
&& npm install -g yarn
RUN curl -fSsLo /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \
&& rpm -i https://rpm.nodesource.com/pub_8.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm \
&& yum install -y yarn
# Install DotNET SDK
RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm \

@ -8,17 +8,9 @@ set -o xtrace
# Move to source directory
pushd ${SOURCE_DIR}
# Prepare the source
source "$HOME/.nvm/nvm.sh"
nvm use v8
# Build RPM
make -f .copr/Makefile srpm outdir=/root/rpmbuild/SRPMS
# Remove dep for nodejs/yarn since our build env won't have these (NVM instead)
sed -i '/BuildRequires: nodejs >= 8 yarn/d' SPECS/jellyfin.spec
# Build the RPMs
rpmbuild -bs SPECS/jellyfin.spec --define "_sourcedir ${SOURCE_DIR}/SOURCES/pkg-src/"
rpmbuild -bb SPECS/jellyfin.spec --define "_sourcedir ${SOURCE_DIR}/SOURCES/pkg-src/"
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
# Move the artifacts out
mkdir -p ${ARTIFACT_DIR}/rpm

Loading…
Cancel
Save