File libkdcraw4.spec of Package libkdcraw4

#
# spec file for package libkdcraw4 (Version 0.1.8)
#
# 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:           libkdcraw4
Url:            http://www.digikam.org/
BuildRequires:  kdelibs3-devel
License:        GPL v2 or later
Group:          Development/Libraries/KDE
Summary:        Shared library interface around dcraw
Version:        0.1.8
Release:        51
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        libkdcraw-%{version}.tar.bz2
Patch0:         libkdcraw_ldadd.diff
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif

%description
Libkdcraw is a C++ interface around dcraw binary program used to decode
RAW picture files.  The library documentation is available on header
files.

This library is used by kipi-plugins, digiKam and others kipi host
programs.



Authors:
--------
    Caulier Gilles <caulier dot gilles at gmail dot com>
    Marcel Wiesweg <marcel dot wiesweg at gmx dot de>

%package -n libkdcraw4-devel
License:        LGPL v2.1 or later
Summary:        Shared library interface around dcraw
Group:          Development/Libraries/KDE
Requires:       %name = %version
Requires:       kdelibs3-devel

%description -n libkdcraw4-devel
Libkdcraw is a C++ interface around dcraw binary program used to decode
RAW picture files.  The library documentation is available on header
files.

This library is used by kipi-plugins, digiKam and others kipi host
programs.



Authors:
--------
    Caulier Gilles <caulier dot gilles at gmail dot com>
    Marcel Wiesweg <marcel dot wiesweg at gmx dot de>

%if %suse_version > 1020
%lang_package
%endif

%prep
%setup -q -n libkdcraw-%{version}
. /etc/opt/kde3/common_options
%patch0
update_admin

%build
. /etc/opt/kde3/common_options
./configure $configkde
make

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install
%find_lang libkdcraw

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libkdcraw4-devel
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README 
%dir /opt/kde3/%_lib/pkgconfig
/opt/kde3/%_lib/pkgconfig/libkdcraw.pc
/opt/kde3/include/libkdcraw
/opt/kde3/%_lib/libkdcraw.so
/opt/kde3/%_lib/libkdcraw.la
%if %suse_version > 1020

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

%files
%else

%files -f libkdcraw.lang
%endif
%defattr(-,root,root)
/opt/kde3/%_lib/libkdcraw.so.*
#/opt/kde3/%_lib/libkdcraw3
/opt/kde3/share/icons/hicolor/*x*/apps/kdcraw.png

%changelog
* Mon Apr 20 2009 dmueller@suse.de
- fix build for older distros again
* Wed Feb 25 2009 wstephenson@suse.de
- rename to libkdcraw4
- update to 0.1.8:
  Updated to libraw 0.6.13:
   - Bugfixes in RIFF reading code. .
  Updated to libraw 0.6.12:
   - Hasselblad V96C support.
  Updated to libraw 0.6.11:
   - Fixed serious bug in loading metadata from external JPG file.
  Updated to libraw 0.6.10:
   - Support for loading White Balance data from Sony ARW files
  edited with Sony IDC software.
  Updated to libraw 0.6.9:
   - Better support for Samsung S85.
   - Fixed possible integer overflow in wavelet denoising code.
  Updated to libraw 0.6.8:
   - Changes in QuickTake 100 files processing.
  Updated to libraw 0.6.7:
   - Added support for Samsung S85.
   - Changes in external jpeg (metadata) processing.
  Updated to libraw 0.6.6:
   - Changes in Panasonic FZ50 processing code.
  Updated to libraw 0.6.5:
   - Fixed file descriptor and buffer memory leak when thumbnail
  extractor is called, but library object is not properly
  initialized.
   - Fixes in Imacon files unpacking.
   - Fixes in Hasselblad .fff files unpacking.
  Fix PPM color preview extraction.
- update to 0.1.7:
  - Updated to LibRaw 0.6.3 : NEF processing code changed
  (some overflow control added).
  - Updated to LibRaw 0.6.2.
  New cameras: Canon G10 & 5D Mk2, Leaf AFi 7, Leica D-LUX4,
  Panasonic FX150 & G 1, Fujifilm IS Pro.
- update to 0.1.6:
  - Updated to LibRaw 0.6.1.
  Ported to LibRaw 0.6.0 Api. Removed dcraw.c and DcrawBinary class.
  New cameras: Canon 50D, Sony A900, Nikon D90 & P6000,
  Panasonic LX3 FZ28.
- update to 0.1.5:
  - API changed: Add white point settings support (dcraw -S option)
  Add new method to set/check brigness settings aviability
  Raw decoding settings widget re-designed to group each
  options by features using tabs.
  Add support dcraw options -m -A -P -p -o.
  Add new signal emited when something is changed in settings.
  Add new integer and double slider widgets with
  default values and reset buttons.
  Add new combo box widget with a default item and reset button.
  Add new method to extract whole embedded JPEG image data as a
  byte array.
  - Updated dcraw to 8.87
  New camera : Kodak C603, Nikon D700, Canon EOS 1000D,
  Canon PowerShot SD300, and Olympus E-520.
  Removed useless code from ppg_interpolate().
  - Updated dcraw to 8.86
  New camera : Sony A300.
  Fixed camera WB on the A200.
  Set model-specific saturation levels in adobe_coeff().
  No new options introduced.
  - Updated dcraw to 8.85
  New camera : Olympus E-420.
  No new options introduced.
  - Updated dcraw to 8.84
  New cameras: Canon EOS 450D, Nikon D60, and Fuji S100FS.
  Copied new matrices from Adobe DNG Converter 4.4.
  sRAW support in 1.393 broke Fuji DNG files, now fixed.
  No new options introduced.
* Mon Feb 16 2009 coolo@suse.de
- fix build with sr@Latn
* Tue Dec 16 2008 coolo@suse.de
- require lang subpackage
* Wed Nov 05 2008 dmueller@suse.de
- rename libkdcraw-devel to libkdcraw3-devel
* Wed May 07 2008 dmueller@suse.de
- update to 0.1.4:
  - updated dcraw to 8.83
  new cameras: Apple QuickTake 200, Fuji IS-1, Sony DSLR-A350, Pentax K20D,
  Nokia N95, Canon PowerShots A460, Canon PowerShots A530,
  Canon PowerShots A650.
  Sony DSLR-A200, Sony DSLR-A700, Sony XCD-SX910CR, STV680 VGA
  no new options introduced.
* Sun Dec 30 2007 coolo@suse.de
- update to version 0.1.3
  Updated dcraw to 8.80
  New cameras: Hasselblad H3D, Olympus E-3, Canon EOS 40D,
  Canon PowerShot G9, Canon EOS-1Ds Mark III, AVT F-080C,
  Nikon D3, Nikon D300, Nikon Coolpix S6, Panasonic DMC-FZ18,
  Sony DSLR-A700
  Updated dcraw to 8.81
  New cameras: Canon G7, Fuji FinePix S9100/S9600,
  Olympus SP560UZ, Panasonic DMC-L10
* Mon Oct 29 2007 dmueller@suse.de
- rename package after so version bump in last checkin
* Sun Oct 21 2007 coolo@suse.de
- update to version 0.1.2:
  * updated internal dcraw from 8.60 to 8.77. API changed
  * add new chromatic aberration reduction options
* Mon Aug 06 2007 dmueller@suse.de
- fix package name
* Mon Jun 18 2007 stbinner@suse.de
- update to version 0.1.1:
  * KDcraw destructor is now virtual.
  * Added DcrawSettingsContainer destructor.
  * Separate embedded JPEG preview extraction and half decoding
  methods to get a preview of RAW pictures.
* Thu Apr 19 2007 dmueller@suse.de
- Initial package (0.0.0svn655772)