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
|
|
|
#
|
2011-01-03 11:05:39 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
2011-03-09 13:36:07 +01:00
|
|
|
|
|
|
|
|
2006-12-19 00:35:13 +01:00
|
|
|
Name: digikam
|
2011-03-09 13:35:58 +01:00
|
|
|
Version: 1.9.0
|
2011-06-21 09:57:51 +02:00
|
|
|
Release: 2
|
2011-03-09 13:35:58 +01:00
|
|
|
Summary: A KDE Photo Manager
|
|
|
|
|
|
|
|
License: GPLv2+ and LGPLv2.1+ and GFDL and X11 (BSD like) and BSD3c (or similar)
|
2009-04-21 00:00:19 +02:00
|
|
|
Url: http://www.digikam.org/
|
2007-07-11 10:44:29 +02:00
|
|
|
Group: Productivity/Graphics/Viewers
|
2011-03-09 13:35:58 +01:00
|
|
|
Source0: http://sourceforge.net/projects/digikam/files/digikam/1.9.0/%{name}-%{version}.tar.bz2
|
2010-02-04 11:32:02 +01:00
|
|
|
Source1: %{name}-docs.tar.bz2
|
2011-03-09 13:35:58 +01:00
|
|
|
# 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
|
2011-06-21 09:57:37 +02:00
|
|
|
# PATCH-FIX-OPENSUSE digikam-marblewidget.patch idoenmez@suse.de -- Provide a FindMarbleWidget.cmake for compatibility
|
|
|
|
Patch2: digikam-marblewidget.patch
|
2011-03-09 13:35:58 +01:00
|
|
|
# With the latest version of libjpeg62 in Factory, the version is mentioned in a different file
|
|
|
|
%if %suse_version > 1140
|
2011-06-21 09:57:37 +02:00
|
|
|
Patch3: correct_jpeg_lib_version.patch
|
2011-03-09 13:35:58 +01:00
|
|
|
%endif
|
2006-12-19 00:35:13 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-09 13:35:58 +01:00
|
|
|
|
|
|
|
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
|
2010-02-09 22:12:26 +01:00
|
|
|
%kde4_runtime_requires
|
2010-08-09 02:23:17 +02:00
|
|
|
Recommends: kipi-plugins
|
2010-09-24 01:02:25 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2011-03-09 13:35:58 +01:00
|
|
|
Provides: kde4-digikam = %{version}
|
2009-06-02 12:59:52 +02:00
|
|
|
Obsoletes: kde4-digikam <= 0.10.0
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%description
|
2011-03-09 13:35:58 +01:00
|
|
|
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.
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-23 23:16:18 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
2011-03-09 13:35:58 +01:00
|
|
|
Gilles Caulier <caulier dot gilles at gmail dot com>
|
|
|
|
Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
|
2010-04-01 10:07:51 +02:00
|
|
|
Andi Clemens <andi dot clemens at gmx dot net>
|
2011-03-09 13:35:58 +01:00
|
|
|
Renchi Raju <renchi dot raju at gmail dot com> (Original author, retired)
|
2007-04-23 23:16:18 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%package devel
|
2010-04-01 10:07:51 +02:00
|
|
|
Summary: Development Headers for Digikam
|
2011-03-09 13:35:58 +01:00
|
|
|
License: GPLv2+ and LGPLv2.1+ and GFDL and X11 (BSD like) and BSD3c (or similar)
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: %{name} = %{version}
|
2007-06-19 00:15:24 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%description devel
|
|
|
|
digiKam is a simple digital photo management application for KDE. This
|
|
|
|
package contains its build environment.
|
2007-06-19 00:15:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2010-04-01 10:07:51 +02:00
|
|
|
Gilles Caulier <caulier dot gilles at gmail dot com>
|
|
|
|
Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
|
|
|
|
Andi Clemens <andi dot clemens at gmx dot net>
|
2011-03-09 13:35:58 +01:00
|
|
|
Renchi Raju <renchi dot raju at gmail dot com> (Original author, retired)
|
2010-02-04 11:32:02 +01:00
|
|
|
|
2011-03-09 13:35:58 +01:00
|
|
|
|
2011-03-09 13:36:07 +01:00
|
|
|
%lang_package
|
2009-04-21 00:00:19 +02:00
|
|
|
%prep
|
2011-03-09 13:35:58 +01:00
|
|
|
%setup -q -a 1
|
|
|
|
%patch0
|
2010-05-18 01:47:43 +02:00
|
|
|
%patch1
|
2011-06-21 09:57:37 +02:00
|
|
|
%patch2
|
2011-03-09 13:35:58 +01:00
|
|
|
%if %suse_version > 1140
|
2011-06-21 09:57:37 +02:00
|
|
|
%patch3 -p0
|
2011-03-09 13:35:58 +01:00
|
|
|
%endif
|
|
|
|
# Remove build time references so build-compare can do its work
|
2010-05-18 01:47:43 +02:00
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y')
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" digikam/version.h.cmake
|
2011-03-09 13:35:58 +01:00
|
|
|
# Add digikam-docs.tar.bz2 directories
|
2010-02-04 11:32:02 +01:00
|
|
|
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
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%build
|
2011-03-09 13:35:58 +01:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%install
|
2011-03-09 13:35:58 +01:00
|
|
|
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
|
2006-12-19 00:35:13 +01:00
|
|
|
|
2008-05-17 02:33:21 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2006-12-19 00:35:13 +01:00
|
|
|
|
2008-05-17 02:33:21 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%clean
|
2011-03-09 13:35:58 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-05-17 11:27:45 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%files
|
2011-03-09 13:35:58 +01:00
|
|
|
%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
|
2010-04-01 10:07:51 +02:00
|
|
|
# new
|
2011-03-09 13:35:58 +01:00
|
|
|
%{_kde4_modules}/digikam*.so
|
2010-04-01 10:07:51 +02:00
|
|
|
# old
|
2011-03-09 13:35:58 +01:00
|
|
|
%{_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/
|
2007-12-10 23:50:32 +01:00
|
|
|
|
2007-03-06 19:08:31 +01:00
|
|
|
%changelog
|