File kipi-plugins.spec of Package kipi-plugins

#
# spec file for package kipi-plugins (Version 0.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/
#

# norootforbuild

%bcond_with opencv

Name:           kipi-plugins
BuildRequires:  imlib2-devel libkdcraw-devel libkdepim4-devel libkexiv2-devel libkipi-devel
BuildRequires:  cmake libexpat-devel libgcrypt-devel libgphoto2-devel libksane-devel
%if %{with opencv}
BuildRequires:  libopencv-devel
%endif
BuildRequires:  gdk-pixbuf-devel libgpod-devel
# gtk2 package contains gdk-pixbuf pkg-config file. The BR should be deleted once fixed
BuildRequires:  gtk2-devel
License:        BSD 3-clause (or similar) ; GPL v2 or later ; LGPL v2.1 or later ; MIT License (or similar)
Url:            http://www.kipi-plugins.org/
Group:          Productivity/Graphics/Other
Summary:        KDE Plug-Ins for Image Manipulation
Version:        0.6
Release:        1
%define rversion 0.6.0
Recommends:     dcraw
Requires:       /usr/bin/jpegtran
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%{rversion}.tar.bz2
Provides:       kde4-kipi-plugins = 0.2
Obsoletes:      kde4-kipi-plugins <= 0.2

%description
A set of plug-ins for the KDE KIPI interface, used by some KDE imaging
applications.



Authors:
--------
    Renchi Raju <renchi at pooh.tam.uiuc.edu>
    Gilles Caulier <caulier dot gilles at free.fr>
    Jesper K. Pedersen <blackie at kde.org>
    
    CONTRIBUTORS :
    Aurelien Gateau <aurelien dot gateau at free.fr>
    Todd Shoemaker <todd at theshoemakers.net>
    Gregory Kokanosky <gregory dot kokanosky at free.fr>
    Richard Groult <Richard dot Groult at jalix.org>
    Ralf Hoelzer <kde at ralfhoelzer dot com>

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
%lang_package

%prep
%setup -q -n %name-%rversion
mv advancedslideshow/hi22-action-slideshow.png advancedslideshow/hi32-action-slideshow.png

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall
cd ..
%kde_post_install
rm -rf $RPM_BUILD_ROOT/usr/share/locale/x-test
rm $RPM_BUILD_ROOT/usr/share/applications/kde4/dngconverter.desktop
for l in kipiplugin_acquireimages kipiplugin_batchprocessimages kipiplugin_dngconverter kipiplugin_flashexport kipiplugin_flickrexport kipiplugin_galleryexport kipiplugin_gpssync kipiplugin_htmlexport kipiplugin_imageviewer kipiplugin_jpeglossless kipiplugin_metadataedit kipiplugin_picasawebexport kipiplugin_rawconverter kipiplugin_sendimages kipiplugin_advancedslideshow kipiplugin_timeadjust kipiplugin_wallpaper kipiplugins kipiplugin_calendar kipiplugin_ipodexport kipiplugin_removeredeyes kipiplugin_facebook kipiplugin_smug kipiplugin_printimages; do
  %find_lang $l suse.lang
done

%clean
rm -rf $RPM_BUILD_ROOT

%files lang -f suse.lang
%defattr(-,root,root)

%files
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README
/usr/bin/dngconverter
/usr/share/applications/kde4/kipiplugins.desktop
%_kde4_modules/kipiplugin_calendar.so
%_kde4_modules/kipiplugin_ipodexport.so
%_kde4_modules/kipiplugin_batchprocessimages.so
%_kde4_modules/kipiplugin_dngconverter.so
%_kde4_modules/kipiplugin_facebook.so
%_kde4_modules/kipiplugin_flashexport.so
%_kde4_modules/kipiplugin_flickrexport.so
%_kde4_modules/kipiplugin_gpssync.so
%_kde4_modules/kipiplugin_htmlexport.so
%_kde4_modules/kipiplugin_imageviewer.so
%_kde4_modules/kipiplugin_jpeglossless.so
%_kde4_modules/kipiplugin_metadataedit.so
%_kde4_modules/kipiplugin_picasawebexport.so
%_kde4_modules/kipiplugin_printimages.so
%_kde4_modules/kipiplugin_rawconverter.so
%_kde4_modules/kipiplugin_sendimages.so
%_kde4_modules/kipiplugin_smug.so
%_kde4_modules/kipiplugin_timeadjust.so
%_kde_share_dir/apps/kipiplugin_htmlexport
%_kde_share_dir/apps/kipiplugin_imageviewer
%_kde_share_dir/apps/kipiplugin_metadataedit
%_kde_share_dir/services/kipiplugin_flickrexport.desktop
%_kde_share_dir/services/kipiplugin_gpssync.desktop
%_kde_share_dir/services/kipiplugin_htmlexport.desktop
%_kde_share_dir/services/kipiplugin_imageviewer.desktop
%_kde_share_dir/services/kipiplugin_jpeglossless.desktop
%_kde_share_dir/services/kipiplugin_metadataedit.desktop
%_kde_share_dir/services/kipiplugin_picasawebexport.desktop
%_kde_share_dir/services/kipiplugin_rawconverter.desktop
%_kde_share_dir/services/kipiplugin_sendimages.desktop
%_kde_share_dir/services/kipiplugin_timeadjust.desktop
%_kde_share_dir/services/kipiplugin_dngconverter.desktop
%_kde_share_dir/services/kipiplugin_calendar.desktop
%_kde_share_dir/services/kipiplugin_ipodexport.desktop
%_kde_share_dir/services/kipiplugin_smug.desktop
%_kde_share_dir/services/kipiplugin_advancedslideshow.desktop
%_libdir/libkipiplugins.so
%_libdir/libkipiplugins.so.1
%_libdir/libkipiplugins.so.1.0.0
%_kde4_modules/kipiplugin_galleryexport.so
%_kde4_modules/kipiplugin_acquireimages.so
%_kde_share_dir/services/kipiplugin_acquireimages.desktop
%_kde4_modules/kipiplugin_advancedslideshow.so
%_kde_share_dir/apps/kipiplugin_advancedslideshow
%if %{with opencv}
%_kde4_modules/kipiplugin_removeredeyes.so
%_kde_share_dir/apps/kipiplugin_removeredeyes
%_kde_share_dir/services/kipiplugin_removeredeyes.desktop
%endif
%_kde_share_dir/apps/kipiplugin_facebook
%_kde_share_dir/apps/kipiplugin_flashexport
%_kde_share_dir/apps/kipiplugin_flickrexport
%_kde_share_dir/apps/kipiplugin_galleryexport
%_kde_share_dir/apps/kipiplugin_picasawebexport
%_kde_share_dir/apps/kipiplugin_smug
%_kde_share_dir/apps/kipiplugin_printimages
%_kde_share_dir/services/kipiplugin_galleryexport.desktop
%_kde_share_dir/services/kipiplugin_batchprocessimages.desktop
%_kde_share_dir/services/kipiplugin_facebook.desktop
%_kde_share_dir/services/kipiplugin_flashexport.desktop
%_kde_share_dir/services/kipiplugin_printimages.desktop
/usr/share/icons/oxygen/*/apps/rawconverter.*
/usr/share/icons/hicolor/16x16/actions/gpsimagetag.png
/usr/share/icons/hicolor/16x16/actions/ogl.png
/usr/share/icons/hicolor/32x32/actions/slideshow.png
/usr/share/icons/oxygen/*/apps/dngconverter.*
/usr/share/icons/hicolor/32x32/actions/flip-horizontal.png
/usr/share/icons/hicolor/32x32/actions/gpsimagetag.png
/usr/share/icons/hicolor/32x32/actions/grayscaleconvert.png
/usr/share/icons/hicolor/32x32/actions/ogl.png
/usr/share/icons/hicolor/32x32/actions/timeadjust.png
/usr/share/icons/hicolor/32x32/actions/borderimages.png
/usr/share/icons/hicolor/32x32/actions/colorimages.png
/usr/share/icons/hicolor/32x32/actions/convertimages.png
/usr/share/icons/hicolor/32x32/actions/effectimages.png
/usr/share/icons/hicolor/32x32/actions/filterimages.png
/usr/share/icons/hicolor/32x32/actions/recompressimages.png
/usr/share/icons/hicolor/32x32/actions/renameimages.png
/usr/share/icons/hicolor/32x32/actions/resizeimages.png
/usr/share/icons/hicolor/64x64/actions/metadataedit.png
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif

%changelog
openSUSE Build Service is sponsored by