summaryrefslogtreecommitdiffstats
path: root/redhat/docker/osstw
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2020-06-01 19:01:43 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2020-06-01 19:02:06 +0200
commit191dbe0c32b56e88be8e5253f65833470e2eee0a (patch)
treed72ef16536e261dae673c3049a20eb3eeeca18ac /redhat/docker/osstw
parent1c0f7ee5ef66d92c671fbeaac96faeffb1a8992d (diff)
downloadtde-packaging-191dbe0c32b56e88be8e5253f65833470e2eee0a.tar.gz
tde-packaging-191dbe0c32b56e88be8e5253f65833470e2eee0a.zip
RPM: update build scripts
Diffstat (limited to 'redhat/docker/osstw')
-rw-r--r--redhat/docker/osstw/Dockerfile.i68632
-rw-r--r--redhat/docker/osstw/Dockerfile.x86_6432
-rw-r--r--redhat/docker/osstw/packages27
-rw-r--r--redhat/docker/osstw/rpmmacros1
4 files changed, 60 insertions, 32 deletions
diff --git a/redhat/docker/osstw/Dockerfile.i686 b/redhat/docker/osstw/Dockerfile.i686
index 1e0b8a168..b095031b8 100644
--- a/redhat/docker/osstw/Dockerfile.i686
+++ b/redhat/docker/osstw/Dockerfile.i686
@@ -1,25 +1,31 @@
FROM opensuse32/tumbleweed:latest
-ARG TDE_VERSION=14.0.7
+ARG TDE_VERSION=14.0.8
ARG ARCH=i686
# Add PACKMAN repository
RUN zypper ar -f -G -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
-RUN setarch ${ARCH} zypper refresh
-RUN setarch ${ARCH} zypper --non-interactive dup
-RUN setarch ${ARCH} zypper --non-interactive update
-
-# Install Trinity build dependencies
ADD packages /packages
-RUN setarch ${ARCH} zypper install -l -y $(</packages)
+RUN setarch ${ARCH} zypper refresh \
+ && setarch ${ARCH} zypper -n dup \
+ && setarch ${ARCH} zypper -n update \
+ && setarch ${ARCH} zypper -n install $(</packages)
# Add non-root user to build packages
-RUN useradd -m -s /bin/bash -u 1000 trinity
-RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
+RUN useradd -m -s /bin/bash -u 1000 trinity \
+ && echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
+
+USER trinity
ADD rpmmacros /home/trinity/.rpmmacros
# Add YUM repository for locally built packages
-RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH}
-RUN zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH}
-RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
-RUN zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
+RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \
+ && sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH} \
+ && mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \
+ && sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
+
+# Build supplementary packages
+RUN rpm -Uvh https://ftp.gwdg.de/pub/opensuse/repositories/graphics/openSUSE_Factory/src/jasper-2.0.16-260.4.src.rpm \
+ && sed -i "${HOME}/rpmbuild/SPECS/jasper.spec" -e "/^%cmake / s|$| -DJAS_ENABLE_DOC=False|" \
+ && setarch ${ARCH} rpmbuild -ba "${HOME}/rpmbuild/SPECS/jasper.spec" \
+ && sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/libjasper{4,-devel}-2*.rpm /home/trinity/rpmbuild/RPMS/*/jasper-2*.rpm
diff --git a/redhat/docker/osstw/Dockerfile.x86_64 b/redhat/docker/osstw/Dockerfile.x86_64
index 42d7007c3..82bb96ca3 100644
--- a/redhat/docker/osstw/Dockerfile.x86_64
+++ b/redhat/docker/osstw/Dockerfile.x86_64
@@ -1,25 +1,31 @@
FROM opensuse/tumbleweed:latest
-ARG TDE_VERSION=14.0.7
+ARG TDE_VERSION=14.0.8
ARG ARCH=x86_64
# Add PACKMAN repository
RUN zypper ar -f -G -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
-RUN zypper refresh
-RUN zypper --non-interactive dup
-RUN zypper --non-interactive update
-
-# Install Trinity build dependencies
ADD packages /packages
-RUN zypper install -l -y $(</packages)
+RUN zypper refresh \
+ && zypper -n dup \
+ && zypper -n update \
+ && zypper -n install $(</packages)
# Add non-root user to build packages
-RUN useradd -m -s /bin/bash -u 1000 trinity
-RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
+RUN useradd -m -s /bin/bash -u 1000 trinity \
+ && echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
+
+USER trinity
ADD rpmmacros /home/trinity/.rpmmacros
# Add YUM repository for locally built packages
-RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH}
-RUN zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH}
-RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
-RUN zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
+RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \
+ && sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH} \
+ && mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \
+ && sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
+
+# Build supplementary packages
+RUN rpm -Uvh https://ftp.gwdg.de/pub/opensuse/repositories/graphics/openSUSE_Factory/src/jasper-2.0.16-260.4.src.rpm \
+ && sed -i "${HOME}/rpmbuild/SPECS/jasper.spec" -e "/^%cmake / s|$| -DJAS_ENABLE_DOC=False|" \
+ && rpmbuild -ba "${HOME}/rpmbuild/SPECS/jasper.spec" \
+ && sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/libjasper{4,-devel}-2*.rpm /home/trinity/rpmbuild/RPMS/*/jasper-2*.rpm
diff --git a/redhat/docker/osstw/packages b/redhat/docker/osstw/packages
index 81f51221f..9d2f2cdbd 100644
--- a/redhat/docker/osstw/packages
+++ b/redhat/docker/osstw/packages
@@ -7,6 +7,7 @@ bdftopcf
bind-devel
binutils-devel
bison
+bluez-devel
boost-devel
ccache
cdparanoia
@@ -19,6 +20,7 @@ clucene-core-devel
cmake
createrepo_c
cups-devel
+curl
cyrus-sasl-devel
dbus-1-devel
dbus-1-glib-devel
@@ -29,12 +31,14 @@ doxygen GraphicsMagick
docbook2x
dssi-devel
fdupes
-ffmpeg-devel
+ffmpeg-4-libavcodec-devel
+ffmpeg-4-libavdevice-devel
fftw3-devel
file-devel
flac-devel
flex
font-util
+freeglut-devel
freetype-devel
fribidi-devel
gamin-devel
@@ -43,7 +47,6 @@ giflib-devel
glu-devel
gmime-devel
gmp-devel
-gnokii-devel
gperf xmlto
GraphicsMagick-devel
gsl-devel
@@ -65,8 +68,8 @@ libacl-devel
libart_lgpl-devel
libattr-devel
libavahi-devel
-libavcodec-devel
libblkid-devel
+libboost_python3-devel
libbz2-devel
libcap-devel
libcdio-devel
@@ -87,7 +90,6 @@ libical-devel
libidn-devel
libiw-devel
libjack-devel
-libjasper-devel
liblcms2-devel
liblo-devel
liblrdf-devel
@@ -115,6 +117,7 @@ libraw1394-devel
librsvg-devel
libsamplerate-devel
libSDL-devel
+libsensors4-devel
libsmbclient-devel
libsndfile-devel
libtag-devel
@@ -151,6 +154,7 @@ meanwhile-devel
Mesa-devel
Mesa-libGL-devel
mozilla-nspr-devel
+net-snmp-devel
net-tools
net-tools-deprecated
NetworkManager-devel
@@ -169,15 +173,15 @@ pcsc-lite-devel
perl-PAR-Packer
perl-pcsc
pkcs11-helper-devel
+postgresql
postgresql-devel
-postgresql10
-postgresql10-devel
python-devel
python-gtk-devel
python3-devel
recode
rpcgen
rpm-build
+rpm-devel
rsvg-convert
ruby
ruby-devel
@@ -189,7 +193,17 @@ subversion-devel
sudo
swig
sword-devel
+texlive-adjustbox
+texlive-etoc
+texlive-hanging
+texlive-metafont-bin
+texlive-multirow
+texlive-natbib
texlive-newunicodechar
+texlive-refman
+texlive-sectsty
+texlive-stackengine
+texlive-tocloft
torsocks
transfig
unixODBC-devel
@@ -197,6 +211,7 @@ update-desktop-files
usbutils
utempter-devel
valgrind
+vim
wireless-tools
wv2-devel
xcb-proto-devel
diff --git a/redhat/docker/osstw/rpmmacros b/redhat/docker/osstw/rpmmacros
index 0f4902670..cb1ceaa06 100644
--- a/redhat/docker/osstw/rpmmacros
+++ b/redhat/docker/osstw/rpmmacros
@@ -1,3 +1,4 @@
%dist .osstw
%_smp_mflags -j8
%jobs 8
+%__python %__python2