Fix License and explicitly enable JPEG and OpenMP to avoid surprises

The GPLv2+ and GPLv3+ demosaic packs are no longer supported upstream
from the LibRaw 0.19 series. LibRaw itself has files that are either
dual-licensed under CDDL or LGPLv2, or are BSD licensed.
This commit is contained in:
Debarshi Ray 2018-07-31 18:07:39 +02:00
parent bba1e41ade
commit c1e9e9dc8d

View File

@ -1,13 +1,14 @@
Summary: Library for reading RAW files obtained from digital photo cameras
Name: LibRaw
Version: 0.19.0
Release: 3%{?dist}
License: GPLv3+
Release: 4%{?dist}
License: BSD and (CDDL or LGPLv2)
URL: http://www.libraw.org
BuildRequires: gcc-c++
BuildRequires: lcms2-devel
BuildRequires: jasper-devel
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(jasper)
BuildRequires: pkgconfig(libjpeg)
Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
Patch0: LibRaw-0.6.0-pkgconfig.patch
@ -51,7 +52,12 @@ LibRaw sample programs
%patch1 -p1 -b .CVE-2015-8366
%build
%configure --enable-examples=yes --enable-jasper --enable-lcms
%configure \
--enable-examples=yes \
--enable-jasper \
--enable-jpeg \
--enable-lcms \
--enable-openmp
# https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -96,6 +102,10 @@ rm -fv %{buildroot}%{_libdir}/lib*.la
%changelog
* Tue Jul 31 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-4
- Fix License
- Explicitly enable JPEG and OpenMP support to avoid surprises
* Thu Jul 19 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.19.0-3
- tighten %%files, mostly so api/soname changes will no longer be a surpise
- use %%make_build %%ldconfig_scriptlets