diff options
author | François Andriot <albator78@libertysurf.fr> | 2024-05-09 20:50:37 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2024-05-09 20:50:37 +0200 |
commit | c6d21f1119dd7eb5a1395a8d4640f837223f1ea3 (patch) | |
tree | 214cd960ed83db6ae7931d46e7f883b966150e01 /redhat/dependencies/avahi-tqt | |
parent | 2af6f1823f0e7b5fd6bac85f95e0881ff7d41506 (diff) | |
download | tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.tar.gz tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.zip |
RPM: initial support for OpenMandriva
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/dependencies/avahi-tqt')
-rw-r--r-- | redhat/dependencies/avahi-tqt/avahi-tqt.spec | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/redhat/dependencies/avahi-tqt/avahi-tqt.spec b/redhat/dependencies/avahi-tqt/avahi-tqt.spec index 30b64effe..94e0955f1 100644 --- a/redhat/dependencies/avahi-tqt/avahi-tqt.spec +++ b/redhat/dependencies/avahi-tqt/avahi-tqt.spec @@ -68,7 +68,7 @@ BuildRequires: gettext-devel BuildRequires: xorg-x11-devel %endif %if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: libxi-devel +BuildRequires: %{_lib}xi-devel %endif %if 0%{?suse_version} >= 1220 || 0%{?rhel} >= 5 || 0%{?fedora} BuildRequires: libXi-devel @@ -86,11 +86,15 @@ BuildRequires: dbus-devel %endif # PCAP support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}cap-devel +%else BuildRequires: libcap-devel +%endif # AVAHI support %if 0%{?mgaversion} || 0%{?mdkversion} -%define avahi_devel libavahi-client-devel +%define avahi_devel %{_lib}avahi-client-devel %endif %if 0%{?suse_version} || 0%{?rhel} || 0%{?fedora} %define avahi_devel avahi-devel @@ -101,9 +105,12 @@ BuildRequires: libcap-devel %if 0%{?rhel} || 0%{?fedora} BuildRequires: expat-devel %endif -%if 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?suse_version} BuildRequires: libexpat-devel %endif +%if 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: %{_lib}expat-devel +%endif # NAS support %if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} @@ -210,7 +217,7 @@ into a TQt main loop application. %build unset QTDIR QTINC QTLIB -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 @@ -222,6 +229,8 @@ fi -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_GCC_VISIBILITY=OFF \ + \ + -DLIB_INSTALL_DIR="%{_libdir}" \ .. %__make %{?_smp_mflags} || %__make |