a5d49ed
%{?mingw_package_header}
a5d49ed
a5d49ed
%global pkgname LibRaw
a5d49ed
a5d49ed
Name:          mingw-%{pkgname}
245e5d9
Version:       0.19.5
c1d20bc
Release:       4%{?dist}
a5d49ed
Summary:       Library for reading RAW files obtained from digital photo cameras
a5d49ed
a5d49ed
# LibRaw base package is dual licensed (actually triple licensed LGPLv2+, CDDL, LibRaw Software License)
a5d49ed
# LibRaw-%%{version}/internal/dcb_demosaicing.c is BSD (3 clause)
56e6004
License:       (LGPLv2+ or CDDL) and BSD
a5d49ed
BuildArch:     noarch
a5d49ed
URL:           http://www.libraw.org
a5d49ed
Source0:       http://www.libraw.org/data/%{pkgname}-%{version}.tar.gz
a5d49ed
# Add missing -lwsock32
a5d49ed
Patch0:        LibRaw_wsock32.patch
a5d49ed
# Replace obsolete configure.ac macros
a5d49ed
Patch1:        LibRaw_obsolete-macros.patch
c1d20bc
# Backport patch for CVE-2020-15503
c1d20bc
# https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d
c1d20bc
Patch2:        CVE-2020-15503.patch
a5d49ed
a5d49ed
BuildRequires: autoconf automake libtool
a5d49ed
a5d49ed
BuildRequires: mingw32-filesystem >= 95
a5d49ed
BuildRequires: mingw32-gcc-c++
a5d49ed
BuildRequires: mingw32-lcms2
a5d49ed
BuildRequires: mingw32-jasper
a5d49ed
a5d49ed
BuildRequires: mingw64-filesystem >= 95
a5d49ed
BuildRequires: mingw64-gcc-c++
a5d49ed
BuildRequires: mingw64-lcms2
a5d49ed
BuildRequires: mingw64-jasper
a5d49ed
039628a
Provides: bundled(dcraw)
039628a
a5d49ed
a5d49ed
%description
a5d49ed
MinGW Windows %{pkgname} library.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw32-%{pkgname}
a5d49ed
Summary:       MinGW Windows %{pkgname} library
a5d49ed
a5d49ed
%description -n mingw32-%{pkgname}
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw32-%{pkgname}-static
a5d49ed
Summary:       Static version of the MinGW Windows %{pkgname} library
a5d49ed
Requires:      mingw32-%{pkgname} = %{version}-%{release}
a5d49ed
a5d49ed
%description -n mingw32-%{pkgname}-static
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw32-%{pkgname}-tools
a5d49ed
Summary:       Tools for the MinGW Windows %{pkgname} library
a5d49ed
Requires:      mingw32-%{pkgname} = %{version}-%{release}
a5d49ed
a5d49ed
%description -n mingw32-%{pkgname}-tools
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw64-%{pkgname}
a5d49ed
Summary:       MinGW Windows %{pkgname} library
a5d49ed
a5d49ed
%description -n mingw64-%{pkgname}
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw64-%{pkgname}-static
a5d49ed
Summary:       Static version of the MinGW Windows %{pkgname} library
a5d49ed
Requires:      mingw64-%{pkgname} = %{version}-%{release}
a5d49ed
a5d49ed
%description -n mingw64-%{pkgname}-static
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%package -n mingw64-%{pkgname}-tools
a5d49ed
Summary:       Tools for the MinGW Windows %{pkgname} library
a5d49ed
Requires:      mingw64-%{pkgname} = %{version}-%{release}
a5d49ed
a5d49ed
%description -n mingw64-%{pkgname}-tools
a5d49ed
%{summary}.
a5d49ed
a5d49ed
a5d49ed
%{?mingw_debug_package}
a5d49ed
a5d49ed
a5d49ed
%prep
c1d20bc
%autosetup -p1 -n %{pkgname}-%{version}
a5d49ed
a5d49ed
# Remove executable bit on license files
a5d49ed
chmod -x LICENSE.CDDL
a5d49ed
chmod -x LICENSE.LGPL
a5d49ed
a5d49ed
a5d49ed
%build
a5d49ed
autoreconf -ifv
56e6004
%mingw_configure --enable-jasper --enable-lcms CPPFLAGS=-DLIBRAW_NODLL
c1d20bc
%mingw_make_build
a5d49ed
a5d49ed
a5d49ed
%install
c1d20bc
%mingw_make_install
a5d49ed
a5d49ed
# Delete *.la files
a5d49ed
find %{buildroot} -name '*.la' -delete
a5d49ed
a5d49ed
# Install doc through %%doc
a5d49ed
rm -rf %{buildroot}%{mingw32_datadir}
a5d49ed
rm -rf %{buildroot}%{mingw64_datadir}
a5d49ed
a5d49ed
a5d49ed
%files -n mingw32-%{pkgname}
32eb6d1
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
56e6004
%{mingw32_bindir}/libraw-19.dll
56e6004
%{mingw32_bindir}/libraw_r-19.dll
a5d49ed
%{mingw32_includedir}/libraw/
a5d49ed
%{mingw32_libdir}/libraw.dll.a
a5d49ed
%{mingw32_libdir}/libraw_r.dll.a
a5d49ed
%{mingw32_libdir}/pkgconfig/libraw.pc
a5d49ed
%{mingw32_libdir}/pkgconfig/libraw_r.pc
a5d49ed
a5d49ed
%files -n mingw32-%{pkgname}-static
a5d49ed
%{mingw32_libdir}/libraw_r.a
a5d49ed
%{mingw32_libdir}/libraw.a
a5d49ed
a5d49ed
%files -n mingw32-%{pkgname}-tools
a5d49ed
%{mingw32_bindir}/*.exe
a5d49ed
a5d49ed
%files -n mingw64-%{pkgname}
32eb6d1
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
56e6004
%{mingw64_bindir}/libraw-19.dll
56e6004
%{mingw64_bindir}/libraw_r-19.dll
a5d49ed
%{mingw64_includedir}/libraw/
a5d49ed
%{mingw64_libdir}/libraw.dll.a
a5d49ed
%{mingw64_libdir}/libraw_r.dll.a
a5d49ed
%{mingw64_libdir}/pkgconfig/libraw.pc
a5d49ed
%{mingw64_libdir}/pkgconfig/libraw_r.pc
a5d49ed
a5d49ed
%files -n mingw64-%{pkgname}-static
a5d49ed
%{mingw64_libdir}/libraw_r.a
a5d49ed
%{mingw64_libdir}/libraw.a
a5d49ed
a5d49ed
%files -n mingw64-%{pkgname}-tools
a5d49ed
%{mingw64_bindir}/*.exe
a5d49ed
a5d49ed
a5d49ed
%changelog
c1d20bc
* Mon Jul 13 2020 Sandro Mani <manisandro@gmail.com> - 0.19.5-4
c1d20bc
- Backport patch for CVE-2020-15503
c1d20bc
489a392
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.5-3
489a392
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
489a392
423e9d3
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 0.19.5-2
423e9d3
- Rebuild (Changes/Mingw32GccDwarf2)
423e9d3
245e5d9
* Thu Aug 22 2019 Sandro Mani <manisandro@gmail.com> - 0.19.5-1
245e5d9
- Update to 0.19.5
245e5d9
39e7159
* Tue Aug 06 2019 Sandro Mani <manisandro@gmail.com> - 0.19.4-1
39e7159
- Update to 0.19.4
39e7159
f5c005b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.3-2
f5c005b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f5c005b
f8d3d06
* Mon Jul 08 2019 Sandro Mani <manisandro@gmail.com> - 0.19.3-1
f8d3d06
- Update to 0.19.3
f8d3d06
3d963bc
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-2
3d963bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3d963bc
9b81ef7
* Wed Dec 26 2018 Sandro Mani <manisandro@gmail.coM> - 0.19.2-1
9b81ef7
- Update to 0.19.2
9b81ef7
e16ce4c
* Sat Nov 24 2018 Sandro Mani <manisandro@gmail.com> - 0.19.1-1
e16ce4c
- Update to 0.19.1
e16ce4c
56e6004
* Thu Jul 19 2018 Sandro Mani <manisandro@gmail.com> - 0.19.0-1
56e6004
- Update to 0.19.0
56e6004
aa3a9f8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.12-2
aa3a9f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
aa3a9f8
e20d46c
* Mon Jun 11 2018 Sandro Mani <manisandro@gmail.com> - 0.18.12-1
e20d46c
- Update to 0.18.12
e20d46c
108bd0c
* Tue May 15 2018 Sandro Mani <manisandro@gmail.com> - 0.18.11-1
108bd0c
- Update to 0.18.11
108bd0c
6cc05c6
* Mon May 07 2018 Sandro Mani <manisandro@gmail.com> - 0.18.10-1
6cc05c6
- Update to 0.18.10
6cc05c6
e9190c9
* Wed Apr 25 2018 Sandro Mani <manisandro@gmail.com> - 0.18.9-1
e9190c9
- Update to 0.18.9
e9190c9
c0150ba
* Sun Feb 25 2018 Sandro Mani <manisandro@gmail.com> - 0.18.8-1
c0150ba
- Update to 0.18.8
c0150ba
27b5cee
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.7-2
27b5cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
27b5cee
4b58d57
* Sat Feb 03 2018 Sandro Mani <manisandro@gmail.com> - 0.18.7-1
4b58d57
- Update to 0.18.7
4b58d57
bdc2cbb
* Wed Dec 06 2017 Sandro Mani <manisandro@gmail.com> - 0.18.6-1
bdc2cbb
- Update to 0.18.6
bdc2cbb
8e2194a
* Fri Sep 22 2017 Sandro Mani <manisandro@gmail.com> - 0.18.5-1
8e2194a
- Update to 0.18.5
8e2194a
bd50584
* Wed Sep 13 2017 Sandro Mani <manisandro@gmail.com> - 0.18.4-1
bd50584
- Update to 0.18.4
bd50584
7953435
* Sat Sep 09 2017 Sandro Mani <manisandro@gmail.com> - 0.18.3-1
7953435
- Update to 0.18.3
7953435
05fcc15
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.2-4
05fcc15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
05fcc15
0655789
* Sun Jul 09 2017 Sandro Mani <manisandro@gmail.com> - 0.18.2-3
0655789
- Rebuild
0655789
5e49027
* Sat Jul 01 2017 Sandro Mani <manisandro@gmail.com> - 0.18.2-2
5e49027
- Rebuild
5e49027
4d179de
* Mon Mar 13 2017 Sandro Mani <manisandro@gmail.com> - 0.18.2-1
4d179de
- Update to 0.18.2
4d179de
e7f267a
* Mon Feb 13 2017 Sandro Mani <manisandro@gmail.com> - 0.18.1-1
e7f267a
- Update to 0.18.1
e7f267a
5dfa047
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-2
5dfa047
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5dfa047
b185cd2
* Sun Jan 01 2017 Sandro Mani <manisandro@gmail.com> - 0.18.0-1
b185cd2
- Update to 0.18.0
b185cd2
76fedb9
* Wed Nov 23 2016 Michael Cronenworth <mike@cchtml.com> - 0.17.2-2
76fedb9
- Rebuilt for mingw-jasper update
76fedb9
6ab2c33
* Thu May 19 2016 Sandro Mani <manisandro@gmail.com> - 0.17.2-1
6ab2c33
- Update to 0.17.2
6ab2c33
1b575de
* Wed May 11 2016 Sandro Mani <manisandro@gmail.com> - 0.17.1-3
1b575de
- Add dcraw_narrowing.patch to fix GCC6 FTBFS
1b575de
f107bfd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.1-2
f107bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f107bfd
a26730f
* Mon Nov 30 2015 Sandro Mani <manisandro@gmail.com> - 0.17.1-1
a26730f
- Update to 0.17.1
a26730f
3990882
* Sat Aug 22 2015 Sandro Mani <manisandro@gmail.com> - 0.17.0-1
3990882
- Update to 0.17.0
3990882
14286a2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.2-2
14286a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
14286a2
1586a3b
* Sun May 17 2015 Sandro Mani <manisandro@gmail.com> - 0.16.2-1
1586a3b
- Update to 0.16.2
1586a3b
32eb6d1
* Mon May 11 2015 Sandro Mani <manisandro@gmail.com> - 0.16.1-1
32eb6d1
- Update to 0.16.1
32eb6d1
efed208
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-2
efed208
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
efed208
0ebc852
* Wed Jan 22 2014 Sandro Mani <manisandro@gmail.com> - 0.16.0-1
0ebc852
- Update to 0.16.0
0ebc852
a5d49ed
* Tue Jan 14 2014 Sandro Mani <manisandro@gmail.com> - 0.15.4-4
a5d49ed
- Actually remove executable permissions from the problematic LICENSE files
a5d49ed
a5d49ed
* Mon Jan 13 2014 Sandro Mani <manisandro@gmail.com> - 0.15.4-3
a5d49ed
- Add patch to replace obsolete configure.ac macros
a5d49ed
- Remove executable permissions from LICENSE files
a5d49ed
a5d49ed
* Wed Jan 08 2014 Sandro Mani <manisandro@gmail.com> - 0.15.4-2
a5d49ed
- Fix license
a5d49ed
a5d49ed
* Sat Dec 28 2013 Sandro Mani <manisandro@gmail.com> - 0.15.4-1
a5d49ed
- Initial package