digikam/digikam.spec

176 lines
5.1 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.0.0
Release: 1
License: GPLv2+
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
Patch1: digikam-buildtime.patch
Patch2: digikam-external-libs.patch
BuildRequires: doxygen
BuildRequires: graphviz-devel
BuildRequires: lensfun-devel
BuildRequires: libexiv2-devel
BuildRequires: libexpat-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgphoto2-devel
BuildRequires: libgpod-devel
BuildRequires: libjasper-devel
BuildRequires: libkdcraw-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: libkexiv2-devel
BuildRequires: libkface-devel
BuildRequires: libkipi-devel
BuildRequires: libkgeomap-devel
BuildRequires: libksane-devel
BuildRequires: liblqr-devel
BuildRequires: libqca2-devel
BuildRequires: libqimageblitz-devel
BuildRequires: libqjson-devel
BuildRequires: marble-devel
BuildRequires: opencv-devel
BuildRequires: soprano-backend-redland
BuildRequires: sqlite-devel
BuildRequires: pkgconfig(gtk+-2.0)
Requires: kipi-plugins >= 2.0.0
Requires: oxygen-icon-theme
Recommends: %{name}-lang = %{version}
Recommends: %{name}-doc = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%kde4_pimlibs_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 devel
License: GPLv2+
Summary: Development Headers for Digikam
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
Requires: kipi-plugins >= 1.9.0
%description devel
digiKam is a simple digital photo management application for KDE. This
package contains its build environment.
%package doc
License: LGPLv2.1+
Group: System/GUI/KDE
Summary: Documentation for Digikam
%description doc
This package contains the documentation for Digikam
%lang_package
%prep
%setup -q -n %{name}-%{version}
rm po/*/kipi*
%patch1
%patch2
%build
%cmake_kde4 -d build -- -DENABLE_INTERNALMYSQL=FALSE
%make_jobs
%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file digikam Graphics Photography
%suse_update_desktop_file showfoto Graphics Photography
rm -rf %{buildroot}%{_datadir}/locale/x-test
rm -rf %{buildroot}%{_kde4_htmldir}/en/kipi-plugins
%find_lang %{name} --all-name
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
rm -rf filelists
%files devel
%defattr(-,root,root)
%{_libdir}/libdigikamcore.so
%{_libdir}/libdigikamdatabase.so
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/digikam
%files doc
%defattr(-,root,root)
%dir %{_kde4_htmldir}/en/digikam
%dir %{_kde4_htmldir}/en/showfoto
%doc %{_kde4_htmldir}/en/digikam/*
%doc %{_kde4_htmldir}/en/showfoto/*
%files
%defattr(-,root,root)
%doc core/ChangeLog core/NEWS
%{_bindir}/digikam
%{_bindir}/digitaglinktree
%{_bindir}/showfoto
%{_bindir}/cleanup_digikamdb
%_kde4_modules/digikam*.so
%_kde4_modules/kio_digikamalbums.so
%_kde4_modules/kio_digikamdates.so
%_kde4_modules/kio_digikamsearch.so
%_kde4_modules/kio_digikamtags.so
%{_datadir}/applications/kde4/digikam.desktop
%{_datadir}/applications/kde4/showfoto.desktop
%{_datadir}/icons/hicolor/*/apps/digikam.*
%{_datadir}/icons/hicolor/*/apps/showfoto.*
%_kde_share_dir/apps/digikam
%_kde_share_dir/apps/showfoto
%_kde_share_dir/services/digikamalbums.protocol
%_kde_share_dir/services/digikamdates.protocol
%_kde_share_dir/services/digikam*.desktop
%_kde_share_dir/services/digikamsearch.protocol
%_kde_share_dir/services/digikamtags.protocol
%_kde_share_dir/servicetypes/digikamimageplugin.desktop
%{_mandir}/man1/digitaglinktree.1.gz
%{_mandir}/man1/cleanup_digikamdb.1.gz
%dir %{_datadir}/kde4/apps/solid
%dir %{_datadir}/kde4/apps/solid/actions
%_kde_share_dir/apps/solid/actions/digikam-opencamera.desktop
%{_libdir}/libdigikamcore.so.*
%{_libdir}/libdigikamdatabase.so.*
%_kde4_modulesdir/kio_digikammapimages.so
%_kde4_servicesdir/digikammapimages.protocol
%changelog