# # spec file for package digikam # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: digikam Version: 1.9.0 Release: 1 Summary: A KDE Photo Manager License: GPLv2+ and LGPLv2.1+ and GFDL and X11 (BSD like) and BSD3c (or similar) Url: http://www.digikam.org/ Group: Productivity/Graphics/Viewers Source0: http://sourceforge.net/projects/digikam/files/digikam/1.9.0/%{name}-%{version}.tar.bz2 Source1: %{name}-docs.tar.bz2 # PATCH-FIX-OPENSUSE digikam-buildtime.patch -- Remove build time references so build-compare can do its work Patch0: digikam-buildtime.patch # PATCH-FIX-UPSTREAM add_mimetype_bnc629393.diff bnc#629393 kde#261627 ctrippe@gmx.net -- Add MimeTypes to desktop file for better integration in GNOME Patch1: add_mimetype_bnc629393.diff # PATCH-FIX-OPENSUSE digikam-marblewidget.patch idoenmez@suse.de -- Provide a FindMarbleWidget.cmake for compatibility Patch2: digikam-marblewidget.patch # With the latest version of libjpeg62 in Factory, the version is mentioned in a different file %if %suse_version > 1140 Patch3: correct_jpeg_lib_version.patch %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: doxygen BuildRequires: glib2-devel BuildRequires: graphviz BuildRequires: lensfun-devel BuildRequires: libgphoto2-devel BuildRequires: libjasper-devel BuildRequires: libkdcraw-devel BuildRequires: libkde4-devel BuildRequires: libkdepimlibs4-devel BuildRequires: libkexiv2-devel BuildRequires: libkipi-devel BuildRequires: liblqr-devel BuildRequires: libsoprano-devel BuildRequires: marble-devel %if 0%{?suse_version} == 1120 BuildRequires: mysql %endif %if 0%{?suse_version} > 1120 BuildRequires: mysql-community-server %endif BuildRequires: shared-desktop-ontologies-devel %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %kde4_runtime_requires Recommends: kipi-plugins Recommends: %{name}-lang = %{version} Provides: kde4-digikam = %{version} Obsoletes: kde4-digikam <= 0.10.0 %description digiKam is an easy to use and powerful digital photo management application, which makes importing, organizing and manipulating digital photos a "snap". An easy to use interface is provided to connect to your digital camera, preview the images and download and/or delete them. The digiKam built-in image editor makes the common photo correction a simple task. The image editor is extensible via plugins. All useful image editor plugins are available in the base installation. Authors: -------- Gilles Caulier Marcel Wiesweg Andi Clemens Renchi Raju (Original author, retired) %package devel Summary: Development Headers for Digikam License: GPLv2+ and LGPLv2.1+ and GFDL and X11 (BSD like) and BSD3c (or similar) Group: Development/Libraries/KDE Requires: %{name} = %{version} %description devel digiKam is a simple digital photo management application for KDE. This package contains its build environment. Authors: -------- Gilles Caulier Marcel Wiesweg Andi Clemens Renchi Raju (Original author, retired) %lang_package %prep %setup -q -a 1 %patch0 %patch1 %patch2 %if %suse_version > 1140 %patch3 -p0 %endif # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" digikam/version.h.cmake # Add digikam-docs.tar.bz2 directories echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt echo "add_subdirectory( doc-translations )" >> CMakeLists.txt echo "add_subdirectory( doc/digikam )" >> CMakeLists.txt echo "add_subdirectory( doc/showfoto )" >> CMakeLists.txt %build %cmake_kde4 -d build %make_jobs %install cd build %kde4_makeinstall cd .. %if 0%{?suse_version} %suse_update_desktop_file %{name} Qt KDE Graphics Photography %suse_update_desktop_file -G "Photo Editor" showfoto Qt KDE Graphics Photography %endif # Remove unneeded locales %if 0%{?suse_version} < 1140 rm -rf %{buildroot}%{_datadir}/locale/hne/ %endif %find_lang %{name} --all-name %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING.DOC COPYING.LIB ChangeLog NEWS README TODO TODO.MYSQLPORT %{_kde4_bindir}/cleanup_digikamdb %{_kde4_bindir}/digikam %{_kde4_bindir}/digitaglinktree %{_kde4_bindir}/showfoto # new %{_kde4_modules}/digikam*.so # old %{_kde4_modules}/kio_digikamalbums.so %{_kde4_modules}/kio_digikamdates.so %{_kde4_modules}/kio_digikamsearch.so %{_kde4_modules}/kio_digikamtags.so %{_kde4_libexecdir}/digikamdatabaseserver %{_kde4_modules}/plugins/marble/ExternalDraw.so %{_kde4_libdir}/libdigikamcore.so.* %{_kde4_libdir}/libdigikamdatabase.so.* %{_kde4_applicationsdir}/digikam.desktop %{_kde4_applicationsdir}/showfoto.desktop %doc %lang(en) %{_kde4_htmldir}/en/digikam/ %{_kde4_iconsdir}/hicolor/*/apps/digikam.* %{_kde4_iconsdir}/hicolor/*/apps/showfoto.* %{_kde4_appsdir}/digikam/ %{_kde4_appsdir}/showfoto/ %dir %{_kde4_appsdir}/solid %dir %{_kde4_appsdir}/solid/actions %{_kde4_appsdir}/solid/actions/digikam-opencamera.desktop %{_kde4_servicesdir}/digikamalbums.protocol %{_kde4_servicesdir}/digikamdates.protocol %{_kde4_servicesdir}/digikamimageplugin_*.desktop %{_kde4_servicesdir}/digikamnepomukservice.desktop %{_kde4_servicesdir}/digikamsearch.protocol %{_kde4_servicesdir}/digikamtags.protocol %{_kde4_servicetypesdir}/digikamimageplugin.desktop %doc %{_mandir}/man1/digitaglinktree.1%{ext_man} %doc %{_mandir}/man1/cleanup_digikamdb.1%{ext_man} %files devel %defattr(-,root,root,-) %{_includedir}/digikam/ %{_includedir}/digikam_export.h %{_kde4_libdir}/libdigikamcore.so %{_kde4_libdir}/libdigikamdatabase.so %files lang -f %{name}.lang %defattr(-,root,root,-) %exclude %{_kde4_htmldir}/en/digikam/ %changelog