File kde3-digikam.spec of Package kde3-digikam
#
# spec file for package kde3-digikam (Version 0.9.6)
#
# Copyright (c) 2009 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: kde3-digikam
BuildRequires: doxygen giflib-devel imlib2-devel kdelibs3-devel kdesdk3-translate
BuildRequires: libkdcraw4-devel liblcms-devel
BuildRequires: libkexiv2-5-devel
BuildRequires: libkipi0-devel sqlite3-devel
%if %suse_version < 1230
BuildRequires: libpng14-compat-devel
%else
%if %suse_version > 1230
BuildRequires: libpng16-compat-devel
%else
BuildRequires: libpng15-compat-devel
%endif
%endif
BuildRequires: fdupes libjasper-devel
BuildRequires: libgphoto2-devel
BuildRequires: autoconf automake libtool m4
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: libtool
License: GPL-2.0-or-later
Group: Productivity/Graphics/Viewers
Summary: A KDE Photo Manager
Version: 0.9.6
Release: 3
%define rversion 0.9.6
Url: http://www.digikam.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: digikam-%{rversion}.tar.bz2
Source2: digikamrc
Source3: superimposetemplates-0.1.1.tar.bz2
Source4: digikam-updated-desktop-files.tar.gz
Patch1: external-sqlite.diff
Patch4: digikam-gphoto-disk.patch
Patch5: digikam-load.diff
Patch7: digikam-print.diff
Patch9: renamepreview.patch
Patch10: kde3-digikam-0.9.6-gcc45.patch
Patch11: digikam-0.9.6-libpng-1.4.patch
Patch12: digikam-libpng15+gcc47_1.diff
Patch13: digikam-gphoto2-fix-build.patch
Patch14: digikam-trinity-gcc6.patch
Patch15: digikam-trinity-slideshow.patch
Patch16: digikam-trinity-rotated-image-save.patch
Patch17: digikam-trinity-ftbfs-arm.patch
Requires: imlib2-loaders
Requires: %{name}-lang = %{version}
Provides: digikamimageplugins-lang = 0.9.1
Obsoletes: digikamimageplugins-lang <= 0.9.1
Provides: digikam = 0.9.5
Obsoletes: digikam <= 0.9.5
Obsoletes: digikam-lang <= 0.9.5
%description
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.
%package -n libdigikam-devel
License: GPL-2.0-or-later
Group: Hardware/Camera
Summary: A KDE Photo Manager
Requires: kdelibs3-devel
Requires: libkdcraw4-devel libkexiv2-5-devel
Requires: libjasper-devel libgphoto2-devel
%description -n libdigikam-devel
digiKam is a simple digital photo management application for KDE, which
makes importing and organizing digital photos easy. The photos can be
organized in albums, which can be sorted chronologically, by directory
layout, or by custom collections. An easy-to-use interface is provided
that enables you to connect to your camera and preview, download, and
delete your images.
%package -n digikamimageplugins
License: GPL-2.0-or-later
Group: Productivity/Graphics/Viewers
Summary: Image Manipulation Plug-Ins
Recommends: digikamimageplugins-superimpose
%description -n digikamimageplugins
Various plug-ins for the image editor in Digikam:
* AdjustLevels : A plug-in adjusting the image histogram levels
manually.
* SolarizeImage : A plug-in for solarizing an image.
* Despeckle : A noise reduction filter.
* OilPaint : An oil painting effect filter.
* Emboss : An embossed image effect filter.
* Charcoal : A charcoal drawing image effect filter.
* Unsharp : An unsharped mask image filter.
* RainDrop : Adding raindrops randomly in an image.
* FilmGrain : Adding film grain in an image.
%package -n digikamimageplugins-superimpose
License: GPL-2.0-or-later
Group: Productivity/Graphics/Viewers
Summary: Templates for Digikam's Superimpose Plugin
%description -n digikamimageplugins-superimpose
This package contains templates for the Superimpose plugin of Digikam.
%lang_package
%prep
%setup -q -n digikam-%rversion
rm -rf digikam/sqlite
#patch -P 1
#patch -P 4 -p1
#patch -P 5 -p0
%patch -P 7
%patch -P 9
%patch -P 10
%patch -P 11 -p1
%patch -P 13 -p1
%patch -P 12 -p1
%patch -P 14 -p1
%patch -P 15 -p1
%patch -P 16 -p1
%patch -P 17 -p1
sed -i 's|lcms/|lcms2/|g' configure
sed -i 's|lcms.h|lcms2.h|g' configure
%build
. /etc/opt/kde3/common_options
update_admin --no-unsermake
export CXXFLAGS="$CXXFLAGS -fpermissive"
export PKG_CONFIG_PATH=/opt/kde3/%_lib/pkgconfig
./configure $configkde --disable-final --without-included-sqlite3
make VERBOSE=1 %{?jobs:-j%jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
tar xvzf %SOURCE4 -C $RPM_BUILD_ROOT
#
# install superimpose templates
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/apps/digikamimageplugins/superimpose/
tar xfj %SOURCE3 -C $RPM_BUILD_ROOT/opt/kde3/share/apps/digikamimageplugins/superimpose/
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/config/
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/opt/kde3/share/config/
%fdupes -s $RPM_BUILD_ROOT
kde_post_install
%find_lang digikam
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files lang -f digikam.lang
%defattr(-,root,root)
%dir /opt/kde3/share/locale/fa
%dir /opt/kde3/share/locale/fa/LC_MESSAGES
%dir /opt/kde3/share/locale/mk
%dir /opt/kde3/share/locale/mk/LC_MESSAGES
%dir /opt/kde3/share/locale/cy
%dir /opt/kde3/share/locale/cy/LC_MESSAGES
%dir /opt/kde3/share/locale/ms
%dir /opt/kde3/share/locale/ms/LC_MESSAGES
%dir /opt/kde3/share/locale/rw
%dir /opt/kde3/share/locale/rw/LC_MESSAGES
%files
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/%_lib/*.so.*
%exclude /opt/kde3/%_lib/kde3/digikamimageplugin*.la
%exclude /opt/kde3/%_lib/kde3/digikamimageplugin*.so
/opt/kde3/%_lib/kde3/*
/opt/kde3/share/appl*/*/*.desktop
%exclude /opt/kde3/share/apps/digikam/digikamimageplugin_*
%exclude /opt/kde3/share/apps/digikamimageplugins
/opt/kde3/share/apps/*
/opt/kde3/share/icons/*
%exclude /opt/kde3/share/services/digikamimageplugin_*.desktop
/opt/kde3/share/services/*
/opt/kde3/share/servicetypes/digikamimageplugin.desktop
/opt/kde3/share/man/man1/digitaglinktree.1
%dir /opt/kde3/share/doc/HTML/en/digikam-%rversion-apidocs
%files -n libdigikam-devel
%defattr(-,root,root)
/opt/kde3/include/digikam
/opt/kde3/include/digikam_export.h
/opt/kde3/%_lib/libdigikam.so
/opt/kde3/%_lib/libdigikam.la
%files -n digikamimageplugins
%defattr(-,root,root)
/opt/kde3/%_lib/kde3/digikamimageplugin*.la
/opt/kde3/%_lib/kde3/digikamimageplugin*.so
%exclude /opt/kde3/share/apps/digikamimageplugins
/opt/kde3/share/apps/digikamimageplugins
/opt/kde3/share/apps/digikam/digikamimageplugin_*
/opt/kde3/share/config/digikamrc
/opt/kde3/share/services/digikamimageplugin_*.desktop
%files -n digikamimageplugins-superimpose
%defattr(-,root,root)
%dir /opt/kde3/share/apps/digikamimageplugins
/opt/kde3/share/apps/digikamimageplugins/superimpose
%changelog