b8e7fbacec
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/digikam?expand=0&rev=78
178 lines
5.7 KiB
RPMSpec
178 lines
5.7 KiB
RPMSpec
#
|
|
# 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.1.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-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
|
|
# PATCH-FIX-OPENSUSE digikam-external-libs.patch -- Compile with external libs
|
|
Patch2: digikam-external-libs.patch
|
|
# PATCH-FIX-OPENSUSE disable-unsupported-cmake-policy.patch idoenmez@suse.de -- Remove unsupported cmake policy
|
|
Patch3: disable-unsupported-cmake-policy.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 >= %{version}
|
|
Recommends: %{name}-lang
|
|
Recommends: %{name}-doc
|
|
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 doc
|
|
|
|
|
|
Summary: Documentation of Digikam
|
|
Group: Documentation/HTML
|
|
%if %suse_version > 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description doc
|
|
This package contains the documentation for digikam
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
rm po/*/kipi*
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
|
|
# 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 ..
|
|
|
|
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
|
|
|
|
%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} --all-name
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
%kde_post_install
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%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_bindir}/cleanup_digikamdb
|
|
%{_kde4_bindir}/digikam
|
|
%{_kde4_bindir}/digitaglinktree
|
|
%{_kde4_bindir}/showfoto
|
|
%{_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_libdir}/libdigikamcore.so.*
|
|
%{_kde4_libdir}/libdigikamdatabase.so.*
|
|
%{_kde4_applicationsdir}/digikam.desktop
|
|
%{_kde4_applicationsdir}/showfoto.desktop
|
|
%{_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}/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/digitaglinktree.1%{ext_man}
|
|
%doc %{_mandir}/man1/cleanup_digikamdb.1%{ext_man}
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%exclude %{_kde4_htmldir}/en/digikam
|
|
%exclude %{_kde4_htmldir}/en/showfoto
|
|
|
|
%changelog
|