From 11b59120b4b653f7915851ada6673e3d38b032f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 15 May 2022 09:14:59 +0200 Subject: [PATCH] RPM: add support for openSuse Leap 15.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/Makefile | 20 +- redhat/applications/amarok/amarok.spec | 5 + redhat/applications/koffice/koffice.spec | 9 +- .../tde-systemsettings.spec | 2 + redhat/applications/tellico/tellico.spec | 5 + .../applications/wlassistant/wlassistant.spec | 5 + redhat/build/install_rpm_package.sh | 2 +- .../dependencies/python-tqt/python-tqt.spec | 5 + redhat/dependencies/sip4-tqt/sip4-tqt.spec | 5 + redhat/docker/oss154/Dockerfile.x86_64 | 29 +++ redhat/docker/oss154/packages | 216 ++++++++++++++++++ redhat/docker/oss154/rpmmacros | 5 + .../brp-check-trinity/brp-check-trinity.spec | 6 +- .../trinity-desktop/trinity-desktop.spec | 11 +- redhat/main/tdeaddons/tdeaddons.spec | 10 +- redhat/main/tdebase/tdebase.spec | 26 +-- redhat/main/tdebindings/tdebindings.spec | 73 ++++-- redhat/main/tdeutils/tdeutils.spec | 5 + 18 files changed, 380 insertions(+), 59 deletions(-) create mode 100644 redhat/docker/oss154/Dockerfile.x86_64 create mode 100644 redhat/docker/oss154/packages create mode 100644 redhat/docker/oss154/rpmmacros diff --git a/redhat/Makefile b/redhat/Makefile index 97fb10fc9..9a74858fa 100644 --- a/redhat/Makefile +++ b/redhat/Makefile @@ -65,7 +65,9 @@ polkit-tqt: tqtinterface dbus-1-tqt $(call buildpkg,dependencies/polkit-tqt) python-tqt: sip4-tqt tdelibs tqscintilla +ifeq (,$(filter $(DIST), .oss154 )) $(call buildpkg,dependencies/python-tqt) +endif sip4-tqt: $(call buildpkg,dependencies/sip4-tqt) @@ -139,12 +141,12 @@ tdewebdev: tdebase tdesdk ### 3rd party libraries and tools brp-check-trinity: -ifneq (,$(filter $(DIST), .oss151 .oss152 .oss153 .osstw )) +ifneq (,$(filter $(DIST), .oss151 .oss152 .oss153 .oss154 .osstw )) $(call buildpkg,3rdparty/brp-check-trinity) endif esound: -ifneq (,$(filter $(DIST), .mga6 .mga7 .mga8 .oss151 .oss152 .oss153 .osstw )) +ifneq (,$(filter $(DIST), .mga6 .mga7 .mga8 .oss151 .oss152 .oss153 .oss154 .osstw )) $(call buildpkg,3rdparty/esound) endif @@ -159,7 +161,7 @@ ifneq (,$(filter $(DIST), .mga6 .mga7 .oss151 .osstw )) endif lcms: -ifneq (,$(filter $(DIST), .el7 .el8 .mga7 .mga8 .oss151 .oss152 .oss153 .osstw )) +ifneq (,$(filter $(DIST), .el7 .el8 .mga7 .mga8 .oss151 .oss152 .oss153 .oss154 .osstw )) $(call buildpkg,3rdparty/lcms) endif @@ -167,7 +169,7 @@ libbeagle: $(call buildpkg,3rdparty/libbeagle) mp4v2: -ifneq (,$(filter $(DIST), .oss151 .oss152 .oss153 .osstw )) +ifneq (,$(filter $(DIST), .oss151 .oss152 .oss153 .oss154 .osstw )) $(call buildpkg,3rdparty/mp4v2) endif @@ -220,10 +222,14 @@ mlt: tqtinterface $(call buildpkg,libraries/mlt) pytdeextensions: tqtinterface python-trinity +ifeq (,$(filter $(DIST), .oss154 )) $(call buildpkg,libraries/pytdeextensions) +endif python-trinity: tqtinterface python-tqt +ifeq (,$(filter $(DIST), .oss154 )) $(call buildpkg,libraries/python-trinity) +endif ### Trinity Applications abakus: tdebase @@ -434,7 +440,7 @@ kpicosim: tdebase $(call buildpkg,applications/kpicosim) kpilot: tdebase tdepim -ifeq (,$(filter $(DIST),.el5 .osstw)) +ifeq (,$(filter $(DIST),.el5 .oss154 .osstw)) $(call buildpkg,applications/kpilot) endif @@ -511,7 +517,7 @@ qalculate-tde: $(call buildpkg,applications/qalculate-tde) qt4-tqt-theme-engine: tdebase -ifeq (,$(filter $(DIST),.el5 .el6 .el8 .oss153 .osstw)) +ifeq (,$(filter $(DIST),.el5 .el6 .el8 .oss153 .oss154 .osstw)) $(call buildpkg,applications/qt4-tqt-theme-engine) endif @@ -536,7 +542,9 @@ tdedocker: tdebase $(call buildpkg,applications/tdedocker) tde-guidance: tdebase pytdeextensions +ifeq (,$(filter $(DIST), .oss154 )) $(call buildpkg,applications/tde-guidance) +endif tdeio-apt: tdebase $(call buildpkg,applications/tdeio-apt) diff --git a/redhat/applications/amarok/amarok.spec b/redhat/applications/amarok/amarok.spec index e2b03ffc1..eee0076ca 100644 --- a/redhat/applications/amarok/amarok.spec +++ b/redhat/applications/amarok/amarok.spec @@ -264,6 +264,10 @@ BuildRequires: rubypick %endif # PYTHON support +%if 0%{?sle_version} >= 150400 +%define python python3 +%define __python %__python3 +%else %if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 %global python python2 %global __python %__python2 @@ -271,6 +275,7 @@ BuildRequires: rubypick %else %global python python %endif +%endif %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel diff --git a/redhat/applications/koffice/koffice.spec b/redhat/applications/koffice/koffice.spec index a27bbc6f0..43b5365eb 100644 --- a/redhat/applications/koffice/koffice.spec +++ b/redhat/applications/koffice/koffice.spec @@ -113,7 +113,11 @@ BuildRequires: libexif-devel BuildRequires: readline-devel # PYTHON support -%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 +%if 0%{?sle_version} >= 150400 +%define with_python 0 +%else +%define with_python 1 +%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1500 || 0%{?mgaversion} >= 8 %global python python2 %global __python %__python2 %global python_sitearch %{python2_sitearch} @@ -123,6 +127,7 @@ BuildRequires: readline-devel %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel +%endif # LCMS support %if 0%{?suse_version} || 0%{?rhel} >= 7 @@ -381,8 +386,10 @@ Requires: perl %{tde_tdeappdir}/*koshell.desktop %{tde_datadir}/apps/kofficewidgets/ %if 0%{?with_kross} +%if 0%{?with_python} %{tde_datadir}/apps/kross/ %{tde_tdelibdir}/krosspython.* +%endif %if 0%{?with_ruby} %{tde_tdelibdir}/krossruby.* %endif diff --git a/redhat/applications/tde-systemsettings/tde-systemsettings.spec b/redhat/applications/tde-systemsettings/tde-systemsettings.spec index 4e6f9a959..c51e46f4c 100644 --- a/redhat/applications/tde-systemsettings/tde-systemsettings.spec +++ b/redhat/applications/tde-systemsettings/tde-systemsettings.spec @@ -84,7 +84,9 @@ BuildRequires: update-desktop-files BuildRequires: brp-check-trinity %endif +%if 0%{?suse_version} == 0 || 0%{?sle_version} <= 150300 Requires: trinity-guidance +%endif %description diff --git a/redhat/applications/tellico/tellico.spec b/redhat/applications/tellico/tellico.spec index ce61b2048..d8e8acc36 100644 --- a/redhat/applications/tellico/tellico.spec +++ b/redhat/applications/tellico/tellico.spec @@ -154,6 +154,10 @@ BuildRequires: libacl-devel BuildRequires: libattr-devel # PYTHON support +%if 0%{?sle_version} >= 150400 +%define python python3 +%define __python %__python3 +%else %if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 %global python python2 %global __python %__python2 @@ -161,6 +165,7 @@ BuildRequires: libattr-devel %else %global python python %endif +%endif %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel diff --git a/redhat/applications/wlassistant/wlassistant.spec b/redhat/applications/wlassistant/wlassistant.spec index 033460cad..2eb075d59 100644 --- a/redhat/applications/wlassistant/wlassistant.spec +++ b/redhat/applications/wlassistant/wlassistant.spec @@ -102,6 +102,10 @@ BuildRequires: gamin-devel %endif # PYTHON support +%if 0%{?sle_version} >= 150400 +%define python python3 +%define __python %__python3 +%else %if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 %global python python2 %global __python %__python2 @@ -109,6 +113,7 @@ BuildRequires: gamin-devel %else %global python python %endif +%endif %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel diff --git a/redhat/build/install_rpm_package.sh b/redhat/build/install_rpm_package.sh index 156d02aec..d70bcc5c0 100755 --- a/redhat/build/install_rpm_package.sh +++ b/redhat/build/install_rpm_package.sh @@ -13,7 +13,7 @@ if [ -x /usr/sbin/urpmi ]; then elif [ -x /usr/bin/dnf ]; then PKGINST="sudo dnf install -y --nogpgcheck" elif [ -x /usr/bin/zypper ]; then - PKGINST="sudo zypper install -y" + PKGINST="sudo zypper install -y --allow-vendor-change" elif [ -x /usr/bin/yum ]; then PKGINST='sudo yum install -y' elif [ -x /usr/bin/apt-get ]; then diff --git a/redhat/dependencies/python-tqt/python-tqt.spec b/redhat/dependencies/python-tqt/python-tqt.spec index 5d8aa43d0..be24592b2 100644 --- a/redhat/dependencies/python-tqt/python-tqt.spec +++ b/redhat/dependencies/python-tqt/python-tqt.spec @@ -71,6 +71,10 @@ BuildRequires: libtqscintilla-devel >= %{?epoch:%{epoch}:}1.7.1 BuildRequires: gcc-c++ # PYTHON support +%if 0%{?sle_version} >= 150400 +%define python python3 +%define __python %__python3 +%else %if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 %global python python2 %global __python %__python2 @@ -79,6 +83,7 @@ BuildRequires: gcc-c++ %global python python %endif %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif BuildRequires: %{python} BuildRequires: %{python}-devel diff --git a/redhat/dependencies/sip4-tqt/sip4-tqt.spec b/redhat/dependencies/sip4-tqt/sip4-tqt.spec index 6830f92d8..a2bf18df4 100644 --- a/redhat/dependencies/sip4-tqt/sip4-tqt.spec +++ b/redhat/dependencies/sip4-tqt/sip4-tqt.spec @@ -82,8 +82,13 @@ BuildRequires: flex %global __python %__python2 %global python_sitearch %{python2_sitearch} %else +%if 0%{?sle_version} >= 150400 +%global python python3 +%global __python %__python3 +%else %global python python %endif +%endif %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel diff --git a/redhat/docker/oss154/Dockerfile.x86_64 b/redhat/docker/oss154/Dockerfile.x86_64 new file mode 100644 index 000000000..4de243e36 --- /dev/null +++ b/redhat/docker/oss154/Dockerfile.x86_64 @@ -0,0 +1,29 @@ +FROM opensuse/leap:15.4 + +ARG TDE_VERSION=14.0.12 +ARG ARCH=x86_64 + +# Add PACKMAN repository +# Install Trinity build dependencies +COPY packages /packages +RUN echo PROXY_ENABLED="YES" >>/etc/sysconfig/proxy \ + && echo HTTP_PROXY="http://proxy:3128/" >>/etc/sysconfig/proxy \ + && zypper ar -f -G -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/ packman \ + && zypper refresh \ + && zypper -n update \ + && zypper -n install -l $(>/etc/sudoers + +USER trinity +COPY rpmmacros /home/trinity/.rpmmacros + +# Add YUM repository for locally built packages +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 diff --git a/redhat/docker/oss154/packages b/redhat/docker/oss154/packages new file mode 100644 index 000000000..aecfd10a2 --- /dev/null +++ b/redhat/docker/oss154/packages @@ -0,0 +1,216 @@ +alsa-devel +aspell +aspell-devel +audiofile-devel +automake +bdftopcf +binutils-devel +bison +brp-check-suse +brp-extract-appdata +ccache +cdparanoia +cdparanoia-devel +chmlib-devel +chrpath +clamav +clamav-devel +cln-devel +clucene-core-devel +cmake +createrepo_c +cups-devel +cyrus-sasl-devel +dbus-1-devel +dbus-1-glib-devel +djvulibre +docbook-utils +docbook-xsl-stylesheets +docbook2x +doxygen GraphicsMagick +dssi-devel +fdupes +ffmpeg-devel +fftw3-devel +file-devel +flac-devel +flex +font-util +freetype-devel +fribidi-devel +gamin-devel +gcc-c++ +giflib-devel +git +glu-devel +gmime-devel +gmime2_6-devel +gmp-devel +gperf xmlto +GraphicsMagick-devel +gsl-devel +gstreamer-devel +gstreamer-plugins-base-devel +gstreamer-devel +gtk2-devel +gtk3-devel +gtk-doc +htdig +html2ps +hunspell-devel +iceauth +ImageMagick-devel +imake +imlib2-devel +intltool +java-1_8_0-openjdk-devel +less +libacl-devel +libao-devel +libart_lgpl-devel +libavahi-devel +libavcodec-devel +libblkid-devel +libboost_python-py3-1_66_0-devel +libboost_system1_66_0-devel +libbz2-devel +libcap-devel +libcdio-devel +libcdio-paranoia-devel +libconfig-devel +libcryptsetup-devel +libcurl-devel +libdb-4_8-devel +libdvdread-devel +libexempi-devel +libexiv2-devel +libfontenc-devel +libgadu-devel +libGeoIP-devel +libgpgme-devel +libgphoto2-devel +libgpod-devel +libgssglue-devel +libical-devel +libICE-devel +libidn-devel +libiw-devel +libjack-devel +libjasper-devel +liblcms2-devel +liblo-devel +liblrdf-devel +libmad-devel +libmng-devel +libmp3lame-devel +libmpcdec-devel +libmtp-devel +libmusicbrainz-devel +libmysqld-devel +libneon-devel +libnjb-devel +libnsl-devel +libofx-devel +libotr-devel +libpaper-devel +libpng16-devel +libpoppler-devel +libpqxx-devel +libpulse-devel +libqalculate-devel +libraw1394-devel +librsvg-devel +libsamplerate-devel +libSDL-devel +libSM-devel +libsmbclient-devel +libsndfile-devel +libtag-devel +libtheora-devel +libtiff-devel +libtirpc-devel +libtool +libtwolame-devel +libudev1 +libudisks2-0-devel +libuuid-devel +libv4l-devel +libvisual-devel +libvorbis-devel +libwmf-devel +libwpd-devel +libXaw-devel +libXdmcp-devel +libxine-devel +libxkbfile-devel +libXpm-devel +libXmu-devel +libXScrnSaver-devel +libxslt-devel +libXt-devel +libXv-devel +libXxf86dga-devel +libXxf86vm-devel +libyaz-devel +libzrtpcpp-devel +lirc-devel +make +makeinfo +meanwhile-devel +Mesa-devel +Mesa-libGL-devel +mozilla-nspr-devel +mysql-devel +net-tools +net-tools-deprecated +NetworkManager-devel +ocaml +openexr-devel +opensc +openslp-devel +opensp-devel +pam-devel +patch +pciutils-devel +pcre-devel +pcsc-lite-devel +perl-PAR-Packer +perl-pcsc +pkcs11-helper-devel +polkit-devel +postgresql10 +postgresql10-devel +python3-devel +python3-sip-devel +recode +rpcgen +rpm-build +rpmlint +rsvg-convert +ruby +ruby-devel +sane-backends-devel +scons +speex-devel +sqlite3-devel +subversion-devel +sudo +swig +sword-devel +torsocks +transfig +unixODBC-devel +update-desktop-files +usbutils +utempter-devel +valgrind +vim +wireless-tools +wv2-devel +xbase-devel +xcb-proto-devel +xorg-x11 +xscreensaver +xscreensaver-data +xscreensaver-data-extra +xz-devel diff --git a/redhat/docker/oss154/rpmmacros b/redhat/docker/oss154/rpmmacros new file mode 100644 index 000000000..9917a9332 --- /dev/null +++ b/redhat/docker/oss154/rpmmacros @@ -0,0 +1,5 @@ +%dist .oss154 +%_smp_mflags -j8 +%jobs 8 +%sle_version 150400 +%_build_insert_debug_package %nil diff --git a/redhat/extras/brp-check-trinity/brp-check-trinity.spec b/redhat/extras/brp-check-trinity/brp-check-trinity.spec index 325f1aef4..cca9786f1 100644 --- a/redhat/extras/brp-check-trinity/brp-check-trinity.spec +++ b/redhat/extras/brp-check-trinity/brp-check-trinity.spec @@ -43,10 +43,14 @@ BuildArch: noarch BuildRequires: update-desktop-files BuildRequires: brp-check-suse +%if 0%{?suse_version} <= 1500 BuildRequires: brp-extract-appdata +%endif Requires: update-desktop-files Requires: brp-check-suse +%if 0%{?suse_version} <= 1500 Requires: brp-extract-appdata +%endif Requires: sed @@ -82,7 +86,7 @@ for i in \ -e "s|applications/kde|applications/tde|g" \ -e "s|KDE|TDE|g" \ -e "s|kde-|tde-|g" \ -%if 0%{?suse_version} == 1550 +%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 -e "s|/usr/share/applications|/opt/trinity/share/applications|g" \ -e "/^for i in/ s|\\\| /\$RPM_BUILD_ROOT/opt/trinity/share/applnk \\\|" \ %endif diff --git a/redhat/extras/trinity-desktop/trinity-desktop.spec b/redhat/extras/trinity-desktop/trinity-desktop.spec index e791ea9d4..06391b49f 100644 --- a/redhat/extras/trinity-desktop/trinity-desktop.spec +++ b/redhat/extras/trinity-desktop/trinity-desktop.spec @@ -165,9 +165,11 @@ Requires: trinity-konversation Requires: trinity-kooldock Requires: trinity-kopete-otr Requires: trinity-kpicosim -%if 0%{?rhel} != 5 +%if 0%{?sle_version} <= 150300 +%if 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?pclinuxos} || 0%{?fedora} || 0%{?rhel} >= 6 Requires: trinity-kpilot %endif +%endif #Requires: trinity-kplayer Requires: trinity-krecipes Requires: trinity-krename @@ -189,9 +191,12 @@ Requires: trinity-kxmleditor Requires: trinity-mathemagics Requires: trinity-mplayerthumbs Requires: trinity-piklab +%if 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?pclinuxos} || 0%{?fedora} || 0%{?rhel} >= 7 +# On RHEL6, polkit is too old Requires: trinity-polkit-agent-tde +%endif Requires: trinity-potracegui -#Requires: trinity-qalculate-tde +Requires: trinity-qalculate-tde # On RHEL, lilypond is not available, so no rosegarden :'-( %if 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?pclinuxos} || 0%{?fedora} Requires: trinity-rosegarden @@ -200,7 +205,9 @@ Requires: trinity-smb4k Requires: trinity-smartcardauth Requires: trinity-soundkonverter Requires: trinity-tastymenu +%if 0%{?sle_version} <= 150300 Requires: trinity-tde-guidance +%endif Requires: trinity-tde-style-baghira Requires: trinity-tde-style-domino Requires: trinity-tde-style-ia-ora diff --git a/redhat/main/tdeaddons/tdeaddons.spec b/redhat/main/tdeaddons/tdeaddons.spec index 858a17b8a..83fda2d77 100644 --- a/redhat/main/tdeaddons/tdeaddons.spec +++ b/redhat/main/tdeaddons/tdeaddons.spec @@ -138,12 +138,17 @@ BuildRequires: db4-devel #%endif # PYTHON2 support +%if 0%{?sle_version} >= 150400 +%define with_python 0 +%else +%define with_python 1 %if 0%{?rhel} >= 7 || 0%{?fedora} >= 30 || 0%{?suse_version} >= 1500 || 0%{?mgaversion} >= 7 %global python python2 %global __python %__python2 %else %global python python %endif +%endif Requires: trinity-atlantikdesigner = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-kaddressbook-plugins = %{?epoch:%{epoch}:}%{version}-%{release} @@ -395,7 +400,9 @@ controls XMMS, install the xmms-kde-trinity package. Summary: scripts for KNewsTicker, the Trinity news ticker Group: Applications/Utilities Requires: perl +%if 0%{with_python} Requires: %{python} +%endif #Requires: libfinance-quote-perl #Requires: libmime-perl #Requires: libnews-nntpclient-perl @@ -436,7 +443,9 @@ Requires: %{_lib}jpeg62 %if 0%{?suse_version} == 1230 Requires: libjpeg8 %endif +%if 0%{with_python} Requires: %{python} +%endif Requires: rsync #Requires: unison Requires: trinity-konqueror @@ -675,7 +684,6 @@ sed -i "knewsticker-scripts/sportscores.py" \ -e "s|env python|env %{python}|" %endif - %build unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" diff --git a/redhat/main/tdebase/tdebase.spec b/redhat/main/tdebase/tdebase.spec index 165c11a5b..5737e230b 100644 --- a/redhat/main/tdebase/tdebase.spec +++ b/redhat/main/tdebase/tdebase.spec @@ -445,7 +445,7 @@ Requires: hicolor-icon-theme-branding %define tde_starticon /usr/share/icons/hicolor/scalable/apps/distributor.svg %endif -# OpenSuse 15.0 Theme +# OpenSuse 15.x Theme %if "%{?suse_version}" == "1500" Requires: wallpaper-branding %define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg @@ -453,30 +453,6 @@ Requires: hicolor-icon-theme-branding %define tde_starticon /usr/share/icons/hicolor/scalable/apps/distributor.svg %endif -# OpenSuse 15.1 Theme -%if "%{?suse_version}" == "1510" -Requires: wallpaper-branding -%define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg -Requires: hicolor-icon-theme-branding -%define tde_starticon /usr/share/icons/hicolor/scalable/apps/distributor.svg -%endif - -# OpenSuse 15.2 Theme -%if "%{?suse_version}" == "1520" -Requires: wallpaper-branding -%define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg -Requires: hicolor-icon-theme-branding -%define tde_starticon /usr/share/icons/hicolor/scalable/apps/distributor.svg -%endif - -# OpenSuse 15.3 Theme -%if "%{?suse_version}" == "1530" -Requires: wallpaper-branding -%define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg -Requires: hicolor-icon-theme-branding -%define tde_starticon /usr/share/icons/hicolor/scalable/apps/distributor.svg -%endif - # OpenSuse TW Theme %if "%{?suse_version}" == "1550" Requires: wallpaper-branding diff --git a/redhat/main/tdebindings/tdebindings.spec b/redhat/main/tdebindings/tdebindings.spec index 883f47711..59baee29d 100644 --- a/redhat/main/tdebindings/tdebindings.spec +++ b/redhat/main/tdebindings/tdebindings.spec @@ -169,7 +169,11 @@ BuildRequires: Mesa-libGLU-devel %endif # PYTHON support -%if 0%{?rhel} >= 7 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1500 || 0%{?mgaversion} >= 7 +%if 0%{?sle_version} >= 150400 +%define with_python 0 +%else +%define with_python 1 +%if 0%{?rhel} >= 7 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 7 %global python python2 %global __python %__python2 %global python_sitearch %{python2_sitearch} @@ -179,6 +183,7 @@ BuildRequires: Mesa-libGLU-devel %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} BuildRequires: %{python} BuildRequires: %{python}-devel +%endif ## ruby BuildRequires: ruby-devel >= 1.8 @@ -264,7 +269,7 @@ BuildRequires: java-1.6.0-openjdk-devel %endif %endif %if 0%{?pclinuxos} == 0 -%define _with_java --with-java=%{java_home} +%define with_java 1 %endif ## Perl @@ -276,24 +281,24 @@ BuildRequires: perl-devel ## QScintilla BuildRequires: libtqscintilla-devel >= %{?tde_epoch:%{tde_epoch}:}1.7.1 -%define _enable_qscintilla --enable-qscintilla +%define with_qscintilla 1 Obsoletes: trinity-kdebindings < %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-kdebindings = %{?epoch:%{epoch}:}%{version}-%{release} # Metapackage requires -%if "%{?_with_java}" != "" +%if 0%{?with_java} Requires: trinity-tdebindings-java = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: trinity-juic = %{?epoch:%{epoch}:}%{version}-%{release} %endif Requires: trinity-libsmoketqt = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libsmoketde = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-dcop = %{?epoch:%{epoch}:}%{version}-%{release} +%if 0%{with_python} Requires: python-dcop = %{?epoch:%{epoch}:}%{version}-%{release} +%endif Requires: trinity-libkjsembed1 = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-kjscmd = %{?epoch:%{epoch}:}%{version}-%{release} -%if "%{?_with_java}" != "" -Requires: trinity-juic = %{?epoch:%{epoch}:}%{version}-%{release} -%endif Requires: trinity-libkorundum0-ruby = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libqt0-ruby = %{?epoch:%{epoch}:}%{version}-%{release} @@ -327,7 +332,8 @@ This package is part of the official TDE bindings module. ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libdcop3-java Summary: DCOP bindings for Java [Trinity] Group: System/Libraries @@ -344,11 +350,13 @@ This package is part of the official TDE bindings module. %files -n trinity-libdcop3-java %defattr(-,root,root,-) %{tde_libdir}/java/org/ + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libdcop3-java-devel Summary: DCOP bindings for Java (dcopidl2java program) [Trinity] Group: Development/Languages/Java @@ -365,11 +373,13 @@ This package is part of the official TDE bindings module. %files -n trinity-libdcop3-java-devel %defattr(-,root,root,-) %{tde_bindir}/dcopidl2java + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libdcop3-jni Summary: DCOP bindings for Java ( Native libraries ) [Trinity] Group: System/Libraries @@ -386,11 +396,13 @@ This package is part of the official TDE bindings module. %defattr(-,root,root,-) %{tde_libdir}/libjavadcop.la %{tde_libdir}/libjavadcop.so + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libqt3-java Summary: Java bindings for Qt [Trinity] Group: System/Libraries @@ -412,11 +424,13 @@ This package is part of the official TDE bindings module. %defattr(-,root,root,-) %{tde_libdir}/java/qtjava*.jar %{tde_tdedocdir}/HTML/en/javalib/ + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libtqt3-jni Summary: Java bindings for TQt ( Native libraries ) [Trinity] Group: System/Libraries @@ -438,11 +452,13 @@ This package is part of the official TDE bindings module. %{tde_libdir}/jni/lib*qtjava.la %{tde_libdir}/jni/lib*qtjava.so.* %doc qtjava/ChangeLog + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libtqt3-jni-devel Summary: Development files fo Java bindings for TQt ( Native libraries ) [Trinity] Group: Development/Languages/Java @@ -460,11 +476,13 @@ This package is part of the official TDE bindings module. %defattr(-,root,root,-) %{tde_libdir}/lib*qtjavasupport.so %{tde_libdir}/jni/lib*qtjava.so + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libtrinity-java Summary: Tdelibs bindings for Java [Trinity] Group: System/Libraries @@ -484,11 +502,13 @@ This package is part of the official TDE bindings module. %files -n trinity-libtrinity-java %defattr(-,root,root,-) %{tde_libdir}/java/koala*.jar + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libtrinity-jni Summary: Tdelibs bindings for java ( Native libraries ) [Trinity] Group: System/Libraries @@ -505,11 +525,13 @@ This package is part of the official TDE bindings module. %{tde_libdir}/jni/libtdejava.la %{tde_libdir}/jni/libtdejava.so.* %doc tdejava/ChangeLog + %endif ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} + %package -n trinity-libtrinity-jni-devel Summary: Development files for tdelibs bindings for java ( Native libraries ) [Trinity] Group: Development/Languages/Java @@ -523,6 +545,7 @@ This package is part of the official TDE bindings module. %files -n trinity-libtrinity-jni-devel %defattr(-,root,root,-) %{tde_libdir}/jni/libtdejava.so + %endif ########## @@ -648,6 +671,8 @@ Perl bindings to the DCOP interprocess communication protocol used by TDE ########## +%if 0%{with_python} + %package -n python-dcop Summary: DCOP bindings for Python Group: System/Libraries @@ -670,6 +695,8 @@ This package is part of the official TDE bindings module. %{python_sitearch}/pcop.so %{python_sitearch}/pydcop.py* +%endif + ########## %package -n trinity-libkjsembed1 @@ -760,7 +787,7 @@ This package is part of the official TDE bindings module. ########## -%if "%{?_with_java}" != "" +%if 0%{?with_java} %package -n trinity-juic Summary: The Qt Java UI Compiler Group: Development/Languages/Java @@ -1000,14 +1027,14 @@ Provides: trinity-kdebindings-devel = %{?epoch:%{epoch}:}%{version}-%{release} # Metapackage Requires: trinity-libsmoketqt-devel = %{?epoch:%{epoch}:}%{version}-%{release} -%if "%{?_with_java}" != "" +%if 0%{?with_java} Requires: trinity-libdcop3-java-devel = %{?epoch:%{epoch}:}%{version}-%{release} %endif Requires: trinity-libsmoketde-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libkjsembed-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libxparts-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libdcop-c-devel = %{?epoch:%{epoch}:}%{version}-%{release} -%if "%{?_with_java}" != "" +%if 0%{?with_java} Requires: trinity-libtqt3-jni-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: trinity-libtrinity-jni-devel = %{?epoch:%{epoch}:}%{version}-%{release} %endif @@ -1125,10 +1152,12 @@ EXTRA_INCLUDES="/usr/include/ruby-%{rb_ver}:/usr/include/ruby-%{rb_ver}/%{_targe \ --with-extra-includes=%{_includedir}/tqscintilla:${EXTRA_INCLUDES} \ --with-extra-libs=%{tde_libdir} \ +%if 0%{with_python} --with-pythondir=%{_usr} \ +%endif \ - %{?_with_java} %{!?_with_java:--without-java} \ - %{?_enable_qscintilla} %{!?_enable_qscintilla:--disable-qscintilla} + %{?with_java:--with-java=%{java_home}} %{!?with_java:--without-java} \ + %{?with_qscintilla:--enable-qscintilla} %{!?with_qscintilla:--disable-qscintilla} # Build dcopperl with specific options pushd dcopperl @@ -1154,7 +1183,7 @@ export PATH="%{tde_bindir}:${PATH}" find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' -%if "%{?_with_java}" != "" +%if 0%{?with_java} # Installs juic %__install -D -m 755 qtjava/designer/juic/bin/juic %{?buildroot}%{tde_bindir}/juic %__install -d -m 755 %{?buildroot}%{tde_datadir}/juic/common diff --git a/redhat/main/tdeutils/tdeutils.spec b/redhat/main/tdeutils/tdeutils.spec index 0975736dd..a482ce2cb 100644 --- a/redhat/main/tdeutils/tdeutils.spec +++ b/redhat/main/tdeutils/tdeutils.spec @@ -84,6 +84,10 @@ BuildRequires: net-snmp-devel BuildRequires: gmp-devel # PYTHON support +%if 0%{?sle_version} >= 150400 +%define python python3 +%define __python %__python3 +%else %if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 %define python python2 %define __python %__python2 @@ -91,6 +95,7 @@ BuildRequires: gmp-devel %else %define python python %endif +%endif BuildRequires: %{python} BuildRequires: %{python}-devel