Accepting request 337929 from KDE:Extra
- Don't buildrequire marble-devel when libkgeomap isn't built - Align build of Leap 42.1 with the one in Tumbleweed (do not build libkface3 and libkgeomap2). OBS-URL: https://build.opensuse.org/request/show/337929 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/digikam?expand=0&rev=141
This commit is contained in:
commit
38e949cb32
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 11 12:55:49 UTC 2015 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
- Don't buildrequire marble-devel when libkgeomap isn't built
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 6 13:44:26 UTC 2015 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Align build of Leap 42.1 with the one in Tumbleweed (do not build
|
||||||
|
libkface3 and libkgeomap2).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 9 09:48:14 UTC 2015 - nico.kruber@gmail.com
|
Wed Sep 9 09:48:14 UTC 2015 - nico.kruber@gmail.com
|
||||||
|
|
||||||
|
34
digikam.spec
34
digikam.spec
@ -44,7 +44,8 @@ BuildRequires: flex
|
|||||||
BuildRequires: gdk-pixbuf-devel
|
BuildRequires: gdk-pixbuf-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libxslt-devel
|
BuildRequires: libxslt-devel
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1320 || 0%{?is_opensuse}
|
||||||
|
# We want libkgeomap on openSUSE 13.2+ and Leap, which is 1315 && is_opensuse
|
||||||
BuildRequires: libkgeomap-devel
|
BuildRequires: libkgeomap-devel
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1310
|
%if 0%{?suse_version} > 1310
|
||||||
@ -77,7 +78,8 @@ BuildRequires: libkqoauth-devel
|
|||||||
BuildRequires: libMagick++-devel
|
BuildRequires: libMagick++-devel
|
||||||
BuildRequires: libksane-devel
|
BuildRequires: libksane-devel
|
||||||
BuildRequires: libkvkontakte-devel
|
BuildRequires: libkvkontakte-devel
|
||||||
%if 0%{?suse_version} < 1320
|
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
|
||||||
|
# from 13.2 upwards, and also Leap 42.1 (1315 && is_opensuse) we prefer lcms2
|
||||||
BuildRequires: liblcms-devel
|
BuildRequires: liblcms-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
@ -88,7 +90,9 @@ BuildRequires: libqca2-devel
|
|||||||
BuildRequires: libqjson-devel
|
BuildRequires: libqjson-devel
|
||||||
BuildRequires: libusb-1_0-devel
|
BuildRequires: libusb-1_0-devel
|
||||||
BuildRequires: libusb-compat-devel
|
BuildRequires: libusb-compat-devel
|
||||||
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
BuildRequires: marble-devel
|
BuildRequires: marble-devel
|
||||||
|
%endif
|
||||||
BuildRequires: opencv-devel >= 2.4.5
|
BuildRequires: opencv-devel >= 2.4.5
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: pkgconfig(glu)
|
BuildRequires: pkgconfig(glu)
|
||||||
@ -166,7 +170,8 @@ Supplements: packageand(kipi-plugins:marble)
|
|||||||
A set of plug-ins for the KDE KIPI interface, used by some KDE imaging
|
A set of plug-ins for the KDE KIPI interface, used by some KDE imaging
|
||||||
applications.
|
applications.
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
|
# This is only being built up to 13.2 & SLE12, but NOT for Leap 42.1
|
||||||
%package -n libkgeomap-devel
|
%package -n libkgeomap-devel
|
||||||
Summary: Development files for libkgeomap
|
Summary: Development files for libkgeomap
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -198,7 +203,8 @@ Currently supported map engine are:
|
|||||||
This library is used by kipi-plugins, digiKam and other kipi host programs.
|
This library is used by kipi-plugins, digiKam and other kipi host programs.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1320
|
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
|
||||||
|
# This is built up to openSUSE 13.1 plus also SLE12
|
||||||
%package -n libkface-devel
|
%package -n libkface-devel
|
||||||
Summary: Development files for libkface
|
Summary: Development files for libkface
|
||||||
License: BSD-3-Clause and GPL-2.0+ and LGPL-2.1+ and MIT
|
License: BSD-3-Clause and GPL-2.0+ and LGPL-2.1+ and MIT
|
||||||
@ -248,14 +254,14 @@ This package contains the development files for libmediawiki.
|
|||||||
|
|
||||||
%lang_package -n kipi-plugins
|
%lang_package -n kipi-plugins
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
%lang_package -n libkgeomap
|
%lang_package -n libkgeomap
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{rversion}
|
%setup -q -n %{name}-%{rversion}
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
# Don't unpack the libkgeomap translations for Tumbleweed as that they are being delivered through kde-l10n
|
# Don't unpack the libkgeomap translations for Tumbleweed/Leap 42.1 as that they are being delivered through kde-l10n
|
||||||
tar -xjf %{SOURCE2}
|
tar -xjf %{SOURCE2}
|
||||||
%endif
|
%endif
|
||||||
%patch0
|
%patch0
|
||||||
@ -275,12 +281,12 @@ rm gpssync/borrowed/modeltest.h
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} < 1320
|
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
|
||||||
EXTRA_FLAGS="-DENABLE_LCMS2=OFF -DDIGIKAMSC_COMPILE_LIBKFACE=TRUE"
|
EXTRA_FLAGS="-DENABLE_LCMS2=OFF -DDIGIKAMSC_COMPILE_LIBKFACE=TRUE"
|
||||||
%else
|
%else
|
||||||
EXTRA_FLAGS="-DENABLE_LCMS2=ON"
|
EXTRA_FLAGS="-DENABLE_LCMS2=ON"
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
%cmake_kde4 -d build -- -DENABLE_MYSQLSUPPORT=TRUE -DENABLE_INTERNALMYSQL=FALSE -DENABLE_KDEPIMLIBSSUPPORT=TRUE -DDIGIKAMSC_COMPILE_LIBKGEOMAP=TRUE -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=TRUE $EXTRA_FLAGS
|
%cmake_kde4 -d build -- -DENABLE_MYSQLSUPPORT=TRUE -DENABLE_INTERNALMYSQL=FALSE -DENABLE_KDEPIMLIBSSUPPORT=TRUE -DDIGIKAMSC_COMPILE_LIBKGEOMAP=TRUE -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=TRUE $EXTRA_FLAGS
|
||||||
%else
|
%else
|
||||||
%cmake_kde4 -d build -- -DENABLE_MYSQLSUPPORT=TRUE -DENABLE_INTERNALMYSQL=FALSE -DENABLE_KDEPIMLIBSSUPPORT=TRUE -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=TRUE $EXTRA_FLAGS
|
%cmake_kde4 -d build -- -DENABLE_MYSQLSUPPORT=TRUE -DENABLE_INTERNALMYSQL=FALSE -DENABLE_KDEPIMLIBSSUPPORT=TRUE -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=TRUE $EXTRA_FLAGS
|
||||||
@ -311,7 +317,7 @@ rm -fv %{buildroot}%{_kde4_libdir}/*.a
|
|||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
%find_lang libkgeomap libkgeomap.lang
|
%find_lang libkgeomap libkgeomap.lang
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -351,13 +357,13 @@ popd
|
|||||||
|
|
||||||
%postun -n kipi-plugins -p /sbin/ldconfig
|
%postun -n kipi-plugins -p /sbin/ldconfig
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
%post -n libkgeomap2 -p /sbin/ldconfig
|
%post -n libkgeomap2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libkgeomap2 -p /sbin/ldconfig
|
%postun -n libkgeomap2 -p /sbin/ldconfig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1320
|
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
|
||||||
%post -n libkface3 -p /sbin/ldconfig
|
%post -n libkface3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libkface3 -p /sbin/ldconfig
|
%postun -n libkface3 -p /sbin/ldconfig
|
||||||
@ -463,7 +469,7 @@ popd
|
|||||||
%{_kde4_modulesdir}/kipiplugin_gpssync.so
|
%{_kde4_modulesdir}/kipiplugin_gpssync.so
|
||||||
%{_kde4_servicesdir}/kipiplugin_gpssync.desktop
|
%{_kde4_servicesdir}/kipiplugin_gpssync.desktop
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
|
||||||
%files -n libkgeomap-devel
|
%files -n libkgeomap-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc extra/libkgeomap/{AUTHORS,COPYING,COPYING-CMAKE-SCRIPTS,COPYING.LIB,README,TODO}
|
%doc extra/libkgeomap/{AUTHORS,COPYING,COPYING-CMAKE-SCRIPTS,COPYING.LIB,README,TODO}
|
||||||
@ -481,7 +487,7 @@ popd
|
|||||||
%{_kde4_libdir}/libkgeomap.so.2*
|
%{_kde4_libdir}/libkgeomap.so.2*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1320
|
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
|
||||||
%files -n libkface3
|
%files -n libkface3
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_kde4_appsdir}/libkface
|
%{_kde4_appsdir}/libkface
|
||||||
|
Loading…
Reference in New Issue
Block a user