2006-12-19 00:35:13 +01:00
#
2011-01-25 13:06:55 +01:00
# spec file for package digikam
2006-12-19 00:35:13 +01:00
#
2018-01-17 21:57:12 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2006-12-19 00:35:13 +01:00
#
2008-11-06 15:23:00 +01:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2006-12-19 00:35:13 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-04-02 19:53:35 +02:00
2006-12-19 00:35:13 +01:00
Name : digikam
2018-01-17 21:57:12 +01:00
Version : 5.8.0
2011-12-14 14:33:09 +01:00
Release : 0
2011-03-09 13:35:58 +01:00
Summary : A KDE Photo Manager
2011-12-14 14:33:09 +01:00
License : GPL-2.0+
2007-07-11 10:44:29 +02:00
Group : Productivity/Graphics/Viewers
2011-12-14 14:33:09 +01:00
Url : http://www.digikam.org/
2016-09-30 15:22:10 +02:00
Source0 : http://download.kde.org/stable/%{name} /%{name} -%{version} .tar.xz
2017-10-13 14:14:34 +02:00
# PATCH-FIX-OPENSUSE 0001-Disable-detection-of-OpenGL-for-GLES-platforms.patch -- The OpenGL slideshow depends on Desktop GL, see kde#383715
Patch0 : 0001-Disable-detection-of-OpenGL-for-GLES-platforms.patch
2018-01-17 21:57:12 +01:00
# PATCH-FIX-OPENSUSE
Patch1 : 0001-Revert-replace-obsolete-qSort-function.patch
# PATCH-FIX-OPENSUSE
Patch2 : 0002-Revert-replace-obsolete-qSort-function.patch
# PATCH-FIX-OPENSUSE fix-italian-docs-with-older-kdoctools.patch -- fix build with the old kdoctools in Leap 42.2 that misses two necessary entities for italian
Patch3 : fix-italian-docs-with-older-kdoctools.patch
2018-01-19 11:53:49 +01:00
# PATCH-FIX-UPSTREAM
Patch4 : fix-font-size-in-tooltips.patch
2018-01-30 15:42:54 +01:00
# PATCH-FIX-UPSTREAM digikam-5.8.0.fix-db-migration-0001.patch -- fix MySQL DB migration issues (kde#388824, kde#388867, kde#388977)
Patch5 : digikam-5.8.0.fix-db-migration-0001.patch
# PATCH-FIX-UPSTREAM
Patch6 : digikam-5.8.0.fix-db-migration-0002.patch
# PATCH-FIX-UPSTREAM
Patch7 : digikam-5.8.0.fix-db-migration-0003.patch
# PATCH-FIX-UPSTREAM
Patch8 : digikam-5.8.0.fix-db-migration-0004.patch
2016-09-30 15:22:10 +02:00
#This pulls in QWebEngine, which is not available on ppc64
%ifarch %ix86 x86_64 %arm aarch64 mips mips64
BuildRequires : akonadi-contact-devel
%endif
BuildRequires : baloo5-devel
2013-02-12 16:36:35 +01:00
BuildRequires : bison
2011-08-29 11:21:04 +02:00
BuildRequires : boost-devel
2011-03-09 13:35:58 +01:00
BuildRequires : doxygen
2011-08-29 11:21:04 +02:00
BuildRequires : fdupes
2013-02-12 16:36:35 +01:00
BuildRequires : flex
2016-09-30 15:22:10 +02:00
BuildRequires : graphviz-devel
BuildRequires : gtk2-devel
BuildRequires : kfilemetadata5-devel
BuildRequires : khtml-devel
BuildRequires : ki18n-devel
BuildRequires : kitemmodels-devel
BuildRequires : knotifyconfig-devel
BuildRequires : lensfun
2011-03-09 13:35:58 +01:00
BuildRequires : lensfun-devel
2013-06-13 16:38:55 +02:00
BuildRequires : libeigen3-devel
2017-09-14 21:15:21 +02:00
BuildRequires : libexiv2-devel >= 0.26
2012-02-08 15:37:30 +01:00
BuildRequires : libexpat-devel
2016-09-30 15:22:10 +02:00
BuildRequires : libgcrypt-devel
BuildRequires : libgphoto2-devel >= 2.4.0
# It invokes "gphoto2" for determining the API version
2017-03-16 09:42:22 +01:00
BuildRequires : QtAV-devel >= 1.11
2016-09-30 15:22:10 +02:00
BuildRequires : gphoto
2012-02-08 15:37:30 +01:00
BuildRequires : libgpod-devel
2011-03-09 13:35:58 +01:00
BuildRequires : libjasper-devel
2016-09-30 15:22:10 +02:00
BuildRequires : libkdcraw-devel >= 15.12.0
BuildRequires : libkexiv2-devel >= 15.12.0
BuildRequires : libkgeomap-devel > 15.12.0
BuildRequires : libkipi-devel >= 16.04.0
BuildRequires : libksane-devel >= 15.12.0
2017-09-14 21:15:21 +02:00
BuildRequires : libkvkontakte-devel
2014-05-26 14:40:25 +02:00
BuildRequires : liblcms2-devel
2011-03-09 13:35:58 +01:00
BuildRequires : liblqr-devel
2017-09-14 21:15:21 +02:00
BuildRequires : libmediawiki-devel
2016-09-30 15:22:10 +02:00
BuildRequires : libmysqlclient-devel
BuildRequires : libmysqld-devel
2012-11-12 11:40:46 +01:00
BuildRequires : libpgf-devel
2016-09-30 15:22:10 +02:00
BuildRequires : libqca-qt5-devel
BuildRequires : libtiff-devel
BuildRequires : libusb-devel
2012-02-08 15:37:30 +01:00
BuildRequires : marble-devel
2016-09-30 15:22:10 +02:00
BuildRequires : mysql
2017-09-14 21:15:21 +02:00
BuildRequires : opencv-devel
2016-09-30 15:22:10 +02:00
BuildRequires : threadweaver-devel >= 5.1.0
2011-08-29 11:21:04 +02:00
BuildRequires : update-desktop-files
2016-09-30 15:22:10 +02:00
BuildRequires : xorg-x11-devel
BuildRequires : cmake(KF5CalendarCore)
BuildRequires : pkgconfig(Qt5Concurrent)
2017-08-26 11:52:51 +02:00
BuildRequires : pkgconfig(Qt5Core) >= 5.6.0
2016-09-30 15:22:10 +02:00
BuildRequires : pkgconfig(Qt5OpenGL)
BuildRequires : pkgconfig(Qt5Sql)
BuildRequires : pkgconfig(Qt5Svg)
BuildRequires : pkgconfig(Qt5Test)
BuildRequires : pkgconfig(Qt5WebKitWidgets)
BuildRequires : pkgconfig(Qt5X11Extras)
BuildRequires : pkgconfig(Qt5XmlPatterns)
2012-06-11 07:30:49 +02:00
Requires : kipi-plugins >= %{version}
2011-09-05 16:27:24 +02:00
Recommends: %{name} -doc
2011-10-16 12:42:39 +02:00
Recommends: %{name} -lang
2011-08-04 10:14:41 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2017-05-31 12:20:15 +02:00
Recommends: marble
2016-09-30 15:22:10 +02:00
Recommends: showfoto
# Got merged into libimageeditor in 5.2.0
Provides : %{name} -plugin-color = %{version}
Obsoletes : %{name} -plugin-color < %{version}
Provides : %{name} -plugin-decorate = %{version}
Obsoletes : %{name} -plugin-decorate < %{version}
Provides : %{name} -plugin-enhance = %{version}
Obsoletes : %{name} -plugin-enhance < %{version}
Provides : %{name} -plugin-fxfilters = %{version}
Obsoletes : %{name} -plugin-fxfilters < %{version}
Provides : %{name} -plugin-transform = %{version}
Obsoletes : %{name} -plugin-transform < %{version}
Obsoletes : digikam-libs < %{version}
2006-12-19 00:35:13 +01:00
%description
2011-08-04 10:14:41 +02:00
digiKam is a simple digital photo management application for KDE, which
allows you to import and organize your digital photos easily. The
photos can be organized in albums, which can be sorted chronologically,
by directory layout, or by custom collections. An easy-to-use interface
that enables you to connect to your camera and preview, download, or
delete your images, is provided.
2007-04-23 23:16:18 +02:00
2011-09-05 16:27:24 +02:00
%package doc
Summary : Documentation of Digikam
2012-02-08 15:37:30 +01:00
License : GFDL-1.2
2011-09-05 16:27:24 +02:00
Group : Documentation/HTML
BuildArch : noarch
%description doc
This package contains the documentation for digikam
2011-08-29 11:21:04 +02:00
2012-02-08 15:37:30 +01:00
%package -n kipi-plugins
2012-06-11 07:30:49 +02:00
Summary : KDE Plug-Ins for Image Manipulation
2012-02-08 15:37:30 +01:00
License : GPL-2.0+
Group : Productivity/Graphics/Other
Recommends: ImageMagick
Recommends: enblend-enfuse
Recommends: hugin
Recommends: kipi-plugins-lang = %{version}
2016-09-30 15:22:10 +02:00
Obsoletes : kipi-plugins-acquireimage < %{version}
Obsoletes : kipi-plugins-geolocation < %{version}
Obsoletes : kipi-plugins5 < %{version}
Provides : kipi-plugins5 = %{version}
Obsoletes : kipi-plugin-icons < %{version}
Provides : kipi-plugin-icons = %{version}
2012-02-08 15:37:30 +01:00
%description -n kipi-plugins
A set of plug-ins for the KDE KIPI interface, used by some KDE imaging
applications.
2016-09-30 15:22:10 +02:00
%package -n showfoto
Summary : DigiKam: Showfoto
2016-01-23 01:13:29 +01:00
License : GPL-2.0+
Group : Productivity/Graphics/Viewers
2016-09-30 15:22:10 +02:00
Supplements: %{name}
%description -n showfoto
Additional program to browse and view photos
%package -n libdigikamcore5
Summary : The main digikam libraries
License : GPL-2.0+
Group : Development/Libraries/KDE
%description -n libdigikamcore5
The main digikam libraries that are being shared between showfoto and digikam
2016-01-23 01:13:29 +01:00
2011-08-29 11:21:16 +02:00
%lang_package
2012-02-08 15:37:30 +01:00
2012-06-11 07:30:49 +02:00
%lang_package -n kipi-plugins
2012-02-08 15:37:30 +01:00
2009-04-21 00:00:19 +02:00
%prep
2016-09-30 15:22:10 +02:00
%setup -q -n %{name} -%{version}
2017-10-13 14:14:34 +02:00
%ifarch %arm aarch64
# Disable OpenGL slideshow on embedded platforms
%patch0 -p1
%endif
2018-01-17 21:57:12 +01:00
%if 0%{?suse_version} < 1320
2017-11-23 09:45:25 +01:00
%patch1 -p1
2017-12-10 18:17:29 +01:00
%patch2 -p1
2018-01-17 21:57:12 +01:00
%if 0%{?sle_version} <= 120200
%patch3 -p1
%endif
%endif
2018-01-19 11:53:49 +01:00
%patch4 -p1
2011-11-16 17:17:41 +01:00
2018-01-30 15:42:54 +01:00
# DB migration fixes
cd core
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
cd ..
2011-08-29 11:21:04 +02:00
# Remove build time references so build-compare can do its work
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir} /%{name} .changes '+%%b %%e %%Y' )
2016-09-30 15:22:10 +02:00
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir} /%{name} .changes '+%%H:%%M' )
sed -i " s / _ _ D A T E _ _ / \" $ F A K E _ B U I L D D A T E \" / " core/app/utils/digikam_version.h.cmake.in
2014-09-19 13:55:40 +02:00
sed -i " s / _ _ D A T E _ _ / \" $ F A K E _ B U I L D D A T E \" / g " extra/kipi-plugins/common/libkipiplugins/tools/kpversion.h.cmake.in
2016-09-30 15:22:10 +02:00
sed -i " s / _ _ D A T E _ _ / \" $ F A K E _ B U I L D D A T E \" / g " core/libs/dimg/filters/greycstoration/cimg/CImg.h
sed -i " s / _ _ T I M E _ _ / \" $ F A K E _ B U I L D T I M E \" / g " core/libs/dimg/filters/greycstoration/cimg/CImg.h
2012-02-08 15:37:30 +01:00
2016-09-30 15:22:10 +02:00
# Workaround for kde#369517 - vkontakte installs translations even if not built
rm -f po/*/libkvkontakte.po
2011-08-29 11:21:04 +02:00
2006-12-19 00:35:13 +01:00
%build
2015-10-12 10:01:30 +02:00
%if 0%{?suse_version} < 1320 && !0%{?is_opensuse}
2015-11-04 15:32:28 +01:00
EXTRA_FLAGS=" - D E N A B L E _ L C M S 2 = O F F "
2014-05-26 14:40:25 +02:00
%else
EXTRA_FLAGS=" - D E N A B L E _ L C M S 2 = O N "
%endif
2015-01-25 21:16:03 +01:00
2018-01-19 11:53:49 +01:00
%cmake_kf5 -d build -- -DENABLE_APPSTYLES=ON -DENABLE_MYSQLSUPPORT=on -DENABLE_OPENCV3=ON -DENABLE_MEDIAPLAYER=ON
2016-09-30 15:22:10 +02:00
2013-06-11 06:06:44 +02:00
%make_jobs VERBOSE=1
2006-12-19 00:35:13 +01:00
%install
2016-09-30 15:22:10 +02:00
%kf5_makeinstall -C build
2011-03-09 13:35:58 +01:00
2011-08-29 11:21:04 +02:00
# Not needed, the package doesn't actually provide any shared libraries
2016-09-30 15:22:10 +02:00
rm -f %{buildroot} %{_kf5_libdir}/libdigikamcore.so
rm -f %{buildroot} %{_kf5_libdir}/libdigikamdatabase.so
rm -f %{buildroot} %{_kf5_libdir}/libdigikamgui.so
rm -f %{buildroot} %{_kf5_libdir}/libKF5kipiplugins.so
2012-06-11 07:30:49 +02:00
2012-02-08 15:37:30 +01:00
# Not needed
2016-09-30 15:22:10 +02:00
rm -fv %{buildroot} %{_kf5_libdir}/*.a
rm -rf $RPM_BUILD_ROOT /usr/share/locale/x-test
2012-02-08 15:37:30 +01:00
2011-08-29 11:21:04 +02:00
%if 0%{?suse_version}
2016-09-30 15:22:10 +02:00
%suse_update_desktop_file -r org.kde.digikam Qt KDE Graphics Photography
%suse_update_desktop_file -r org.kde.showfoto Qt KDE Graphics Photography
2011-08-29 11:21:04 +02:00
%endif
2018-01-17 21:57:12 +01:00
%find_lang %{name} --without-kde
%find_lang kipiplugins kipiplugin.lang --without-kde
2012-02-08 15:37:30 +01:00
2017-09-14 21:15:21 +02:00
for i in dropbox googleservices sendimages facebook flashexport flickr imageshack imgur kmlexport piwigo printimages rajce remotestorage sendimages smug vkontakte yandexfotki
2013-01-07 10:59:10 +01:00
do
2016-09-30 15:22:10 +02:00
%find_lang kipiplugin_$i kipiplugin.lang
2013-01-07 10:59:10 +01:00
done
2016-01-30 11:31:44 +01:00
2011-08-29 11:21:04 +02:00
%fdupes -s %{buildroot}
2011-11-16 17:17:41 +01:00
2016-09-30 15:22:10 +02:00
%post -n libdigikamcore5 -p /sbin/ldconfig
2011-11-08 17:25:52 +01:00
2016-09-30 15:22:10 +02:00
%postun -n libdigikamcore5 -p /sbin/ldconfig
2006-12-19 00:35:13 +01:00
2012-06-11 07:30:49 +02:00
%post -n kipi-plugins -p /sbin/ldconfig
%postun -n kipi-plugins -p /sbin/ldconfig
2011-08-29 11:21:04 +02:00
%files
%defattr (-,root,root,-)
2018-01-17 21:57:12 +01:00
%doc core/{AUTHORS,COPYING,COPYING-CMAKE-SCRIPTS,COPYING.LIB,ChangeLog,NEWS,README.md}
2016-09-30 15:22:10 +02:00
%{_bindir} /digikam
%{_bindir} /digitaglinktree
%{_bindir} /cleanup_digikamdb
%{_kf5_applicationsdir}/org.kde.digikam.desktop
%_kf5_iconsdir/hicolor/*/apps/digikam.*
%_kf5_iconsdir/hicolor/*/apps/expoblending.*
%_kf5_iconsdir/hicolor/*/actions/
%_datadir /digikam/
%dir %_datadir /solid
%dir %_datadir /solid/actions
%_datadir /solid/actions/digikam-opencamera.desktop
%_datadir /kxmlgui5/digikam/
%_datadir /knotifications5/digikam.notifyrc
%{_kf5_appstreamdir}/org.kde.digikam.appdata.xml
%_kf5_iconsdir/hicolor/*/apps/panorama.*
%files -n showfoto
2016-01-30 11:31:44 +01:00
%defattr (-,root,root)
2016-09-30 15:22:10 +02:00
%{_bindir} /showfoto
%{_kf5_applicationsdir}/org.kde.showfoto.desktop
%_kf5_iconsdir/hicolor/*/apps/showfoto.*
%_datadir /showfoto/
%_datadir /kxmlgui5/showfoto/
%{_kf5_appstreamdir}/org.kde.showfoto.appdata.xml
%files -n libdigikamcore5
2016-01-30 11:31:44 +01:00
%defattr (-,root,root)
2016-09-30 15:22:10 +02:00
%{_libdir} /libdigikam*.so*
2011-09-05 16:27:24 +02:00
%files doc
%defattr (-,root,root,-)
2016-09-30 15:22:10 +02:00
%doc doc/COPYING.DOC
2011-08-29 11:21:04 +02:00
%doc %{_mandir} /man1/cleanup_digikamdb.1%{ext_man}
2011-10-16 12:42:39 +02:00
%doc %{_mandir} /man1/digitaglinktree.1%{ext_man}
2017-08-24 18:31:02 +02:00
%doc %{_kf5_htmldir}/*/
2011-03-09 13:35:58 +01:00
%files lang -f %{name}.lang
%defattr (-,root,root,-)
2007-12-10 23:50:32 +01:00
2012-02-08 15:37:30 +01:00
%files -n kipi-plugins
%defattr (-,root,root,-)
2016-09-30 15:22:10 +02:00
%doc extra/kipi-plugins/{AUTHORS,COPYING,COPYING-CMAKE-SCRIPTS,ChangeLog,NEWS,README,TODO}
%_libdir /libKF5kipiplugins.so*
%{_kf5_plugindir}/kipiplugin_*.so
%{_kf5_applicationsdir}/kipiplugins.desktop
%{_kf5_iconsdir}/hicolor/*/apps/kipi-*.*
%{_datadir} /kipiplugin_*/
%{_kf5_servicesdir}/kipiplugin_*.desktop
%{_kf5_kxmlguidir}/kipi/
2012-02-08 15:37:30 +01:00
%files -n kipi-plugins-lang -f kipiplugin.lang
%defattr (-,root,root,-)
2016-01-23 01:13:29 +01:00
2007-03-06 19:08:31 +01:00
%changelog