File kipi-plugins.spec of Package kipi-plugins

#
# spec file for package kipi-plugins (Version 0.1.5)
#
# Copyright (c) 2008 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:           kipi-plugins
BuildRequires:  imlib2-devel kdelibs3-devel kdepim3-devel libgcrypt-devel libkipi-devel
%if %suse_version > 1100
BuildRequires:  libkdcraw3-devel libkexiv2-3-devel
%else
BuildRequires:  libkdcraw-devel libkexiv2-devel
%endif
%if %suse_version > 1010
BuildRequires:  libgphoto2-devel
%endif
%if %suse_version > 1020
BuildRequires:  libgpod-devel
%endif
License:        BSD 3-Clause; GPL v2 or later; LGPL v2.1 or later; X11/MIT
Group:          Productivity/Graphics/Other
Summary:        KDE Plug-Ins for Image Manipulation
Version:        0.1.5
Release:        65
%define rversion %version
Recommends:     dcraw mjpegtools ImageMagick vorbis-tools mpg123
Requires:       /usr/bin/jpegtran
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%{rversion}.tar.bz2
Patch0:         kipi-plugins-0.1.5-rc1.diff
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif

%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
%patch0
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
export PKG_CONFIG_PATH=/opt/kde3/%_lib/pkgconfig
./configure $configkde --disable-final
make

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%find_lang %name
for i in kipiplugins kipiplugin_calendar kipiplugin_htmlexport kipiplugin_rawconverter kipiplugin_slideshow kipiplugin_timeadjust kipiplugin_wallpaper kipiplugin_acquireimages kipiplugin_cdarchiving kipiplugin_findimages kipiplugin_flickrexport kipiplugin_galleryexport kipiplugin_gpssync kipiplugin_imagesgallery kipiplugin_jpeglossless kipiplugin_kameraklient kipiplugin_mpegencoder kipiplugin_printwizard kipiplugin_sendimages kipiplugin_batchprocessimages kipiplugin_metadataedit kipiplugin_viewer kipiplugin_ipodexport kipiplugin_sync
do
	%find_lang $i %name.lang
done
# fix broken .la files
for i in $RPM_BUILD_ROOT/opt/kde3/lib*/kde3/*.la ; do
 sed "s,-L/usr/src/packages/BUILD/kipi-plugins-%rversion/kipi-plugins/common/libkipiplugins ,," \
   "$i" > "$i"_ && mv "$i"_ "$i"
done
kde_post_install

%clean
rm -rf $RPM_BUILD_ROOT
%if %suse_version > 1020

%files lang -f %name.lang

%files
%else

%files -f %name.lang
%endif
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README
/opt/kde3/%_lib/libkipiplugins.*
/opt/kde3/%_lib/kde3/kipiplugin_*
/opt/kde3/share/apps/kipi
/opt/kde3/share/apps/kipiplugin_*
/opt/kde3/share/services/kipiplugin_*.desktop
/opt/kde3/share/config.kcfg/*.kcfg
/opt/kde3/bin/*
%_mandir/man*/*

%changelog
* Mon Nov 17 2008 stbinner@suse.de
- add recommends to requirements of images2mpg script (bnc#431588)
* Wed Nov 05 2008 dmueller@suse.de
- update buildrequires
* Tue May 06 2008 dmueller@suse.de
- update to 0.1.5:
  * SimpleViewerExport : plugin is now compatible with SimpleViewer version 1.8.x.
  * SimpleViewerExport : plugin now support RAW files format.
  * PrintWizard    : caption can contain more exif info
  * over 15 bug fixes
* Tue May 06 2008 coolo@suse.de
- fix build
* Sun Dec 30 2007 coolo@suse.de
- update to version 0.1.5rc1
  * PrintWizard: Added raw file management, now raw files can be printed.
  * SlideShow: Solved minor issue in filename printing (2D slideshow).
  New caching mechanism
  Added Ken Burns effect
  * Calendar: Fixed recurring events not showing (only first date was showed)
  Setting special events only once (before printing),
  instead of one for every page.
* Fri Jul 27 2007 adrian@suse.de
- add kdepim3-devel to BuildRequires: to compile also the CalendarPlugin
* Thu Jul 26 2007 bvirlet@suse.de
- update to version 0.1.4
  * HTMLExport: new themes
  * SlideShow: usability improvments
  * ImageViewer: OpenGL base image viewer
  * PrintWizard: can print 8 photos per page (A4)
  * GPSSync: new plugin to export GPS locations to Google Maps/Google Earth
  * Lots of bug fixes
* Fri Jun 08 2007 dmueller@suse.de
- call kde_post_install
* Mon Jun 04 2007 stbinner@suse.de
- fix build on older distributions
* Sun May 20 2007 stbinner@suse.de
- fix packages requires
* Mon May 14 2007 coolo@suse.de
- split translations into special package
* Thu Apr 19 2007 dmueller@suse.de
- update to build against current libkexif
* Mon Jan 29 2007 stbinner@suse.de
- update to version 0.1.3:
  * GalleryExport : Add preliminary support for Gallery 2.2
  security features
  * SendImages : Solved problems with filenames and commandline
  with thunderbird and mozilla
* Mon Jan 29 2007 coolo@suse.de
- fix rotation of scanned pictures (no EXIF data)
* Wed Jan 03 2007 adrian@suse.de
- update to version 0.1.3 rc 1
  * New Plugin : MetadataEdit : New kipi plugin to edit EXIF and
  IPTC pictures metadata
  * New Plugin : GPSSync : New kipi plugin to sync photo metadata
  with a GPS device
  * New, but still disabled Plugin: iPod export, needs newer libgpod
  * switched from libkexif to libexiv2
  * improved RAWConverter with integrated dcraw
- enable mpeg encoder plugin for people who have it installed
  on their own
- clean up of BuildRequires
* Thu Oct 26 2006 meissner@suse.de
- libgphoto2-devel starts after 1010
* Thu Oct 26 2006 meissner@suse.de
- fixed recommends -> buildrequires
* Sat Oct 21 2006 meissner@suse.de
- added buildrequires libgphoto2-devel
* Thu Oct 19 2006 meissner@suse.de
- fixed build with newest libgphoto2.
* Mon Oct 16 2006 wstephenson@suse.de
- update to version 0.1.2
  * fix Flickr upload
  * add plugins:
    - Find Duplicate images
    - Batch Process Images
    - HTML export
* Mon Jun 19 2006 stbinner@suse.de
- add missing dependency for jpeg-lossless plugin build
* Mon May 22 2006 adrian@suse.de
- update to version 0.1.0 rc 2
  * new images gallery export (html export by Aurelien Gateau)
  * new SimpleViewer plugin (by Joern Ahrens)
  * fixed bugs
  * images gallery #120242 #112025 #106152 #119933 #99418 #103449 #110596 #116605
  *jpeglossless #123499
  * kamera klient #99157
  * print wizard #98286 #101495 #117670
  * batch process images #108945 #117397 #114512
  * calendar #120868 #118936
  * mpeg encoder #109739 #114514 #114515
  * acquire images #114519
  * raw converter #101455 #101455 #103763 #103763 #118407
  * send images #119562
  * slideshow #119867
- fix build for plain 10.0 distro in openSUSE build service
* Wed Feb 08 2006 stbinner@suse.de
- fix thumbnails in kameraklient image importer (#145891)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 dmueller@suse.de
- fix file list
* Thu Nov 17 2005 stbinner@suse.de
- fix build with older PLUS distributions
* Mon Oct 24 2005 stbinner@suse.de
- update to version 0.1.0 rc 1
* Tue Aug 02 2005 llunak@suse.cz
- Fix #96267 (k3b path set to /usr/bin/k3b)
* Sat Mar 12 2005 coolo@suse.de
- repackage tarball to get translations
* Tue Feb 08 2005 adrian@suse.de
- update to version 0.1.0 beta 2
* Sun Oct 24 2004 adrian@suse.de
- add libkipi-devel to nfb
* Tue Oct 19 2004 adrian@suse.de
- update to version 0.1 beta 1
- enable kamera plugin again
* Mon Oct 04 2004 coolo@suse.de
- applying patch to fix screenshot (#46723)
* Thu Sep 30 2004 adrian@suse.de
- the gphoto2/kameraplugin does not work atm, disabling it again.
* Mon Sep 20 2004 adrian@suse.de
- update to current cvs
- fix libkexif detection
* Wed Sep 08 2004 adrian@suse.de
- update to current cvs
- enable gphoto kamera client
* Thu Jul 29 2004 adrian@suse.de
- initial package of todays cvs snapshot
openSUSE Build Service is sponsored by