2b71694
%{?mingw_package_header}
2b71694
2b71694
%global pkgname poppler
2b71694
2b71694
Name:          mingw-%{pkgname}
0af6896
Version:       21.01.0
8c0607e
Release:       2%{?dist}
2b71694
Summary:       MinGW Windows Poppler library
21a34ea
2b71694
License:       (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
2b71694
BuildArch:     noarch
2b71694
URL:           http://poppler.freedesktop.org/
9967e09
Source0:       http://poppler.freedesktop.org/%{pkgname}-%{version}.tar.xz
57134d7
96e0b66
# Downstream fix for CVE-2017-9083 (#1453200)
96e0b66
Patch1:        poppler_CVE-2017-9083.patch
7807557
aca38f5
BuildRequires: make
7807557
BuildRequires: cmake
2b71694
BuildRequires: gettext-devel
7da7983
BuildRequires: perl(File::Temp)
2b71694
2b71694
BuildRequires: mingw32-filesystem >= 95
2b71694
BuildRequires: mingw32-gcc
2b71694
BuildRequires: mingw32-libjpeg-turbo
2b71694
BuildRequires: mingw32-libtiff
fe6f086
BuildRequires: mingw32-openjpeg2
9b46bd7
BuildRequires: mingw32-openjpeg2-tools
2b71694
BuildRequires: mingw32-cairo
2b71694
BuildRequires: mingw32-gtk3
2b71694
BuildRequires: mingw32-lcms2
7ef32de
BuildRequires: mingw32-qt5-qtbase-devel
2b71694
2b71694
BuildRequires: mingw64-filesystem >= 95
2b71694
BuildRequires: mingw64-gcc
2b71694
BuildRequires: mingw64-libjpeg-turbo
2b71694
BuildRequires: mingw64-libtiff
fe6f086
BuildRequires: mingw64-openjpeg2
9b46bd7
BuildRequires: mingw64-openjpeg2-tools
2b71694
BuildRequires: mingw64-cairo
2b71694
BuildRequires: mingw64-gtk3
2b71694
BuildRequires: mingw64-lcms2
7ef32de
BuildRequires: mingw64-qt5-qtbase-devel
2b71694
2b71694
2b71694
%description
2b71694
MinGW Windows Poppler library.
2b71694
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw32-%{pkgname}
2b71694
Summary:       MinGW Windows Poppler library
2b71694
2b71694
%description -n mingw32-%{pkgname}
2b71694
MinGW Windows Poppler library.
2b71694
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw32-%{pkgname}-glib
2b71694
Summary:       MinGW Windows Poppler-Glib library
2b71694
Requires:      mingw32-%{pkgname} = %{version}-%{release}
2b71694
2b71694
%description -n mingw32-%{pkgname}-glib
2b71694
MinGW Windows Poppler-Glib library.
2b71694
21a34ea
###############################################################################
2b71694
7ef32de
%package -n mingw32-%{pkgname}-qt5
7ef32de
Summary:       MinGW Windows Poppler-Qt5 library
7ef32de
Requires:      mingw32-%{pkgname} = %{version}-%{release}
7ef32de
7ef32de
%description -n mingw32-%{pkgname}-qt5
7ef32de
MinGW Windows Poppler-Qt5 library.
7ef32de
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw32-%{pkgname}-cpp
2b71694
Summary:       MinGW Windows C++ Poppler library
2b71694
Requires:      mingw32-%{pkgname} = %{version}-%{release}
2b71694
2b71694
%description -n mingw32-%{pkgname}-cpp
2b71694
MinGW Windows C++ Poppler library.
2b71694
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw64-%{pkgname}
2b71694
Summary:       MinGW Windows Poppler library
2b71694
2b71694
%description -n mingw64-%{pkgname}
2b71694
MinGW Windows Poppler library.
2b71694
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw64-%{pkgname}-glib
2b71694
Summary:       MinGW Windows Poppler-Glib library
2b71694
Requires:      mingw64-%{pkgname} = %{version}-%{release}
2b71694
2b71694
%description -n mingw64-%{pkgname}-glib
2b71694
MinGW Windows Poppler-Glib library.
2b71694
21a34ea
###############################################################################
2b71694
7ef32de
%package -n mingw64-%{pkgname}-qt5
7ef32de
Summary:       MinGW Windows Poppler-Qt5 library
7ef32de
Requires:      mingw64-%{pkgname} = %{version}-%{release}
7ef32de
7ef32de
%description -n mingw64-%{pkgname}-qt5
7ef32de
MinGW Windows Poppler-Qt5 library.
7ef32de
21a34ea
###############################################################################
2b71694
2b71694
%package -n mingw64-%{pkgname}-cpp
2b71694
Summary:       MinGW Windows C++ Poppler library
2b71694
Requires:      mingw64-%{pkgname} = %{version}-%{release}
2b71694
2b71694
%description -n mingw64-%{pkgname}-cpp
2b71694
MinGW Windows C++ Poppler library.
2b71694
21a34ea
###############################################################################
2b71694
2b71694
%{?mingw_debug_package}
2b71694
2b71694
2b71694
%prep
601ca3d
%autosetup -p1 -n %{pkgname}-%{version}
21a34ea
2b71694
2b71694
%build
7807557
%mingw_cmake \
7807557
  -DENABLE_CMS=lcms2 \
7807557
  -DENABLE_DCTDECODER=libjpeg \
7807557
  -DENABLE_LIBOPENJPEG=openjpeg2 \
36908c5
  -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
7807557
  -DENABLE_ZLIB=OFF \
2b71694
25b1393
%mingw_make_build
2b71694
2b71694
2b71694
%install
25b1393
%mingw_make_install
2b71694
2b71694
# Delete *.la files
2b71694
find %{buildroot} -name '*.la' -exec rm -f {} ';'
2b71694
2b71694
# Delete man files
2b71694
rm -rf %{buildroot}%{mingw32_mandir}
2b71694
rm -rf %{buildroot}%{mingw64_mandir}
2b71694
2b71694
# Delete exe files
2b71694
rm -f %{buildroot}%{mingw32_bindir}/*.exe
2b71694
rm -f %{buildroot}%{mingw64_bindir}/*.exe
2b71694
21a34ea
2b71694
%files -n mingw32-%{pkgname}
11b8e58
%license COPYING
21f1e47
%doc README.md
0af6896
%{mingw32_bindir}/libpoppler-106.dll
2b71694
%{mingw32_includedir}/poppler/
11b8e58
%exclude %{mingw32_includedir}/poppler/cpp/
11b8e58
%exclude %{mingw32_includedir}/poppler/glib/
11b8e58
%exclude %{mingw32_includedir}/poppler/qt5/
2b71694
%{mingw32_libdir}/libpoppler.dll.a
2b71694
%{mingw32_libdir}/pkgconfig/poppler.pc
2b71694
2b71694
%files -n mingw32-%{pkgname}-glib
70a8288
%{mingw32_bindir}/libpoppler-glib-8.dll
2b71694
%{mingw32_includedir}/poppler/glib/
2b71694
%{mingw32_libdir}/libpoppler-glib.dll.a
2b71694
%{mingw32_libdir}/pkgconfig/poppler-glib.pc
2b71694
7ef32de
%files -n mingw32-%{pkgname}-qt5
70a8288
%{mingw32_bindir}/libpoppler-qt5-1.dll
7ef32de
%{mingw32_includedir}/poppler/qt5/
7ef32de
%{mingw32_libdir}/libpoppler-qt5.dll.a
7ef32de
%{mingw32_libdir}/pkgconfig/poppler-qt5.pc
7ef32de
2b71694
%files -n mingw32-%{pkgname}-cpp
70a8288
%{mingw32_bindir}/libpoppler-cpp-0.dll
2b71694
%{mingw32_includedir}/poppler/cpp/
2b71694
%{mingw32_libdir}/libpoppler-cpp.dll.a
2b71694
%{mingw32_libdir}/pkgconfig/poppler-cpp.pc
2b71694
2b71694
%files -n mingw64-%{pkgname}
11b8e58
%license COPYING
21f1e47
%doc README.md
0af6896
%{mingw64_bindir}/libpoppler-106.dll
2b71694
%{mingw64_includedir}/poppler/
11b8e58
%exclude %{mingw64_includedir}/poppler/cpp/
11b8e58
%exclude %{mingw64_includedir}/poppler/glib/
11b8e58
%exclude %{mingw64_includedir}/poppler/qt5/
2b71694
%{mingw64_libdir}/libpoppler.dll.a
2b71694
%{mingw64_libdir}/pkgconfig/poppler.pc
2b71694
2b71694
%files -n mingw64-%{pkgname}-glib
70a8288
%{mingw64_bindir}/libpoppler-glib-8.dll
2b71694
%{mingw64_includedir}/poppler/glib/
2b71694
%{mingw64_libdir}/libpoppler-glib.dll.a
2b71694
%{mingw64_libdir}/pkgconfig/poppler-glib.pc
2b71694
7ef32de
%files -n mingw64-%{pkgname}-qt5
70a8288
%{mingw64_bindir}/libpoppler-qt5-1.dll
7ef32de
%{mingw64_includedir}/poppler/qt5/
7ef32de
%{mingw64_libdir}/libpoppler-qt5.dll.a
7ef32de
%{mingw64_libdir}/pkgconfig/poppler-qt5.pc
7ef32de
2b71694
%files -n mingw64-%{pkgname}-cpp
70a8288
%{mingw64_bindir}/libpoppler-cpp-0.dll
2b71694
%{mingw64_includedir}/poppler/cpp/
2b71694
%{mingw64_libdir}/libpoppler-cpp.dll.a
2b71694
%{mingw64_libdir}/pkgconfig/poppler-cpp.pc
2b71694
2b71694
2b71694
%changelog
8c0607e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.01.0-2
8c0607e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8c0607e
0af6896
* Mon Jan 11 2021 Sandro Mani <manisandro@gmail.com> - 21.01.0-1
0af6896
- Update to 21.01.0
0af6896
030f3de
* Wed Aug 12 13:45:03 GMT 2020 Sandro Mani <manisandro@gmail.com> - 0.90.1-3
030f3de
- Rebuild (mingw-gettext)
030f3de
f308d7e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.1-2
f308d7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f308d7e
25b1393
* Tue Jul 21 2020 Sandro Mani <manisandro@gmail.com> - 0.90.1-1
25b1393
- Update to 0.90.1
25b1393
6275252
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.84.0-2
6275252
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6275252
21f1e47
* Fri Jan 17 2020 Sandro Mani <manisandro@gmail.com> - 0.84.0-1
21f1e47
- Update to 0.84.0
21f1e47
36908c5
* Wed Nov 13 2019 Sandro Mani <manisandro@gmail.com> - 0.73.0-6
36908c5
- Install XPDF headers again
36908c5
- Drop old Obsoletes
36908c5
4977e30
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 0.73.0-5
4977e30
- Rebuild (Changes/Mingw32GccDwarf2)
4977e30
da19fb6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-4
da19fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
da19fb6
e0ab453
* Wed Feb 20 2019 Sandro Mani <manisandro@gmail.com> - 0.73.0-3
e0ab453
- Backport security fixes: CVE-2018-20662, CVE-2019-7310
e0ab453
b608db0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-2
b608db0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b608db0
9b46bd7
* Sat Jan 26 2019 Sandro Mani <manisandro@gmail.com> - 0.73.0-1
9b46bd7
- Update to 0.73.0
9b46bd7
96e0b66
* Thu Dec 20 2018 Sandro Mani <manisandro@gmail.com> - 0.67.0-2
96e0b66
- Backport security fixes:
96e0b66
  CVE-2018-16646, CVE-2018-19058, CVE-2018-19059, CVE-2018-19060, CVE-2018-19149
96e0b66
b8f1e31
* Tue Aug 14 2018 Sandro Mani <manisandro@gmail.com> - 0.67.0-1
b8f1e31
- Update to 0.67.0
b8f1e31
2b8ff36
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.63.0-2
2b8ff36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2b8ff36
2c01691
* Wed Apr 11 2018 Sandro Mani <manisandro@gmail.com> - 0.63.0-1
2c01691
- Update to 0.63
2c01691
90d734e
* Wed Feb 14 2018 Sandro Mani <manisandro@gmail.com> - 0.62.0-1
90d734e
- Update to 0.62
90d734e
- Drop qt4 frontend
90d734e
892d230
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.61.1-2
892d230
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
892d230
9fd160f
* Tue Nov 14 2017 Sandro Mani <manisandro@gmail.com> - 0.61.1-1
9fd160f
- Update to 0.61.1
9fd160f
c2d43d7
* Wed Nov 08 2017 Sandro Mani <manisandro@gmail.com> - 0.61.0-1
c2d43d7
- Update to 0.61.0
c2d43d7
c2d43d7
* Sun Oct 08 2017 Sandro Mani <manisandro@gmail.com> - 0.60.1-1
7807557
- Update to 0.60.1
7807557
dd9e8ca
* Mon Oct 02 2017 Sandro Mani <manisandro@gmail.com> - 0.59.0-2
dd9e8ca
- Add patch for CVE-2017-14520 (#1494584)
dd9e8ca
2b19fdb
* Fri Sep 08 2017 Sandro Mani <manisandro@gmail.com> - 0.59.0-1
2b19fdb
- Update to 0.59.0
2b19fdb
5fb6033
* Fri Aug 04 2017 Sandro Mani <manisandro@gmail.com> - 0.57.0-1
5fb6033
- Update to 0.57.0
5fb6033
a250b42
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.0-3
a250b42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a250b42
86ed38a
* Fri Jul 14 2017 Sandro Mani <manisandro@gmail.com> - 0.56.0-2
86ed38a
- Add patch for CVE-2017-9865 (#1466435)
86ed38a
- Add patch for CVE-2017-7515 (#1459066)
86ed38a
7da7983
* Mon Jun 26 2017 Sandro Mani <manisandro@gmail.com> - 0.56.0-1
7da7983
- Update to 0.56.0
7da7983
601ca3d
* Tue May 30 2017 Sandro Mani <manisandro@gmail.com> - 0.55.0-2
601ca3d
- Add patches for CVE-2017-7511 (#1456829) and CVE-2017-9083 (#1453200)
601ca3d
3ce3b9f
* Thu May 25 2017 Sandro Mani <manisandro@gmail.com> - 0.55.0-1
3ce3b9f
- Update to 0.55.0
3ce3b9f
52a54dc
* Tue Mar 28 2017 Sandro Mani <manisandro@gmail.com> - 0.53.0-1
52a54dc
- Update to 0.53.0
52a54dc
948f712
* Sun Feb 19 2017 Sandro Mani <manisandro@gmail.com> - 0.52.0-1
948f712
- Update to 0.52.0
948f712
c992c1b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.51.0-3
c992c1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c992c1b
aaa9f1a
* Sun Jan 22 2017 Sandro Mani <manisandro@gmail.com> - 0.51.0-2
aaa9f1a
- Rebuild for Qt5-5.7.1
aaa9f1a
fa943dd
* Mon Jan 16 2017 Sandro Mani <manisandro@gmail.com> - 0.51.0-1
fa943dd
- Update to 0.51.0
fa943dd
fe6f086
* Sat Dec 17 2016 Sandro Mani <manisandro@gmail.com> - 0.50.0-2
fe6f086
- Build against openjpeg2
fe6f086
70142ad
* Fri Dec 16 2016 Sandro Mani <manisandro@gmail.com> - 0.50.0-1
70142ad
- Update to 0.50.0
70142ad
3c55ed3
* Wed Nov 23 2016 Sandro Mani <manisandro@gmail.com> - 0.49.0-1
3c55ed3
- Update to 0.49.0
3c55ed3
9fb8c12
* Sat Oct 22 2016 Sandro Mani <manisandro@gmail.com> - 0.48.0-1
9fb8c12
- Update to 0.48.0
9fb8c12
9fb8c12
* Tue Jul 19 2016 Sandro Mani <manisandro@gmail.com> - 0.45.0-1
9fb8c12
- Update to 0.45.0
fb49a3e
1fbe19e
* Tue May 03 2016 Sandro Mani <manisandro@gmail.com> - 0.43.0-1
1fbe19e
- Update to 0.43
1fbe19e
1e2ace0
* Wed Mar 09 2016 Sandro Mani <manisandro@gmail.com> - 0.41.0-1
1e2ace0
- Update to 0.41
1e2ace0
24bbd70
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.40.0-2
24bbd70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
24bbd70
0861577
* Sat Jan 23 2016 Sandro Mani <manisandro@gmail.com> - 0.40.0-1
0861577
- Update to 0.40
0861577
3d77bbd
* Wed Jul 22 2015 Sandro Mani <manisandro@gmail.com> - 0.34.0-1
3d77bbd
- Update to 0.34
3d77bbd
9f78dd8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33.0-2
9f78dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9f78dd8
3d77bbd
* Sat Jun 06 2015 Sandro Mani <manisandro@gmail.com> - 0.33.0-1
3d77bbd
- Update to 0.33.0
268a2ef
11b8e58
* Mon May 11 2015 Sandro Mani <manisandro@gmail.com> - 0.30.0-3
11b8e58
- Fix includes listed multiple times
11b8e58
- --enable-xpdf-headers
11b8e58
d324dae
* Tue Jan 27 2015 Sandro Mani <manisandro@gmail.com> - 0.30.0-2
d324dae
- Re-enable openjpeg support
d324dae
dfa700b
* Tue Jan 27 2015 Sandro Mani <manisandro@gmail.com> - 0.30.0-1
dfa700b
- Update to 0.30.0
dfa700b
21a34ea
* Thu Nov 27 2014 Sandro Mani <manisandro@gmail.com> - 0.28.1-1
21a34ea
- Update to 0.28.1
21a34ea
54c4948
* Mon Sep 29 2014 Sandro Mani <manisandro@gmail.com> - 0.26.5-1
54c4948
- Update to 0.26.5
54c4948
a702eaa
* Sat Aug 23 2014 Sandro Mani <manisandro@gmail.com> - 0.26.4-1
a702eaa
- Update to 0.26.4
a702eaa
7af5e27
* Mon Jul 21 2014 Sandro Mani <manisandro@gmail.com> - 0.26.3-1
7af5e27
- Update to 0.26.3
7af5e27
e7c244f
* Thu Jun 19 2014 Sandro Mani <manisandro@gmail.com> - 0.26.2-1
e7c244f
- Update to 0.26.2
e7c244f
5f98c51
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.1-2
5f98c51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5f98c51
8df3826
* Mon May 26 2014 Sandro Mani <manisandro@gmail.com> - 0.26.1-1
8df3826
- Update to 0.26.1
8df3826
a0979a8
* Wed May 14 2014 Sandro Mani <manisandro@gmail.com> - 0.26.0-1
a0979a8
- Update to 0.26.0
a0979a8
43c541a
* Fri Apr 25 2014 Sandro Mani <manisandro@gmail.com> - 0.24.5-2
43c541a
- Add poppler_pkgconfig_private_libs.patch
43c541a
77eafa3
* Fri Jan 03 2014 Sandro Mani <manisandro@gmail.com> - 0.24.5-1
77eafa3
- Update to 0.24.5, fixes #1048203
77eafa3
497fb99
* Wed Nov 27 2013 Sandro Mani <manisandro@gmail.com> - 0.24.4-1
497fb99
- Update to 0.24.4
497fb99
57134d7
* Mon Oct 28 2013 Sandro Mani <manisandro@gmail.com> - 0.24.3-2
57134d7
- Add patch to fix Qt5 detection
57134d7
79bf378
* Mon Oct 28 2013 Sandro Mani <manisandro@gmail.com> - 0.24.3-1
79bf378
- Update to 0.24.3
79bf378
d903b11
* Mon Sep 30 2013 Sandro Mani <manisandro@gmail.com> - 0.24.2-1
d903b11
- Update to 0.24.2
d903b11
7ef32de
* Tue Aug 27 2013 Sandro Mani <manisandro@gmail.com> - 0.24.1-1
7ef32de
- Update to 0.24.1
7ef32de
- Enable qt5 build
7ef32de
9967e09
* Mon Aug 19 2013 Sandro Mani <manisandro@gmail.com> - 0.24.0-1
9967e09
- Update to 0.24.0
9967e09
7e121df
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.5-3
7e121df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7e121df
f61d2aa
* Sat Jul 13 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.22.5-2
f61d2aa
- Rebuild against libpng 1.6
f61d2aa
2b71694
* Mon Jun 17 2013 Sandro Mani <manisandro@gmail.com> - 0.22.5-1
2b71694
- Update to 0.22.5
2b71694
2b71694
* Sat May 11 2013 Sandro Mani <manisandro@gmail.com> - 0.22.1-2
2b71694
- Use versioned BuildRequires for mingw32/64-filesystem
2b71694
- Remove unused mingw_build_win32/64 macros
2b71694
- Remove tools subpackage (and do not ship exes)
2b71694
2b71694
* Wed May 08 2013 Sandro Mani <manisandro@gmail.com> - 0.22.1-1
2b71694
- Initial Fedora package