File libkdcraw.spec of Package libkdcraw
#
# spec file for package libkdcraw
#
# Copyright (c) 2016 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: 17.04.2
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
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: extra-cmake-modules
BuildRequires: kf5-filesystem
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(libraw) >= 0.16.0
BuildRequires: xz
Obsoletes: libkdcraw-kf5 < %{version}
Provides: libkdcraw-kf5 = %{version}
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
%build
%cmake_kf5 -d build -- -DENABLE_LCMS2=true -DENABLE_RAWSPEED=true
%make_jobs
%install
%kf5_makeinstall -C build
%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