From c1e9e9dc8dc1daf472edc904814ad7391643cd1d Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 31 Jul 2018 18:07:39 +0200 Subject: [PATCH] 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. --- LibRaw.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/LibRaw.spec b/LibRaw.spec index 8b53f4e..2dac244 100644 --- a/LibRaw.spec +++ b/LibRaw.spec @@ -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 - 0.19.0-4 +- Fix License +- Explicitly enable JPEG and OpenMP support to avoid surprises + * Thu Jul 19 2018 Rex Dieter - 0.19.0-3 - tighten %%files, mostly so api/soname changes will no longer be a surpise - use %%make_build %%ldconfig_scriptlets