2006-12-19 00:35:13 +01:00
|
|
|
#
|
2010-12-28 23:59:30 +01:00
|
|
|
# spec file for package digikam (Version 1.7.0)
|
2006-12-19 00:35:13 +01:00
|
|
|
#
|
2010-01-08 17:21:00 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-05-08 23:04:55 +02:00
|
|
|
|
2006-12-19 00:35:13 +01:00
|
|
|
Name: digikam
|
2009-04-21 00:00:19 +02:00
|
|
|
BuildRequires: graphviz-devel libgphoto2-devel libkdepimlibs4-devel libqimageblitz-devel sqlite-devel
|
2009-07-25 18:55:45 +02:00
|
|
|
BuildRequires: libkdcraw-devel libkexiv2-devel libkipi-devel marble-devel
|
2010-02-04 11:32:02 +01:00
|
|
|
BuildRequires: lensfun-devel libjasper-devel liblqr-devel soprano-backend-redland
|
2009-04-21 00:00:19 +02:00
|
|
|
Url: http://www.digikam.org/
|
2009-12-16 17:30:18 +01:00
|
|
|
License: GPLv2+
|
2007-07-11 10:44:29 +02:00
|
|
|
Group: Productivity/Graphics/Viewers
|
2006-12-19 00:35:13 +01:00
|
|
|
Summary: A KDE Photo Manager
|
2010-12-28 23:59:30 +01:00
|
|
|
Version: 1.7.0
|
2010-10-28 15:17:40 +02:00
|
|
|
Release: 1
|
2010-12-28 23:59:30 +01:00
|
|
|
%define tar_version 1.7.0
|
2009-04-21 00:00:19 +02:00
|
|
|
Source0: %name-%{tar_version}.tar.bz2
|
2010-02-04 11:32:02 +01:00
|
|
|
Source1: %{name}-docs.tar.bz2
|
2010-05-18 01:47:43 +02:00
|
|
|
Patch1: %{name}-buildtime.patch
|
2011-01-03 11:05:19 +01:00
|
|
|
Patch2: add_mimetype_bnc629393.diff
|
2006-12-19 00:35:13 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-02-09 22:12:26 +01:00
|
|
|
%kde4_runtime_requires
|
|
|
|
%kde4_pimlibs_requires
|
2010-08-09 02:23:17 +02:00
|
|
|
Requires: libqt4-sql-sqlite libqt4-sql-mysql
|
|
|
|
Recommends: kipi-plugins
|
2009-04-21 00:00:19 +02:00
|
|
|
Requires: oxygen-icon-theme
|
2010-09-24 01:02:25 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2009-06-02 12:59:52 +02:00
|
|
|
Provides: kde4-digikam = 0.10.0
|
|
|
|
Obsoletes: kde4-digikam <= 0.10.0
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
digiKam is a simple digital photo management application for KDE, which
|
2007-08-24 01:01:37 +02:00
|
|
|
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.
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-23 23:16:18 +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>
|
|
|
|
Renchi Raju <renchi@green.tam.uiuc.edu> (Original author, retired)
|
2007-04-23 23:16:18 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%package devel
|
2009-12-16 17:30:18 +01:00
|
|
|
License: GPLv2+
|
2010-04-01 10:07:51 +02:00
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Summary: Development Headers for Digikam
|
2009-04-21 00:00:19 +02:00
|
|
|
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>
|
2009-04-21 00:00:19 +02:00
|
|
|
Renchi Raju <renchi@green.tam.uiuc.edu>
|
2007-06-19 00:15:24 +02:00
|
|
|
|
2010-02-04 11:32:02 +01:00
|
|
|
%package doc
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Productivity/Graphics/Viewers
|
|
|
|
Summary: A KDE Photo Manager Build Environment
|
|
|
|
Requires: %name = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
digiKam is a simple digital photo management application for KDE. This
|
|
|
|
package contains its build environment.
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
2010-02-04 11:32:02 +01:00
|
|
|
Renchi Raju <renchi@green.tam.uiuc.edu>
|
|
|
|
|
|
|
|
|
2007-05-11 15:32:30 +02:00
|
|
|
%lang_package
|
2009-04-21 00:00:19 +02:00
|
|
|
%prep
|
2010-02-04 11:32:02 +01:00
|
|
|
%setup -q -n %name-%{tar_version} -a 1
|
2010-05-18 01:47:43 +02:00
|
|
|
%patch1
|
2011-01-03 11:05:19 +01:00
|
|
|
%patch2
|
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
|
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
|
2009-04-21 00:00:19 +02:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
%install
|
2009-04-21 00:00:19 +02:00
|
|
|
cd build
|
|
|
|
%makeinstall
|
|
|
|
cd ..
|
|
|
|
%suse_update_desktop_file digikam Graphics Photography
|
2009-08-21 17:56:21 +02:00
|
|
|
%suse_update_desktop_file -G "Photo Editor" showfoto Graphics Photography
|
2009-04-21 00:00:19 +02:00
|
|
|
%find_lang %name
|
|
|
|
%kde_post_install
|
2010-02-04 11:32:02 +01:00
|
|
|
%if %suse_version < 1120
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/et/common
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/it/common
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/uk/common
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/sv/common
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt_BR/common
|
|
|
|
%endif
|
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
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-04-21 00:00:19 +02:00
|
|
|
rm -rf filelists
|
2006-12-19 00:35:13 +01:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%files devel
|
2008-06-30 15:25:22 +02:00
|
|
|
%defattr(-,root,root)
|
2009-04-21 00:00:19 +02:00
|
|
|
/usr/include/digikam
|
|
|
|
/usr/include/digikam_export.h
|
|
|
|
%_libdir/libdigikamcore.so
|
|
|
|
%_libdir/libdigikamdatabase.so
|
2007-05-11 15:32:30 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%files lang -f %name.lang
|
2008-06-30 15:25:22 +02:00
|
|
|
%defattr(-,root,root)
|
2010-02-04 11:32:02 +01:00
|
|
|
%exclude /usr/share/doc/kde/HTML/*/digikam
|
|
|
|
%exclude /usr/share/doc/kde/HTML/*/showfoto
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/share/doc/kde/HTML/*/digikam
|
|
|
|
%dir /usr/share/doc/kde/HTML/*/showfoto
|
|
|
|
%if %suse_version < 1120
|
|
|
|
%dir /usr/share/doc/kde/HTML/*/common
|
|
|
|
%endif
|
|
|
|
%doc %lang(en) /usr/share/doc/kde/HTML/en/*
|
|
|
|
%doc %lang(et) /usr/share/doc/kde/HTML/et/*
|
|
|
|
%doc %lang(it) /usr/share/doc/kde/HTML/it/*
|
|
|
|
%doc %lang(pt_BR) /usr/share/doc/kde/HTML/pt_BR/*
|
|
|
|
%doc %lang(uk) /usr/share/doc/kde/HTML/uk/*
|
|
|
|
%doc %lang(sv) /usr/share/doc/kde/HTML/sv/*
|
2007-05-17 11:27:45 +02:00
|
|
|
|
2009-04-21 00:00:19 +02:00
|
|
|
%files
|
2006-12-19 00:35:13 +01:00
|
|
|
%defattr(-,root,root)
|
2009-04-21 00:00:19 +02:00
|
|
|
/usr/bin/digikam
|
|
|
|
/usr/bin/digitaglinktree
|
|
|
|
/usr/bin/showfoto
|
2009-12-16 17:30:18 +01:00
|
|
|
/usr/bin/cleanup_digikamdb
|
2010-04-01 10:07:51 +02:00
|
|
|
# new
|
2010-07-19 20:56:26 +02:00
|
|
|
%_kde4_modules/digikam*.so
|
2010-04-01 10:07:51 +02:00
|
|
|
# old
|
2009-04-21 00:00:19 +02:00
|
|
|
%_kde4_modules/kio_digikamalbums.so
|
|
|
|
%_kde4_modules/kio_digikamdates.so
|
|
|
|
%_kde4_modules/kio_digikamsearch.so
|
|
|
|
%_kde4_modules/kio_digikamtags.so
|
2009-12-16 17:30:18 +01:00
|
|
|
%_kde4_modules/plugins/marble/ExternalDraw.so
|
2009-04-21 00:00:19 +02:00
|
|
|
%_libdir/libdigikamcore.so.*
|
|
|
|
%_libdir/libdigikamdatabase.so.*
|
|
|
|
/usr/share/applications/kde4/digikam.desktop
|
|
|
|
/usr/share/applications/kde4/showfoto.desktop
|
2009-12-16 17:30:18 +01:00
|
|
|
/usr/share/icons/hicolor/*/apps/digikam.*
|
|
|
|
/usr/share/icons/hicolor/*/apps/showfoto.*
|
2009-04-21 00:00:19 +02:00
|
|
|
%_kde_share_dir/apps/digikam
|
|
|
|
%_kde_share_dir/apps/showfoto
|
|
|
|
%_kde_share_dir/services/digikamalbums.protocol
|
|
|
|
%_kde_share_dir/services/digikamdates.protocol
|
2010-07-19 20:56:26 +02:00
|
|
|
%_kde_share_dir/services/digikam*.desktop
|
2009-04-21 00:00:19 +02:00
|
|
|
%_kde_share_dir/services/digikamsearch.protocol
|
|
|
|
%_kde_share_dir/services/digikamtags.protocol
|
|
|
|
%_kde_share_dir/servicetypes/digikamimageplugin.desktop
|
2009-12-16 17:30:18 +01:00
|
|
|
#%_kde_share_dir/apps/showfoto/data/logo-showfoto.png
|
|
|
|
#%_kde_share_dir/apps/showfoto/data/splash-showfoto.png
|
|
|
|
#%_kde_share_dir/apps/showfoto/showfotoui.rc
|
2006-12-19 00:35:13 +01:00
|
|
|
/usr/share/man/man1/digitaglinktree.1.gz
|
2009-12-16 17:30:18 +01:00
|
|
|
/usr/share/man/man1/cleanup_digikamdb.1.gz
|
2009-04-21 00:00:19 +02:00
|
|
|
%dir /usr/share/kde4/apps/solid
|
|
|
|
%dir /usr/share/kde4/apps/solid/actions
|
2009-12-16 17:30:18 +01:00
|
|
|
%_kde_share_dir/apps/solid/actions/digikam-opencamera.desktop
|
|
|
|
%if %suse_version < 1120
|
|
|
|
%dir /usr/share/locale/hne
|
|
|
|
%dir /usr/share/locale/hne/LC_MESSAGES
|
|
|
|
%endif
|
2010-07-19 20:56:26 +02:00
|
|
|
%_kde4_libexecdir/digikamdatabaseserver
|
2007-12-10 23:50:32 +01:00
|
|
|
|
2007-03-06 19:08:31 +01:00
|
|
|
%changelog
|