Blame SPECS/LibRaw.spec

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