RPM: update build scripts for pclinuxos

Signed-off-by: François Andriot <albator78@libertysurf.fr>
pull/257/head
François Andriot 2 years ago
parent e066391833
commit ae2a5ca1f2

@ -80,7 +80,7 @@ BuildRequires: openssl-devel
BuildRequires: libxslt-devel
# YAZ support
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?suse_version}
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?pclinuxos} || 0%{?suse_version}
BuildRequires: libyaz-devel
%endif

@ -246,7 +246,9 @@ BuildRequires: wv2-devel
# MESA support
%if 0%{?mgaversion} || 0%{?mdkversion}
%if 0%{?pclinuxos} == 0
BuildRequires: %{_lib}mesagl-devel
%endif
BuildRequires: %{_lib}mesaglu1-devel
%endif
%if 0%{?fedora} || 0%{?rhel}

@ -220,14 +220,10 @@ documentation.
%{tde_datadir}/apps/tellico/*.xml
%{tde_datadir}/apps/tellico/*.png
%{tde_datadir}/apps/tellico/entry-templates
%if 0%{?rhel} == 7 || 0%{?suse_version}
%{tde_datadir}/apps/tellico/*.py*
%if 0%{?rhel} == 7
%if 0%{?rhel} == 7 || 0%{?mgaversion} >= 8
%{tde_datadir}/apps/tellico/__pycache__/
%endif
%else
%pycached %{tde_datadir}/apps/tellico/*.py
%endif
%{tde_datadir}/apps/tellico/pics
%{tde_datadir}/apps/tellico/report-templates
%{tde_datadir}/apps/tellico/tellico.dtd

@ -191,7 +191,7 @@ or can be run as standalone applications.
%{tde_datadir}/apps/guidance/
%{tde_tdeappdir}/*.desktop
%{tde_datadir}/icons/crystalsvg/*/*/*.png
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/%{name}/SMBShareSelectDialog.py*
%{python_sitearch}/%{name}/SimpleCommandRunner.py*
%{python_sitearch}/%{name}/fuser.py*
@ -259,7 +259,7 @@ Guidance configuration tools.
%files backends
%defattr(-,root,root,-)
%dir %{python_sitearch}/%{name}
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/%{name}/MicroHAL.py*
%{python_sitearch}/%{name}/drivedetect.py*
%{python_sitearch}/%{name}/wineread.py*
@ -307,7 +307,7 @@ suspend using HAL.
%files powermanager
%defattr(-,root,root,-)
%{tde_bindir}/guidance-power-manager
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/%{name}/MicroHAL.py*
%{python_sitearch}/%{name}/guidance-power-manager.py*
%{python_sitearch}/%{name}/powermanage.py*

@ -686,7 +686,7 @@ This package is part of the official TDE bindings module.
%defattr(-,root,root,-)
%{python_sitearch}/pcop.la
%{python_sitearch}/pcop.so
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/pydcop.py*
%if 0%{?rhel} == 7
%{python_sitearch}/__pycache__/pydcop.*.pyc

@ -140,7 +140,7 @@ same way in both languages (with syntax differences, of course)
%defattr(-,root,root,-)
%doc NEWS README
%dir %{python_sitearch}/PyTQt
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/PyTQt/__init__.py*
%if 0%{?rhel} == 7
%{python_sitearch}/PyTQt/__pycache__/__init__.*.pyc
@ -230,7 +230,7 @@ packages based on them, like PyTDE.
%files -n pytqt-devel
%defattr(-,root,root,-)
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/PyTQt/pytqtconfig.py*
%if 0%{?rhel} == 7
%{python_sitearch}/PyTQt/__pycache__/pytqtconfig.*.pyc

@ -111,7 +111,7 @@ specificity towards C++ and Python.
%files -n sip4-tqt
%defattr(-,root,root,-)
%{python_sitearch}/sip_tqt.so
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/sip_tqt_config.py*
%{python_sitearch}/sip_tqt_distutils.py*
%if 0%{?rhel} == 7

@ -22,13 +22,13 @@ gawk
gcrypt
gdk-pixbuf2.0
glibc
glibc-devel
gnupg
gnutls
grep
gzip
icu
icu69-data
icu71-data
info-install
kernel-userspace-headers
krb5
@ -39,7 +39,6 @@ lib64apt-pkg0
lib64assuan0
lib64attr1
lib64audit1
lib64audit-devel
lib64blkid1
lib64brotlicommon1
lib64brotlidec1
@ -69,8 +68,12 @@ lib64glib2.0_0
lib64gmp10
lib64gnutls30
lib64gpg-error0
libgpg-error-common
lib64gsasl
lib64gudev1.0_0
lib64icu69
lib64icu71
lib64idn11
lib64idn2_0
lib64intl8
lib64iso9660_7
@ -86,6 +89,7 @@ lib64cap-ng0
lib64lua5.1
lib64lzma5
lib64magic1
lib64mnl0
lib64mount1
lib64mpfr6
lib64ncurses5
@ -97,11 +101,11 @@ lib64notify4
lib64npth0
lib64nspr4
lib64nss3
lib64ntlm
lib64openssl1.0.0
lib64openssl1.1.0
lib64opts25
lib64pam0
lib64pam-devel
lib64pam_userpass1
lib64pcre1
lib64pcre2_0
@ -110,13 +114,15 @@ lib64png16_16
lib64png3
lib64popt0
lib64psl5
lib64python3.6
lib64python3.10
lib64readline7
lib64readline8
lib64rpm1
lib64rtmp1
lib64sasl2
lib64secret1_0
lib64selinux
lib64sharpyuv0
lib64sigsegv2
lib64smartcols1
lib64sqlite3_0
@ -127,6 +133,7 @@ lib64tiff3
lib64tiff5
lib64tirpc3
lib64udev0
lib64udev
lib64unbound8
lib64unistring2
lib64usb1.0_0
@ -137,7 +144,6 @@ lib64webp7
lib64x11_6
lib64xau6
lib64xcrypt1
lib64xcrypt-devel
lib64xdmcp6
lib64xml2_2
lib64zstd1
@ -147,6 +153,7 @@ libnotify
libstdc++6
libtirpc
libxcb
lsb-release
makedev
mktemp
multiarch-utils
@ -158,6 +165,7 @@ openssl
p11-kit
pam
pam_tcb
patch
perl
perl-base
perl-File-Sync
@ -169,6 +177,7 @@ popt-data
procps
publicsuffix-list-dafsa
python3
python3-rpm-macros
rmt
rootcerts
rpm

@ -1,7 +1,7 @@
#!/bin/bash -ex
NAME="pclinuxos"
VERSION="${1:-2021}" # E.g: '2020'
VERSION="${1:-2023}" # E.g: '2020'
IMAGE="${NAME}:${VERSION}"
INSTALLROOT="/dev/shm/${IMAGE}"
@ -29,19 +29,17 @@ sudo mount --bind "/dev" "${INSTALLROOT}/dev"
sudo mkdir -p "${INSTALLROOT}/var/lib/rpm"
sudo rpmdb --initdb --root="${INSTALLROOT}"
sudo rpm -Uvh --noscripts --root="${INSTALLROOT}" "/dev/shm/packages/"*".rpm"
# Fix lzma library location
sudo mv "${INSTALLROOT}/lib/liblzma."* "${INSTALLROOT}/lib64"
sudo rpm -Uvh --noscripts --nodeps --root="${INSTALLROOT}" "/dev/shm/packages/"*".rpm"
# Réinstall distro from inside chroot
sudo mount --bind "/dev/shm" "${INSTALLROOT}/dev/shm"
sudo rm -rf "${INSTALLROOT}/var/lib/rpm"
sudo chroot "${INSTALLROOT}" rpmdb --initdb
sudo chroot "${INSTALLROOT}" rpm -Uvh "/dev/shm/packages/"*".rpm"
sudo chroot "${INSTALLROOT}" rpm -Uvh --nodeps "/dev/shm/packages/"*".rpm"
sudo cp "/etc/resolv.conf" "${INSTALLROOT}/etc/resolv.conf"
sudo chroot "${INSTALLROOT}" apt-get -y update
sudo chroot "${INSTALLROOT}" apt-get -y --fix-broken install
sudo chroot "${INSTALLROOT}" apt-get -y upgrade
sudo umount "${INSTALLROOT}/dev/shm"
@ -52,7 +50,4 @@ sudo tar -C "${INSTALLROOT}" -c . | docker import - "${IMAGE}"
docker run -ti --rm "${IMAGE}" ls -l
sudo rm -rf "${INSTALLROOT}"
docker image save "${IMAGE}" >"${IMAGE}.tar"
rm -f "${IMAGE}.tar.gz"
pigz -9 "${IMAGE}.tar"
mv -vf "${IMAGE}.tar.gz" "${HOME}/tde/obs"
docker image save "${IMAGE}" | pigz -9 >"${HOME}/tde/docker/${IMAGE}.tar.gz"

@ -1,4 +1,4 @@
FROM pclinuxos:2021
FROM pclinuxos:2023
ARG TDE_VERSION=14.1.0
ARG ARCH=x86_64
@ -6,8 +6,8 @@ ARG ARCH=x86_64
# Update distribution
# Install Trinity build dependencies
COPY packages.${ARCH} /packages
RUN apt-get -y update \
&& apt-get -y install glibc \
RUN set -x \
&& apt-get -y update \
&& apt-get -y dist-upgrade \
&& apt-get -y install $(</packages)
@ -56,3 +56,8 @@ RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPM
RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPMS/core/release/html2ps-2.0-3.b7.8.mga8.src.rpm \
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/html2ps.spec \
&& sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/html2ps-2*.rpm
RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPMS/core/updates/heimdal-7.7.1-1.3.mga8.src.rpm \
&& sed -i ${HOME}/rpmbuild/SPECS/heimdal.spec -e "s|%autopatch|%patch1|" -e "/Conflicts: krb5-devel/ s|^|#|" \
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/heimdal.spec \
&& sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/heimdal-{devel,libs}-7*.rpm

@ -65,6 +65,7 @@ lib64gstreamer-plugins-base1.0-devel
lib64idn-devel
lib64inotifytools-devel
lib64iw29-devel
lib64jack-devel
lib64nm-devel
lib64mpcdec-devel
lib64OpenSP5-devel
@ -158,6 +159,7 @@ net-snmp-devel
ocaml
OpenEXR-devel
openldap-devel
openldap-servers
opensc
openslp-devel
pam-devel
@ -168,17 +170,17 @@ perl-PAR-Packer
perl-pcsc-perl
pilot-link-devel
pkgconfig(pygtk-2.0)
popt-devel
postgresql
postgresql-devel
ppp
pth-devel
python3
python-devel
python3-devel
python-rpm
qt4-devel
recode
rpm-build
rpm-devel
ruby-devel
scons
SDL-devel

@ -91,7 +91,7 @@ from tdeio, tdejs, tdehtml and tdeprint.
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{python_sitearch}/*.so
%if 0%{?rhel} == 7 || 0%{?suse_version}
%if 0%{?pclinuxos} || 0%{?rhel} == 7 || 0%{?suse_version}
%{python_sitearch}/dcopexport.py*
%{python_sitearch}/dcopext.py*
%{python_sitearch}/pytdeconfig.py*

Loading…
Cancel
Save