diff options
Diffstat (limited to 'redhat/core/tdelibs/tdelibs.spec')
-rw-r--r-- | redhat/core/tdelibs/tdelibs.spec | 88 |
1 files changed, 72 insertions, 16 deletions
diff --git a/redhat/core/tdelibs/tdelibs.spec b/redhat/core/tdelibs/tdelibs.spec index e66e5d75c..df2eaf1d3 100644 --- a/redhat/core/tdelibs/tdelibs.spec +++ b/redhat/core/tdelibs/tdelibs.spec @@ -22,7 +22,7 @@ # TDE variables %define tde_epoch 2 %if "%{?tde_version}" == "" -%define tde_version 14.1.0 +%define tde_version 14.1.2 %endif %define tde_pkg tdelibs %define tde_prefix /opt/trinity @@ -105,25 +105,49 @@ BuildRequires: brp-check-trinity BuildRequires: krb5-devel # XSLT support +%if 0%{?mdkver} +BuildRequires: %{_lib}xslt-devel +%else BuildRequires: libxslt-devel +%endif # ALSA support -BuildRequires: alsa-lib-devel +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}asound-devel +%else +BuildRequires: alsa-lib-devel +%endif # IDN support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}idn-devel +%else BuildRequires: libidn-devel +%endif # CUPS support BuildRequires: cups-devel # TIFF support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}tiff-devel +%else BuildRequires: libtiff-devel +%endif # OPENSSL support +%if 0%{?mdkver} +BuildRequires: %{_lib}openssl-devel +%else BuildRequires: openssl-devel +%endif # ACL support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}acl-devel +%else BuildRequires: libacl-devel +%endif # GLIB2 support BuildRequires: glib2-devel @@ -148,8 +172,12 @@ BuildRequires: gamin-devel # PCRE support %if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %define with_pcre 1 +%if 0%{?mgaversion} >= 9 +BuildRequires: %{_lib}pcre-devel +%else BuildRequires: pcre-devel %endif +%endif # INOTIFY support %if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} @@ -214,7 +242,12 @@ Requires: avahi # OPENEXR support %if 0%{?rhel} >=6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %define with_openexr 1 +%if 0%{?mdkver} +BuildRequires: %{_lib}openexr-devel +%else BuildRequires: OpenEXR-devel +%endif + %if 0%{?pclinuxos} BuildRequires: libpthread-stubs %endif @@ -241,10 +274,12 @@ BuildRequires: xorg-x11-devel %endif # ICEAUTH -%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} >= 1220 || 0%{?fedora} >= 34 +%if 0%{?fedora} >= 34 || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?rhel} >= 9 || 0%{?suse_version} >= 1220 Requires: iceauth BuildRequires: iceauth %endif + +# Xorg %if 0%{?rhel} >= 5 || ( 0%{?fedora} && 0%{?fedora} <= 33 ) Requires: xorg-x11-server-utils BuildRequires: xorg-x11-server-utils @@ -276,8 +311,8 @@ Requires: ca-certificates %define cacert %{_sysconfdir}/ssl/certs/ca-certificates.crt %endif %endif -%if 0%{?mgaversion} || 0%{?mdkversion} -%if 0%{?pclinuxos} || 0%{?mgaversion} >= 8 +%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?mdkver} +%if 0%{?pclinuxos} || 0%{?mgaversion} >= 8 || 0%{?mdkver} Requires: rootcerts %define cacert %{_sysconfdir}/pki/tls/certs/ca-bundle.crt %else @@ -322,22 +357,26 @@ Requires: %{cacert} %define xt_devel libXt-devel %endif %if 0%{?mgaversion} || 0%{?mdkversion} -%define xt_devel libxt-devel +%define xt_devel %{_lib}xt-devel %endif %{?xt_devel:BuildRequires: %{xt_devel}} ### New features in TDE R14 # LIBMAGIC support +%if 0%{?mdkver} +BuildRequires: %{_lib}magic-devel +%else %if 0%{?rhel} != 5 BuildRequires: file-devel %endif +%endif # NETWORKMANAGER support %if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?suse_version} %define with_nm 1 %if 0%{?mgaversion} || 0%{?mdkversion} -%if 0%{?mgaversion} != 8 +%if 0%{?mgaversion} && 0%{?mgaversion} <= 7 BuildRequires: %{_lib}nm-util-devel %endif %endif @@ -356,8 +395,12 @@ BuildRequires: NetworkManager-devel # UDEV support %if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 6 %define with_tdehwlib 1 +%if 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: %{_lib}udev-devel +%else BuildRequires: libudev-devel %endif +%endif # HAL support %if 0%{?rhel} == 5 @@ -377,15 +420,23 @@ Requires: udisks %if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 7 %define with_udisks2 1 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 -BuildRequires: libudisks2-devel -%else +%define udisks2 udisks2 +%define udisks2_devel libudisks2-devel +%endif %if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150300 -BuildRequires: libudisks2-0-devel -%else -BuildRequires: udisks2-devel +%define udisks2 udisks2 +%define udisks2_devel libudisks2-0-devel %endif +%if 0%{?mdkversion} || 0%{?mgaversion} +%define udisks2 udisks2 +%define udisks2_devel udisks2-devel %endif -Requires: udisks2 +%if 0%{?mdkver} +%define udisks2 udisks +%define udisks2_devel %{_lib}udisks-devel +%endif +Requires: %{udisks2} +BuildRequires: %{udisks2_devel} %endif # DEVICEKIT POWER support @@ -443,7 +494,12 @@ BuildRequires: libr-devel >= 0.6.0 %endif # ATTR support -BuildRequires: libattr-devel +%if 0%{?mgaversion} || 0%{?mdkversion} +%define libattr_devel %{_lib}attr-devel +%else +%define libattr_devel libattr-devel +%endif +BuildRequires: %{libattr_devel} # INTLTOOL support BuildRequires: intltool @@ -593,7 +649,7 @@ Requires: libtqt3-mt-devel >= 3.5.0 Requires: libtqt4-devel = %{tde_epoch}:4.2.0 Requires: trinity-arts-devel >= %{tde_epoch}:1.5.10 Requires: libart_lgpl-devel -Requires: libattr-devel +Requires: %{libattr_devel} Requires: intltool %{?xcomposite_devel:Requires: %{xcomposite_devel}} %{?xt_devel:Requires: %{xt_devel}} @@ -647,7 +703,7 @@ fi export TDEDIR="%{tde_prefix}" -if ! rpm -E %%cmake|grep -q "cd build"; then +if ! rpm -E %%cmake|grep -e 'cd build\|cd ${CMAKE_BUILD_DIR:-build}'; then %__mkdir_p build cd build fi |