summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/libksquirrel/libksquirrel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/libraries/libksquirrel/libksquirrel.spec')
-rw-r--r--redhat/libraries/libksquirrel/libksquirrel.spec29
1 files changed, 26 insertions, 3 deletions
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