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/libraries/libksquirrel/libksquirrel.spec | |
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/libraries/libksquirrel/libksquirrel.spec')
-rw-r--r-- | redhat/libraries/libksquirrel/libksquirrel.spec | 29 |
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 |