From c6d21f1119dd7eb5a1395a8d4640f837223f1ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Thu, 9 May 2024 20:50:37 +0200 Subject: RPM: initial support for OpenMandriva MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/libraries/libksquirrel/libksquirrel.spec | 29 ++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'redhat/libraries/libksquirrel/libksquirrel.spec') diff --git a/redhat/libraries/libksquirrel/libksquirrel.spec b/redhat/libraries/libksquirrel/libksquirrel.spec index ee02ee22e..8168d4711 100644 --- a/redhat/libraries/libksquirrel/libksquirrel.spec +++ b/redhat/libraries/libksquirrel/libksquirrel.spec @@ -92,20 +92,36 @@ BuildRequires: gettext BuildRequires: gettext-devel # OPENEXR support +%if 0%{?mdkver} +BuildRequires: %{_lib}openexr-devel +%else BuildRequires: OpenEXR-devel +%endif # TIFF support +%if 0%{?mdkver} +BuildRequires: %{_lib}tiff-devel +%else BuildRequires: libtiff-devel +%endif # GIF support %if 0%{?suse_version} || 0%{?fedora} >= 28 || 0%{?rhel} >= 8 -BuildRequires: giflib-devel +BuildRequires: giflib-devel +%else +%if 0%{?mdkver} +BuildRequires: %{_lib}gif-devel %else -BuildRequires: libungif-devel +BuildRequires: libungif-devel +%endif %endif # MNG support +%if 0%{?mdkver} +BuildRequires: %{_lib}mng-devel +%else BuildRequires: libmng-devel +%endif # DJVU support %if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} @@ -133,6 +149,9 @@ BuildRequires: librsvg2 BuildRequires: librsvg2-tools %endif %if 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?mdkver} +BuildRequires: %{_lib}rsvg2-devel +%endif BuildRequires: librsvg %endif %if 0%{?suse_version} @@ -170,7 +189,11 @@ BuildRequires: freetype-devel %endif # WMF support +%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?pclinuxos} +BuildRequires: %{_lib}wmf-devel +%else BuildRequires: libwmf-devel +%endif # XML2 support BuildRequires: libxml2-devel @@ -554,7 +577,7 @@ unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" -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 -- cgit v1.2.1