File libkdcraw.spec of Package libkdcraw

#
# spec file for package libkdcraw
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define _so 23

Name:           libkdcraw
Version:        15.08.1
Release:        0
Summary:        Shared library interface around dcraw
License:        LGPL-2.0+ and GPL-2.0+ and GPL-3.0+
Group:          Development/Libraries/KDE
Url:            http://www.kde.org
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  libjasper-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libkde4-devel
BuildRequires:  liblcms2-devel
BuildRequires:  libraw-devel
BuildRequires:  openmpi-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  xz
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%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.

%prep
%setup -q -n %{name}-%{version}
%if 0%{?suse_version} > 1320
echo "add_definitions(\${KDE4_ENABLE_EXCEPTIONS})" >> libkdcraw/CMakeLists.txt
%endif

%build
  %cmake_kde4 -d build -- -DENABLE_LCMS2=true -DENABLE_RAWSPEED=true
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %kde_post_install

%clean
  rm -rf %{buildroot}

%package -n %{name}%{_so}
Summary:        Shared library interface around dcraw
Group:          Development/Libraries/KDE
%requires_ge  libqt4-x11

%description -n %{name}%{_so}
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.

%files -n %{name}%{_so}
%defattr(-,root,root)
%_kde4_appsdir/%{name}/
%_kde4_libdir/%{name}.so.*
%_kde4_datadir/icons/hicolor/*/apps/kdcraw.png

%post -n %{name}%{_so} -p /sbin/ldconfig

%postun -n %{name}%{_so} -p /sbin/ldconfig

%package devel
Summary:        Shared library interface around dcraw
Group:          Development/Libraries/KDE
Requires:       %{name}%{_so} = %{version}
Requires:       libkde4-devel

%description 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.

%files devel
%defattr(-,root,root)
%doc COPYING README
%_kde4_includedir/%{name}/
%_kde4_libdir/%{name}.so
%_kde4_libdir/pkgconfig/%{name}.pc

%changelog
openSUSE Build Service is sponsored by