digikam/digikam.spec

212 lines
8.1 KiB
RPMSpec

#
# spec file for package digikam (Version 0.10.0)
#
# 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/
#
# norootforbuild
Name: digikam
BuildRequires: graphviz-devel libgphoto2-devel libkdepimlibs4-devel libqimageblitz-devel sqlite-devel
BuildRequires: libkdcraw-devel libkexiv2-devel libkipi-devel marble-devel
%if %suse_version > 1020
BuildRequires: imlib-devel libjasper-devel
%else
BuildRequires: libjasper
%endif
Url: http://www.digikam.org/
License: GPL v2 or later
Group: Productivity/Graphics/Viewers
Summary: A KDE Photo Manager
Version: 0.10.0
Release: 5
%define tar_version 0.10.0
Source0: %name-%{tar_version}.tar.bz2
Patch: CMakeLists.txt.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Recommends: kipi-plugins
Requires: oxygen-icon-theme
Requires: %{name}-lang = %{version}
Provides: kde4-digikam = 0.10.0
Requires: libqt4-sql-sqlite
Obsoletes: kde4-digikam <= 0.10.0
%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.
Authors:
--------
Renchi Raju <renchi@green.tam.uiuc.edu>
%package devel
License: GPL v2 or later
Group: Productivity/Graphics/Viewers
Summary: A KDE Photo Manager Build Environment
Requires: %name = %{version}
%description devel
digiKam is a simple digital photo management application for KDE. This
package contains its build environment.
Authors:
--------
Renchi Raju <renchi@green.tam.uiuc.edu>
%lang_package
%prep
%setup -q -n %name-%{tar_version}
%patch
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
# Move the icons back to /usr/share/icons/hicolor because digikam started installing only to datadir/icons, relying on the theme.
# This is wrong - only oxygen provides a digikam icon
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/{16x16,22x22,32x32,48x48,64x64,128x128}/apps/
for i in {16,22,32,48,64,128}; do mv $RPM_BUILD_ROOT/usr/share/kde4/apps/digikam/icons/oxygen/"$i"x"$i"/apps/digikam.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;done
for i in {16,22,32,48,64,128}; do mv $RPM_BUILD_ROOT/usr/share/kde4/apps/digikam/icons/oxygen/"$i"x"$i"/apps/showfoto.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;done
cd ..
%suse_update_desktop_file digikam Graphics Photography
%suse_update_desktop_file -G "Photo Editor" showfoto Graphics 2DGraphic RasterGraphics
%find_lang %name
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf filelists
%files devel
%defattr(-,root,root)
/usr/include/digikam
/usr/include/digikam_export.h
%_libdir/libdigikamcore.so
%_libdir/libdigikamdatabase.so
%files lang -f %name.lang
%defattr(-,root,root)
%files
%defattr(-,root,root)
/usr/bin/digikam
/usr/bin/digikamthemedesigner
/usr/bin/digitaglinktree
/usr/bin/showfoto
%_kde4_modules/digikamimageplugin_adjustcurves.so
%_kde4_modules/digikamimageplugin_adjustlevels.so
%_kde4_modules/digikamimageplugin_blurfx.so
%_kde4_modules/digikamimageplugin_border.so
%_kde4_modules/digikamimageplugin_channelmixer.so
%_kde4_modules/digikamimageplugin_charcoal.so
%_kde4_modules/digikamimageplugin_colorfx.so
%_kde4_modules/digikamimageplugin_core.so
%_kde4_modules/digikamimageplugin_distortionfx.so
%_kde4_modules/digikamimageplugin_emboss.so
%_kde4_modules/digikamimageplugin_filmgrain.so
%_kde4_modules/digikamimageplugin_freerotation.so
%_kde4_modules/digikamimageplugin_hotpixels.so
%_kde4_modules/digikamimageplugin_infrared.so
%_kde4_modules/digikamimageplugin_inpainting.so
%_kde4_modules/digikamimageplugin_inserttext.so
%_kde4_modules/digikamimageplugin_lenscorrection.so
%_kde4_modules/digikamimageplugin_noisereduction.so
%_kde4_modules/digikamimageplugin_oilpaint.so
%_kde4_modules/digikamimageplugin_perspective.so
%_kde4_modules/digikamimageplugin_raindrop.so
%_kde4_modules/digikamimageplugin_restoration.so
%_kde4_modules/digikamimageplugin_sheartool.so
%_kde4_modules/digikamimageplugin_superimpose.so
%_kde4_modules/digikamimageplugin_texture.so
%_kde4_modules/digikamimageplugin_whitebalance.so
%_kde4_modules/kio_digikamalbums.so
%_kde4_modules/kio_digikamdates.so
%_kde4_modules/kio_digikamsearch.so
%_kde4_modules/kio_digikamtags.so
%_libdir/libdigikamcore.so.*
%_libdir/libdigikamdatabase.so.*
/usr/share/applications/kde4/digikam.desktop
/usr/share/applications/kde4/showfoto.desktop
/usr/share/icons/hicolor/128x128/apps/digikam.png
/usr/share/icons/hicolor/128x128/apps/showfoto.png
/usr/share/icons/hicolor/16x16/apps/digikam.png
/usr/share/icons/hicolor/16x16/apps/showfoto.png
/usr/share/icons/hicolor/22x22/apps/digikam.png
/usr/share/icons/hicolor/22x22/apps/showfoto.png
/usr/share/icons/hicolor/32x32/apps/digikam.png
/usr/share/icons/hicolor/32x32/apps/showfoto.png
/usr/share/icons/hicolor/48x48/apps/digikam.png
/usr/share/icons/hicolor/48x48/apps/showfoto.png
/usr/share/icons/hicolor/64x64/apps/digikam.png
/usr/share/icons/hicolor/64x64/apps/showfoto.png
%_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/digikamimageplugin_adjustcurves.desktop
%_kde_share_dir/services/digikamimageplugin_adjustlevels.desktop
%_kde_share_dir/services/digikamimageplugin_blurfx.desktop
%_kde_share_dir/services/digikamimageplugin_border.desktop
%_kde_share_dir/services/digikamimageplugin_channelmixer.desktop
%_kde_share_dir/services/digikamimageplugin_charcoal.desktop
%_kde_share_dir/services/digikamimageplugin_colorfx.desktop
%_kde_share_dir/services/digikamimageplugin_core.desktop
%_kde_share_dir/services/digikamimageplugin_distortionfx.desktop
%_kde_share_dir/services/digikamimageplugin_emboss.desktop
%_kde_share_dir/services/digikamimageplugin_filmgrain.desktop
%_kde_share_dir/services/digikamimageplugin_freerotation.desktop
%_kde_share_dir/services/digikamimageplugin_hotpixels.desktop
%_kde_share_dir/services/digikamimageplugin_infrared.desktop
%_kde_share_dir/services/digikamimageplugin_inpainting.desktop
%_kde_share_dir/services/digikamimageplugin_inserttext.desktop
%_kde_share_dir/services/digikamimageplugin_lenscorrection.desktop
%_kde_share_dir/services/digikamimageplugin_noisereduction.desktop
%_kde_share_dir/services/digikamimageplugin_oilpaint.desktop
%_kde_share_dir/services/digikamimageplugin_perspective.desktop
%_kde_share_dir/services/digikamimageplugin_raindrop.desktop
%_kde_share_dir/services/digikamimageplugin_restoration.desktop
%_kde_share_dir/services/digikamimageplugin_sheartool.desktop
%_kde_share_dir/services/digikamimageplugin_superimpose.desktop
%_kde_share_dir/services/digikamimageplugin_texture.desktop
%_kde_share_dir/services/digikamimageplugin_whitebalance.desktop
%_kde_share_dir/services/digikamsearch.protocol
%_kde_share_dir/services/digikamtags.protocol
%_kde_share_dir/servicetypes/digikamimageplugin.desktop
%_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
/usr/share/man/man1/digitaglinktree.1.gz
%dir /usr/share/kde4/apps/solid
%dir /usr/share/kde4/apps/solid/actions
/usr/share/kde4/apps/solid/actions/digikam-opencamera.desktop
%changelog