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 5
%define lname libKF5KDcraw
Name: libkdcraw
Version: 16.08.2
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
Patch0: fix-libraw-dependency.diff
BuildRequires: extra-cmake-modules
BuildRequires: kf5-filesystem
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: xz
%if 0%{?suse_version}==1315 && !0%{?is_opensuse}
BuildRequires: pkgconfig(libraw) >= 0.15.4
%else
BuildRequires: pkgconfig(libraw) >= 0.16.0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}==1315 && !0%{?is_opensuse}
%patch0 -p1
%endif
%build
%cmake_kf5 -d build -- -DENABLE_LCMS2=true -DENABLE_RAWSPEED=true
%make_jobs
%install
%kf5_makeinstall -C build
%clean
rm -rf %{buildroot}
%package -n %{lname}%{_so}
Summary: Shared library interface around dcraw
Group: Development/Libraries/KDE
%description -n %{lname}%{_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 %{lname}%{_so}
%defattr(-,root,root)
%{_kf5_libdir}/%{lname}.so.*
%post -n %{lname}%{_so} -p /sbin/ldconfig
%postun -n %{lname}%{_so} -p /sbin/ldconfig
%package devel
Summary: Shared library interface around dcraw
Group: Development/Libraries/KDE
Requires: %{lname}%{_so} = %{version}
Obsoletes: libkdcraw-kf5-devel < %{version}
Provides: libkdcraw-kf5-devel = %{version}
%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
%{_kf5_includedir}/
%{_kf5_libdir}/cmake/KF5KDcraw/
%{_kf5_libdir}/%{lname}.so
%changelog