Blame SPECS/LibRaw.spec

dee4a2
Summary: Library for reading RAW files obtained from digital photo cameras
dee4a2
Name: LibRaw
2b0800
Version: 0.19.4
42b176
Release: 2%{?dist}
19d382
License: BSD and (CDDL or LGPLv2)
dee4a2
URL: http://www.libraw.org
dee4a2
19d382
BuildRequires: gcc-c++
19d382
BuildRequires: pkgconfig(lcms2)
19d382
BuildRequires: pkgconfig(jasper)
19d382
BuildRequires: pkgconfig(libjpeg)
19d382
BuildRequires: autoconf automake libtool
dee4a2
19d382
Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
42b176
19d382
Patch0:  LibRaw-0.6.0-pkgconfig.patch
42b176
42b176
# https://issues.redhat.com/browse/RHEL-9524
42b176
# https://github.com/LibRaw/LibRaw/pull/611
42b176
Patch1: LibRaw-check-for-input-buffer-size-on-datastream-gets.patch
42b176
19d382
Provides: bundled(dcraw) = 9.25
dee4a2
dee4a2
%description
dee4a2
LibRaw is a library for reading RAW files obtained from digital photo
dee4a2
cameras (CRW/CR2, NEF, RAF, DNG, and others).
dee4a2
dee4a2
LibRaw is based on the source codes of the dcraw utility, where part of
dee4a2
drawbacks have already been eliminated and part will be fixed in future.
dee4a2
dee4a2
%package devel
dee4a2
Summary: LibRaw development libraries
19d382
Requires:   %{name}%{?_isa} = %{version}-%{release}
dee4a2
dee4a2
%description devel
dee4a2
LibRaw development libraries.
dee4a2
dee4a2
This package contains libraries that applications can use to build
dee4a2
against LibRaw.
dee4a2
dee4a2
%package static
dee4a2
Summary: LibRaw static development libraries
19d382
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
dee4a2
dee4a2
%description static
dee4a2
LibRaw static development libraries.
dee4a2
19d382
%if 0%{?rhel} != 7
19d382
%package samples
19d382
Summary: LibRaw sample programs
19d382
Requires: %{name} = %{version}-%{release}
19d382
19d382
%description samples
19d382
LibRaw sample programs
19d382
%endif
19d382
dee4a2
%prep
19d382
%setup -q
19d382
19d382
%patch0 -p0 -b .pkgconfig
42b176
%patch1 -p1 -b .cve-2021-32142
dee4a2
dee4a2
%build
19d382
autoreconf -if
19d382
%configure \
19d382
%if 0%{?rhel} == 7
19d382
    --enable-examples=no \
19d382
%else
19d382
    --enable-examples=yes \
19d382
%endif
19d382
    --enable-jasper \
19d382
    --enable-jpeg \
19d382
    --enable-lcms \
19d382
    --enable-openmp
19d382
19d382
# https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
19d382
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
19d382
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
19d382
19d382
%make_build
dee4a2
dee4a2
%install
dee4a2
cp -pr doc manual
19d382
chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
dee4a2
chmod 644 manual/*.html
dee4a2
dee4a2
# The Libraries
19d382
%make_install
19d382
19d382
rm -rfv samples/.deps
19d382
rm -fv samples/.dirstamp
19d382
rm -fv samples/*.o
19d382
19d382
rm -fv %{buildroot}%{_libdir}/lib*.la
19d382
19d382
%post -p /sbin/ldconfig
19d382
%postun -p /sbin/ldconfig
dee4a2
dee4a2
%files
19d382
%doc Changelog.txt
19d382
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
19d382
%{_libdir}/libraw.so.19*
19d382
%{_libdir}/libraw_r.so.19*
dee4a2
dee4a2
%files static
19d382
%{_libdir}/libraw.a
19d382
%{_libdir}/libraw_r.a
dee4a2
dee4a2
%files devel
dee4a2
%doc manual
dee4a2
%doc samples
19d382
%{_includedir}/libraw/
19d382
%{_libdir}/libraw.so
19d382
%{_libdir}/libraw_r.so
19d382
%{_libdir}/pkgconfig/libraw.pc
19d382
%{_libdir}/pkgconfig/libraw_r.pc
dee4a2
%exclude %{_docdir}/libraw/*
dee4a2
19d382
%if 0%{?rhel} != 7
19d382
%files samples
19d382
%{_bindir}/*
19d382
%endif
19d382
dee4a2
dee4a2
%changelog
42b176
* Mon Oct 23 2023 Debarshi Ray <rishi@fedoraproject.org> - 0.19.4-2
42b176
- Fix CVE-2021-32142
42b176
- Resolves: RHEL-9524
42b176
2b0800
* Wed Aug 14 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.4-1
2b0800
- Update to 0.19.4
2b0800
- Resolves: #1741274
2b0800
19d382
* Wed Jan  2 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.2-1
19d382
- Update to 0.19.2
19d382
- Resolves: #1543597
19d382
19d382
* Wed Jan  2 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.1-2
19d382
- Remove the samples subpackage from RHEL 7
19d382
- Resolves: #1543597
19d382
19d382
* Mon Dec 17 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.1-1
19d382
- Update to 0.19.1
19d382
- Resolves: #1543597
19d382
595788
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.14.8-5.20120830git98d925
595788
- Mass rebuild 2014-01-24
595788
595788
* Wed Jan  8 2014 Debarshi Ray <rishi@fedoraproject.org> - 0.14.8-4.20120830git98d925
595788
- Fix CVE-2013-1438 and CVE-2013-1439
595788
- Resolves: #1002718
595788
595788
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.14.8-3
595788
- Mass rebuild 2013-12-27
595788
dee4a2
* Wed May 29 2013 Jon Ciesla <limburgher@gmail.com> - 0.14.8-2
dee4a2
- Patch for double free, CVE-2013-2126, BZ 968387.
dee4a2
dee4a2
* Wed May 29 2013 Jon Ciesla <limburgher@gmail.com> - 0.14.8-1
dee4a2
- Latest upstream, fixes gcc 4.8 issues.
dee4a2
dee4a2
* Thu Apr 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.14.7-4
dee4a2
- Revert prior patch.
dee4a2
dee4a2
* Thu Apr 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.14.7-3
dee4a2
- Patch for segfault, BZ 948628.
dee4a2
dee4a2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.7-2
dee4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dee4a2
dee4a2
* Mon Nov 26 2012 Jon Ciesla <limburgher@gmail.com> - 0.14.7-1
dee4a2
- New upstream 0.14.7
dee4a2
dee4a2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-3
dee4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dee4a2
dee4a2
* Sat Jun  2 2012 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> - 0.14.6-2
dee4a2
- Use lcms2.
dee4a2
dee4a2
* Sat Jun  2 2012 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> - 0.14.6-1
dee4a2
- New upstream 0.14.6
dee4a2
dee4a2
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.3-4
dee4a2
- Rebuilt for c++ ABI breakage
dee4a2
dee4a2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.3-3
dee4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dee4a2
dee4a2
* Fri Dec  9 2011 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> - 0.14.3-2
dee4a2
- Add demosaic packs (bz #760638)
dee4a2
- Change license to GPLv3+ due to above change
dee4a2
dee4a2
* Wed Nov 16 2011 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> - 0.14.3-1
dee4a2
- Rebase to upstream 0.14.3
dee4a2
dee4a2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.3-3
dee4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dee4a2
dee4a2
* Sun Dec 12 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.11.3-2
dee4a2
- Of course, you need to upload the new sources.
dee4a2
dee4a2
* Sun Dec 12 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.11.3-1
dee4a2
- upstream 0.11.3
dee4a2
dee4a2
* Sat Nov 13 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-9
dee4a2
- Build position independent object code
dee4a2
19d382
* Thu Jul 08 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-8
dee4a2
- Remove LibRaw license since we're not distributing LibRaw under its terms
dee4a2
19d382
* Wed Jul 07 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-7
dee4a2
- Buildroot is unnecessary
dee4a2
- Corrected license to LGPLv2 or CDDL
dee4a2
dee4a2
* Sun Jul 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-6
dee4a2
- Do not impose -O4 and -w in build options
dee4a2
- Change package group to Development/Libraries
dee4a2
- Corrected license to LGPLv2
dee4a2
- setup macro no longer needs the name and version arguments
dee4a2
- Rename patches to include name and version
dee4a2
dee4a2
* Wed Jun 30 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-5
dee4a2
- Use optflags for build
dee4a2
- Install the documentation in a cleaner way
dee4a2
dee4a2
* Tue Jun 29 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-4
dee4a2
- Use upstream package name (libRaw) instead of libraw
dee4a2
dee4a2
* Tue Jun 29 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-3
dee4a2
- Remove the clean section since it is not needed in F-13 and later
dee4a2
- Correct installation of docs into defaultdocdir instead of docdir
dee4a2
19d382
* Thu Jun 10 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-2
dee4a2
- Disable lcms and openmp support by default so that we're in line with
dee4a2
  upstream default
dee4a2
dee4a2
* Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
dee4a2
- New package
dee4a2