diff options
author | François Andriot <[email protected]> | 2024-05-09 20:50:37 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2024-05-09 20:50:37 +0200 |
commit | c6d21f1119dd7eb5a1395a8d4640f837223f1ea3 (patch) | |
tree | 214cd960ed83db6ae7931d46e7f883b966150e01 /redhat/libraries/kipi-plugins | |
parent | 2af6f1823f0e7b5fd6bac85f95e0881ff7d41506 (diff) | |
download | tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.tar.gz tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.zip |
RPM: initial support for OpenMandriva
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'redhat/libraries/kipi-plugins')
-rw-r--r-- | redhat/libraries/kipi-plugins/kipi-plugins.spec | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/redhat/libraries/kipi-plugins/kipi-plugins.spec b/redhat/libraries/kipi-plugins/kipi-plugins.spec index a134acca9..68bc75af8 100644 --- a/redhat/libraries/kipi-plugins/kipi-plugins.spec +++ b/redhat/libraries/kipi-plugins/kipi-plugins.spec @@ -79,7 +79,12 @@ BuildRequires: gettext BuildRequires: gcc-c++ # JPEG support -BuildRequires: libjpeg-devel +%if 0%{?mdkver} +%define libjpeg %{_lib}jpeg +%else +%define libjpeg libjpeg +%endif +BuildRequires: %{libjpeg}-devel # EXIV2 %if 0%{?mgaversion} || 0%{?mdkversion} @@ -95,8 +100,12 @@ BuildRequires: libexiv2-devel # GPOD (ipod) support %if 0%{?rhel} == 6 || 0%{?rhel} == 7 || 0%{?rhel} == 8 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} %define with_gpod 1 +%if 0%{?mdkver} +BuildRequires: %{_lib}gpod-devel >= 0.4.2 +%else BuildRequires: libgpod-devel >= 0.4.2 %endif +%endif # LCMS support %if 0%{?suse_version} || 0%{?rhel} >= 7 @@ -107,16 +116,28 @@ BuildRequires: lcms-devel # GPHOTO2 support %if 0%{?rhel} == 4 || 0%{?rhel} == 5 || 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?mdkver} +BuildRequires: %{_lib}gphoto-devel +%else BuildRequires: gphoto2-devel +%endif %else BuildRequires: libgphoto2-devel %endif # TIFF support +%if 0%{?mdkver} +BuildRequires: %{_lib}tiff-devel +%else BuildRequires: libtiff-devel +%endif # XSLT support +%if 0%{?mdkver} +BuildRequires: %{_lib}xslt-devel +%else BuildRequires: libxslt-devel +%endif # MESA support %if 0%{?rhel} || 0%{?fedora} @@ -127,9 +148,13 @@ BuildRequires: mesa-libGLU-devel %if 0%{?pclinuxos} BuildRequires: MesaGLU-devel %else +%if 0%{?mdkver} +BuildRequires: %{_lib}glu-devel +%else BuildRequires: mesaglu-devel %endif %endif +%endif %if 0%{?suse_version} BuildRequires: Mesa-libGL-devel BuildRequires: Mesa-libGLU-devel @@ -201,7 +226,7 @@ PicasaWebExport: Export pictures to Picasa web service %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" %__make -f "admin/Makefile.common" |