digikam/digikam.spec

171 lines
5.4 KiB
RPMSpec
Raw Normal View History

#
# 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: 2.3.0
Release: 1
License: GPL-2.0+
Summary: A KDE Photo Manager
Url: http://www.digikam.org/
Group: Productivity/Graphics/Viewers
Source0: http://sourceforge.net/projects/digikam/files/%{name}/%{version}/%{name}-%{version}.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-OPENSUSE digikam-external-libs.patch -- Compile with external libs
Patch1: digikam-external-libs.patch
BuildRequires: boost-devel
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: lensfun-devel
BuildRequires: libgphoto2-devel
BuildRequires: libjasper-devel
BuildRequires: libkdcraw-devel
BuildRequires: libkde4-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: libkexiv2-devel
BuildRequires: libkface-devel
BuildRequires: libkgeomap-devel
BuildRequires: libkipi-devel
BuildRequires: liblcms-devel
BuildRequires: liblqr-devel
BuildRequires: libsoprano-devel
BuildRequires: libusb-1_0-devel
BuildRequires: shared-desktop-ontologies-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: kipi-plugins >= 2.1.0
Requires: libqt4-sql-sqlite
Requires: libqt4-sql-mysql
Recommends: %{name}-doc
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%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 doc
Summary: Documentation of Digikam
Group: Documentation/HTML
BuildArch: noarch
%description doc
This package contains the documentation for digikam
%lang_package
%prep
%setup -q
%patch0
%patch1
# Include only digikam translations
find po -name kipiplugin_*.po | xargs rm
find po -name libkgeomap.po | xargs rm
# 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')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" core/digikam/utils/version.h.cmake
%build
%cmake_kde4 -d build -- -DENABLE_INTERNALMYSQL=FALSE
%make_jobs
%install
cd build
%kde4_makeinstall
cd ..
# Remove kipi-plugins docs (included in kipi-plugins package)
rm -rf %{buildroot}%{_kde4_htmldir}/en/kipi-plugins
# Not needed, the package doesn't actually provide any shared libraries
rm -f %{buildroot}%{_kde4_libdir}/libdigikamcore.so
rm -f %{buildroot}%{_kde4_libdir}/libdigikamdatabase.so
# Workaround kde#286034
mv %{buildroot}%{_kde4_iconsdir}/oxygen %{buildroot}%{_kde4_iconsdir}/hicolor
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE Graphics Photography
%suse_update_desktop_file -G "Photo Editor" -r showfoto Qt KDE Graphics Photography
%endif
%find_lang %{name}
%fdupes -s %{buildroot}
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc core/AUTHORS core/COPYING core/COPYING.DOC core/COPYING.LIB
%doc core/ChangeLog core/NEWS core/README core/TODO
%doc core/TODO.FACE core/TODO.MYSQLPORT
%{_kde4_applicationsdir}/digikam.desktop
%{_kde4_applicationsdir}/showfoto.desktop
%{_kde4_appsdir}/digikam/
%{_kde4_appsdir}/showfoto/
%{_kde4_appsdir}/solid
%{_kde4_bindir}/cleanup_digikamdb
%{_kde4_bindir}/digikam
%{_kde4_bindir}/digitaglinktree
%{_kde4_bindir}/showfoto
%{_kde4_iconsdir}/hicolor/*/apps/digikam.*
%{_kde4_iconsdir}/hicolor/*/apps/showfoto.*
%{_kde4_libdir}/libdigikamcore.so.*
%{_kde4_libdir}/libdigikamdatabase.so.*
%{_kde4_modulesdir}/digikam*.so
%{_kde4_modulesdir}/kio_digikamalbums.so
%{_kde4_modulesdir}/kio_digikamdates.so
%{_kde4_modulesdir}/kio_digikammapimages.so
%{_kde4_modulesdir}/kio_digikamsearch.so
%{_kde4_modulesdir}/kio_digikamtags.so
%{_kde4_servicesdir}/digikamalbums.protocol
%{_kde4_servicesdir}/digikamdates.protocol
%{_kde4_servicesdir}/digikamimageplugin_*.desktop
%{_kde4_servicesdir}/digikammapimages.protocol
%{_kde4_servicesdir}/digikamnepomukservice.desktop
%{_kde4_servicesdir}/digikamsearch.protocol
%{_kde4_servicesdir}/digikamtags.protocol
%{_kde4_servicetypesdir}/digikamimageplugin.desktop
%files doc
%defattr(-,root,root,-)
%doc %{_kde4_htmldir}/en/digikam/
%doc %{_kde4_htmldir}/en/showfoto/
%doc %{_mandir}/man1/cleanup_digikamdb.1%{ext_man}
%doc %{_mandir}/man1/digitaglinktree.1%{ext_man}
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/digikam
%exclude %{_kde4_htmldir}/en/showfoto
%changelog