File kde3-kipi-plugins.spec of Package kde3-kipi-plugins
#
# spec file for package kipi-plugins (Version 0.1.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/
#
Name: kde3-kipi-plugins
BuildRequires: imlib2-devel kdelibs3-devel libgcrypt-devel libkipi0-devel
%if %suse_version == 1140 || %suse_version > 1500
BuildRequires: gdk-pixbuf-devel
%endif
BuildRequires: libkdcraw4-devel libkexiv2-5-devel liblcms-devel
BuildRequires: libgphoto2-devel libgpod-devel kdepim3-devel
License: BSD-3-Clause and GPL-2.0-or-later and LGPL-2.1-or-later and X11
Group: Productivity/Graphics/Other
Summary: KDE Plug-Ins for Image Manipulation
Version: 0.1.6
Release: 4
%define rversion %version
Recommends: dcraw mjpegtools ImageMagick vorbis-tools mpg123
Requires: /usr/bin/jpegtran
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: kipi-plugins-%{rversion}.tar.bz2
Patch0: kde3-kipi-plugins-0.1.6-gcc45.patch
%if %suse_version >= 1140
Patch1: libgpod4.patch
%endif
Patch2: kipi-plugins-gcc47.diff
Patch3: kipi-plugins-gphoto2.patch
Recommends: %{name}-lang = %{version}
BuildRequires: fdupes
Provides: kipi-plugins = 0.1.6
Obsoletes: kipi-plugins <= 0.1.6
Obsoletes: kipi-plugins-lang <= 0.1.6
%define _mandir /opt/kde3/share/man
%description
A set of plug-ins for the KDE KIPI interface, used by some KDE imaging
applications.
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%lang_package
%prep
%setup -q -n kipi-plugins-%rversion
%if 0%{?suse_version} > 1120
%patch -P 0
%endif
%if %suse_version >= 1140
%patch -P 1 -p1
%endif
%patch -P 2 -p1
%if %suse_version > 1220
%patch -P 3 -p1
%endif
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build
. /etc/opt/kde3/common_options
export PKG_CONFIG_PATH=/opt/kde3/%_lib/pkgconfig
export CXXFLAGS="$CXXFLAGS -fpermissive -I/usr/include/gdk-pixbuf-2.0"
%if 0%{?suse_version} > 1500
export LDFLAGS="$LDFLAGS `pkg-config -libs gdk-pixbuf-2.0`"
%endif
./configure $configkde --disable-final --disable-kdcraw
%{__make} %{?_smp_mflags}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install
for i in kipi-plugins 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
%fdupes -s $RPM_BUILD_ROOT
%files lang -f %name.lang
%defattr(-,root,root)
%dir /opt/kde3/share/locale/cy
%dir /opt/kde3/share/locale/cy/LC_MESSAGES
%dir /opt/kde3/share/locale/ga
%dir /opt/kde3/share/locale/ga/LC_MESSAGES
%dir /opt/kde3/share/locale/ms
%dir /opt/kde3/share/locale/ms/LC_MESSAGES
%dir /opt/kde3/share/locale/rw
%dir /opt/kde3/share/locale/rw/LC_MESSAGES
%files
%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