diff options
author | François Andriot <albator78@libertysurf.fr> | 2017-08-02 17:20:34 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2017-08-02 17:20:34 +0200 |
commit | 86cba2fbb60325518c32cb333c7603f910773e4a (patch) | |
tree | 925ddb8871c09892f6aa8d35aac3dd6616aadd35 /redhat/docker/pclinuxos | |
parent | df20fa92cb84771b6c0a3a0f3fa79af383f80d4d (diff) | |
download | tde-packaging-86cba2fbb60325518c32cb333c7603f910773e4a.tar.gz tde-packaging-86cba2fbb60325518c32cb333c7603f910773e4a.zip |
RPM packaging: add docker build scripts for PCLinuxOS
Diffstat (limited to 'redhat/docker/pclinuxos')
-rw-r--r-- | redhat/docker/pclinuxos/Dockerfile.x86_64 | 32 | ||||
-rwxr-xr-x | redhat/docker/pclinuxos/genla.sh | 63 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/packages.x86_64 | 172 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/rpmbuild.list | 1 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/rpmmacros | 4 |
5 files changed, 272 insertions, 0 deletions
diff --git a/redhat/docker/pclinuxos/Dockerfile.x86_64 b/redhat/docker/pclinuxos/Dockerfile.x86_64 new file mode 100644 index 000000000..6bee4f4e3 --- /dev/null +++ b/redhat/docker/pclinuxos/Dockerfile.x86_64 @@ -0,0 +1,32 @@ +FROM pclinuxos:2017 + +ARG TDE_VERSION=14.0.4 +ARG ARCH=x86_64 + +# Update distribution +RUN apt-get -y update +RUN apt-get -y dist-upgrade + +# Install Trinity build dependencies +ADD packages.${ARCH} /etc/apt/packages +RUN apt-get -y install $(</etc/apt/packages) + +# Add rpmbuild repositories +ADD rpmbuild.list /etc/apt/sources.list.d/rpmbuild.list +RUN sed -i "/etc/apt/sources.list.d/rpmbuild.list" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g" + +# Add non-root user to build packages +RUN rm -rf /home/trinity +RUN useradd -m -s /bin/bash -u 1000 trinity +RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers +ADD rpmmacros /home/trinity/.rpmmacros + +# Fix SUDO configuration +RUN sed -i "/etc/pam.d/sudo" -e "/pam_limits.so/ s|^|#|" + +# Fix missing '.la' files +ADD genla.sh /usr/bin/genla.sh +RUN genla.sh libbluetooth && mv /usr/lib64/libbluetooth.la /lib64 +RUN genla.sh libjpeg +RUN genla.sh liblcms +RUN genla.sh libusb-1.0 && mv /usr/lib64/libusb-1.0.la /lib64 && cp /lib64/libusb-1.0.la /lib64/libusb.la diff --git a/redhat/docker/pclinuxos/genla.sh b/redhat/docker/pclinuxos/genla.sh new file mode 100755 index 000000000..b909b0601 --- /dev/null +++ b/redhat/docker/pclinuxos/genla.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +LIB="$1" +LIBDIR="$(rpm -E %_libdir)" +FILENAME="${LIB}.la" +FILE="${LIBDIR}/${FILENAME}" + +if [ -r "${FILE}" ]; then + echo "Already exists !!! Abort" + exit 1 +fi + +LIBLONG="$(echo ${LIBDIR}/${LIB}.so.*.*)" +LIBSHORT="$(echo ${LIBDIR}/${LIB}.so.?)" + +echo "Library: ${LIBLONG} | ${LIBSHORT}" + + +cat <<EOF >/tmp/$LIB.$$ +# ${FILENAME} - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='${LIBSHORT}' + +# Names of this library. +library_names='${LIBLONG} ${LIBSHORT} ${LIB}.so' + +# The name of the static archive. +old_library='${LIB}.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for ${LIB}. +current=4 +age=2 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='${LIBDIR}' +EOF + +sudo mv "/tmp/$LIB.$$" "${FILE}" diff --git a/redhat/docker/pclinuxos/packages.x86_64 b/redhat/docker/pclinuxos/packages.x86_64 new file mode 100644 index 000000000..fc9ade644 --- /dev/null +++ b/redhat/docker/pclinuxos/packages.x86_64 @@ -0,0 +1,172 @@ +alsa-lib-devel +aspell-devel +audiofile-devel +audit-devel +binutils-devel +bison +boost-devel +ccache +cdparanoia +chmlib-devel +chrpath +cmake +cups-devel +desktop-file-utils +djvulibre +docbook-style-xsl +doxygen +drakconf +dssi-devel +esound-devel +exempi-devel +fdupes +file-devel +firebird-devel +flex +fontconfig-devel +freetype-devel +fribidi-devel +gamin-devel +gcc-c++ +gettext-devel +glib2-devel +gnokii-devel +gnutls-devel +gpgme-devel +gphoto2-devel +GraphicsMagick-devel +gsl-devel +gtk2-devel +gtk+3.0-devel +hspell-devel +htdig +ImageMagick-devel +imake +java-devel +lib64cryptsetup-devel +lib64dvdread-devel +lib64exiv2-devel +lib64gif-devel +lib64inotifytools-devel +lib64iw29-devel +lib64mpcdec-devel +lib64OpenSP5-devel +lib64pkcs11-helper-devel +lib64poppler-devel +lib64readline-devel +lib64sane1-devel +lib64usb1.0-devel +lib64usb-compat0.1-devel +lib64wv2-devel +lib64xaw-devel +lib64xine1.2-devel +lib64yaz-devel +libcap-devel +libcdda-devel +libconfig-devel +libcurl-devel +libffmpeg-devel +libflac-devel +libflac++-devel +libfontenc-devel +libgadu-devel +libgpod-devel +libgstreamer0.10-devel +libical-devel +libice-devel +libjack-devel +libjasper-devel +libjpeg-devel +liblame-devel +liblo-devel +liblrdf-devel +libmad-devel +libmng-devel +libmp4v2-devel +libmtp-devel +libmusicbrainz-devel +libnjb-devel +libnm-util-devel +libofa-devel +libofx-devel +libotr-devel +libpaper-devel +libpng-devel +libpqxx-devel +libpthread-stubs +libpulseaudio-devel +libqalculate-devel +libraw1394-devel +librsvg +librsync-devel +libsmbclient-devel +libsm-devel +libt1lib-devel +libtheora-devel +libudev-devel +libv4l-devel +libvisual-devel +libvorbis-devel +libwmf-devel +libwpd-devel +libx11-devel +libxcb-devel +libxcursor-devel +libxext-devel +libxft-devel +libxi-devel +lib64xine1.2-devel +libxinerama-devel +libxkbfile-devel +libxmu-devel +libxrandr-devel +libxrender-devel +libxscrnsaver-devel +libxslt-devel +libxxf86dga-devel +lirc-devel +lm_sensors-devel +mesaglu-devel +mysql-devel +nas-devel +neon-devel +net-snmp-devel +NetworkManager-glib-devel +ocaml +OpenEXR-devel +openldap-devel +opensc +openslp-devel +pam-devel +perl-devel +pilot-link-devel +postgresql +postgresql-devel +pth-devel +python-devel +python-rpm +recode +rpm-build +rpm-devel +ruby-devel +scons +SDL-devel +speex-devel +sqlite3-devel +sqlite-devel +subversion-devel +sudo +sword-devel +taglib-devel +transfig +udisks2-devel +unixODBC-devel +utempter-devel +valgrind +vim-enhanced +x11-font-util +xscreensaver +xscreensaver-base +xscreensaver-extrusion +xscreensaver-gl +yaz diff --git a/redhat/docker/pclinuxos/rpmbuild.list b/redhat/docker/pclinuxos/rpmbuild.list new file mode 100644 index 000000000..5b838caa9 --- /dev/null +++ b/redhat/docker/pclinuxos/rpmbuild.list @@ -0,0 +1 @@ +rpm file:/home/trinity/rpmbuild RPMS.tde-${TDE_VERSION} ${ARCH} noarch diff --git a/redhat/docker/pclinuxos/rpmmacros b/redhat/docker/pclinuxos/rpmmacros new file mode 100644 index 000000000..6a2891f3f --- /dev/null +++ b/redhat/docker/pclinuxos/rpmmacros @@ -0,0 +1,4 @@ +%dist .pclos2017 +%_smp_mflags -j8 +%jobs 8 +%pclinuxos 2017 |