poppler/poppler.spec

341 lines
8.0 KiB
RPMSpec
Raw Normal View History

2022-06-13 17:28:58 +08:00
%global test_sha 03a4b9eb854a06a83c465e82de601796c458bbe9
%global test_date 2021-01-11
2024-04-16 07:05:16 +00:00
%ifarch loongarch64
%global qt6 0
%else
2023-12-28 10:20:01 +08:00
%global qt6 1
2024-04-16 07:05:16 +00:00
%endif
2021-08-30 07:16:45 +00:00
Name: poppler
2023-12-28 10:20:01 +08:00
Version: 23.12.0
Release: 4
2022-06-13 17:28:58 +08:00
Summary: PDF rendering library
License: GPLv2+ and LGPLv2+ and MIT
2021-08-30 07:16:45 +00:00
URL: http://poppler.freedesktop.org/
Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz
Source1: %{name}-test-%{test_date}-%{test_sha}.tar.xz
2022-06-13 17:28:58 +08:00
Patch1: poppler-0.90.0-position-independent-code.patch
Patch3: poppler-21.01.0-glib-introspection.patch
2023-03-14 10:56:54 +00:00
2024-06-25 10:41:10 +00:00
Patch6000: backport-CVE-2024-6239.patch
Patch6001: backport-CVE-2024-56378.patch
2024-06-25 10:41:10 +00:00
2022-06-13 17:28:58 +08:00
BuildRequires: make
2021-08-30 07:16:45 +00:00
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cairo-ft)
BuildRequires: pkgconfig(cairo-pdf)
BuildRequires: pkgconfig(cairo-ps)
BuildRequires: pkgconfig(cairo-svg)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-2.0)
2022-06-13 17:28:58 +08:00
BuildRequires: pkgconfig(gobject-introspection-1.0)
2021-08-30 07:16:45 +00:00
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(nss)
BuildRequires: pkgconfig(poppler-data)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
2022-06-13 17:28:58 +08:00
%if 0%{?qt6}
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
%endif
BuildRequires: boost-devel
2023-12-28 10:20:01 +08:00
BuildRequires: gpgme-devel
BuildRequires: cpp-gpgme
BuildRequires: libcurl-devel
2022-06-13 17:28:58 +08:00
2021-08-30 07:16:45 +00:00
Requires: poppler-data
Obsoletes: poppler-glib-demos < 0.60.1-1
2019-09-30 11:13:58 -04:00
%description
2021-08-30 07:16:45 +00:00
%{name} is a PDF rendering library.
2019-09-30 11:13:58 -04:00
2019-11-06 19:47:49 +08:00
%package devel
2021-08-30 07:16:45 +00:00
Summary: Libraries and headers for poppler
2019-11-06 19:47:49 +08:00
Requires: %{name} = %{version}-%{release}
2019-09-30 11:13:58 -04:00
%description devel
2021-08-30 07:16:45 +00:00
You should install the poppler-devel package if you would like to
compile applications based on poppler.
2019-09-30 11:13:58 -04:00
2019-11-06 19:47:49 +08:00
%package glib
2021-08-30 07:16:45 +00:00
Summary: Glib wrapper for poppler
2019-11-06 19:47:49 +08:00
Requires: %{name} = %{version}-%{release}
%description glib
2021-08-30 07:16:45 +00:00
%{summary}.
2019-11-06 19:47:49 +08:00
%package glib-devel
2021-08-30 07:16:45 +00:00
Summary: Development files for glib wrapper
2019-11-06 19:47:49 +08:00
Requires: %{name}-glib = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Suggests: %{name}-doc = %{version}-%{release}
%description glib-devel
2021-08-30 07:16:45 +00:00
%{summary}.
2019-11-06 19:47:49 +08:00
%package glib-doc
2021-08-30 07:16:45 +00:00
Summary: Documentation for glib wrapper
2019-11-06 19:47:49 +08:00
BuildArch: noarch
%description glib-doc
2021-08-30 07:16:45 +00:00
%{summary}.
2019-09-30 11:13:58 -04:00
%package qt5
2021-08-30 07:16:45 +00:00
Summary: Qt5 wrapper for poppler
2019-09-30 11:13:58 -04:00
Requires: %{name} = %{version}-%{release}
2022-06-13 17:28:58 +08:00
Obsoletes: %{name}-qt < 0.90.0-9
2019-09-30 11:13:58 -04:00
%description qt5
2021-08-30 07:16:45 +00:00
%{summary}.
2019-09-30 11:13:58 -04:00
%package qt5-devel
2021-08-30 07:16:45 +00:00
Summary: Development files for Qt5 wrapper
2019-09-30 11:13:58 -04:00
Requires: %{name}-qt5 = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: qt5-qtbase-devel
2022-06-13 17:28:58 +08:00
Obsoletes: %{name}-qt-devel < 0.90.0-9
2019-09-30 11:13:58 -04:00
%description qt5-devel
2021-08-30 07:16:45 +00:00
%{summary}.
2019-09-30 11:13:58 -04:00
2022-06-13 17:28:58 +08:00
%if 0%{?qt6}
%package qt6
Summary: Qt6 wrapper for poppler
Requires: %{name} = %{version}-%{release}
%description qt6
%{summary}.
%package qt6-devel
Summary: Development files for Qt6 wrapper
Requires: %{name}-qt6 = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: qt6-qtbase-devel
%description qt6-devel
%{summary}.
%endif
2019-11-06 19:47:49 +08:00
%package cpp
2021-08-30 07:16:45 +00:00
Summary: Pure C++ wrapper for poppler
2019-11-06 19:47:49 +08:00
Requires: %{name} = %{version}-%{release}
%description cpp
2021-08-30 07:16:45 +00:00
%{summary}.
2019-11-06 19:47:49 +08:00
%package cpp-devel
2021-08-30 07:16:45 +00:00
Summary: Development files for C++ wrapper
2019-11-06 19:47:49 +08:00
Requires: %{name}-cpp = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
%description cpp-devel
2021-08-30 07:16:45 +00:00
%{summary}.
2019-11-06 19:47:49 +08:00
2021-08-30 07:16:45 +00:00
%package utils
Summary: Command line utilities for converting PDF files
Requires: %{name} = %{version}-%{release}
%description utils
Command line tools for manipulating PDF files and converting them to
other formats.
2019-09-30 11:13:58 -04:00
2021-09-07 03:14:17 +00:00
%package_help
2019-09-30 11:13:58 -04:00
%prep
2021-08-30 07:16:45 +00:00
%autosetup -p1 -b 1
2022-06-13 17:28:58 +08:00
chmod -x poppler/CairoFontEngine.cc
2019-09-30 11:13:58 -04:00
%build
mkdir build
cd build
%cmake \
2021-08-30 07:16:45 +00:00
-DENABLE_CMS=lcms2 \
-DENABLE_DCTDECODER=libjpeg \
-DENABLE_GTK_DOC=ON \
-DENABLE_LIBOPENJPEG=openjpeg2 \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_ZLIB=OFF \
2024-04-16 07:05:16 +00:00
%ifarch loongarch64
-DENABLE_QT6=OFF \
%endif
2019-09-30 11:13:58 -04:00
..
%make_build
%install
%make_install -C build
%check
%make_build test
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
2022-06-13 17:28:58 +08:00
test "$(pkg-config --modversion poppler)" = "%{version}"
2019-09-30 11:13:58 -04:00
test "$(pkg-config --modversion poppler-cpp)" = "%{version}"
test "$(pkg-config --modversion poppler-glib)" = "%{version}"
test "$(pkg-config --modversion poppler-qt5)" = "%{version}"
2022-06-13 17:28:58 +08:00
%if 0%{?qt6}
test "$(pkg-config --modversion poppler-qt6)" = "%{version}"
%endif
2019-09-30 11:13:58 -04:00
%ldconfig_scriptlets
2019-11-06 19:47:49 +08:00
%ldconfig_scriptlets glib
2019-09-30 11:13:58 -04:00
%ldconfig_scriptlets qt5
2019-11-06 19:47:49 +08:00
%ldconfig_scriptlets cpp
2022-06-13 17:28:58 +08:00
%if 0%{?qt6}
%ldconfig_scriptlets qt6
%endif
2019-09-30 11:13:58 -04:00
%files
2023-08-08 16:04:54 +08:00
%doc README.md
2019-09-30 11:13:58 -04:00
%license COPYING
2023-12-28 10:20:01 +08:00
%{_libdir}/libpoppler.so.133*
2021-08-30 07:16:45 +00:00
%files devel
%{_libdir}/pkgconfig/poppler.pc
%{_libdir}/libpoppler.so
%dir %{_includedir}/poppler/
# xpdf headers
%{_includedir}/poppler/*.h
%{_includedir}/poppler/fofi/
%{_includedir}/poppler/goo/
%{_includedir}/poppler/splash/
2019-11-06 19:47:49 +08:00
%files glib
2019-09-30 11:13:58 -04:00
%{_libdir}/libpoppler-glib.so.8*
%{_libdir}/girepository-1.0/Poppler-0.18.typelib
2019-11-06 19:47:49 +08:00
%files glib-devel
2019-09-30 11:13:58 -04:00
%{_libdir}/pkgconfig/poppler-glib.pc
%{_libdir}/libpoppler-glib.so
%{_datadir}/gir-1.0/Poppler-0.18.gir
2019-11-06 19:47:49 +08:00
%{_includedir}/poppler/glib/
%files glib-doc
2021-08-30 07:16:45 +00:00
%license COPYING
2019-11-06 19:47:49 +08:00
%{_datadir}/gtk-doc/
2019-09-30 11:13:58 -04:00
%files qt5
%{_libdir}/libpoppler-qt5.so.1*
%files qt5-devel
%{_libdir}/libpoppler-qt5.so
%{_libdir}/pkgconfig/poppler-qt5.pc
%{_includedir}/poppler/qt5/
2019-11-06 19:47:49 +08:00
%files cpp
%{_libdir}/libpoppler-cpp.so.0*
%files cpp-devel
%{_libdir}/pkgconfig/poppler-cpp.pc
%{_libdir}/libpoppler-cpp.so
%{_includedir}/poppler/cpp
2021-08-30 07:16:45 +00:00
%files utils
%{_bindir}/pdf*
2023-08-08 16:04:54 +08:00
%{_mandir}/man1/*
2021-09-07 03:14:17 +00:00
2022-06-13 17:28:58 +08:00
%if 0%{?qt6}
%files qt6
%{_libdir}/libpoppler-qt6.so.3*
%files qt6-devel
%{_libdir}/libpoppler-qt6.so
%{_libdir}/pkgconfig/poppler-qt6.pc
%{_includedir}/poppler/qt6/
%endif
2021-09-07 03:14:17 +00:00
%files help
%doc README.md
2019-09-30 11:13:58 -04:00
%{_mandir}/man1/*
%changelog
* Mon Dec 23 2024 Funda Wang <fundawang@yeah.net> - 23.12.0-4
- fix CVE-2024-56378
2024-06-25 10:41:10 +00:00
* Tue Jun 25 2024 lingsheng <lingsheng1@h-partners.com> - 23.12.0-3
- Type:CVE
- CVE:CVE-2024-6239
- SUG:NA
- DESC:fix CVE-2024-6239
2024-04-16 07:05:16 +00:00
* Tue Apr 16 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 23.12.0-2
- disable qt6 for loongarch64
2023-12-28 10:20:01 +08:00
* Thu Dec 28 2023 Paul Thomas <paulthomas100199@gmail.com> - 23.12.0-1
- update to version 23.12.0
2023-08-08 16:04:54 +08:00
* Tue Aug 08 2023 yajun<yajun@kylinos.cn> - 23.08.0-1
- update to upstream version 23.08.0
2023-03-14 10:56:54 +00:00
* Tue Mar 14 2023 zhangpan <zhangpan103@h-partners.com> - 22.01.0-3
- Type:CVE
- CVE:CVE-2022-27337
- SUG:NA
- DESC:fix CVE-2022-27337
2022-09-07 16:14:00 +08:00
* Tue Sep 06 2022 qz_cx <wangqingzheng@kylinos.cn> - 22.01.0-2
- Type:CVE
- CVE:CVE-2022-38784
- SUG:NA
- DESC: fix CVE-2022-38784
- fix CVE-2022-38784
2022-06-13 17:28:58 +08:00
* Mon Jun 13 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 22.01.0-1
- Update to 22.01.0
2021-09-07 03:14:17 +00:00
* Tue Sep 07 2021 chenchen <chen_aka_jan@163.com> - 0.90.0-2
- add help moudle for ISO creating
2021-08-30 07:16:45 +00:00
* Tue Aug 24 2021 chenchen <chen_aka_jan@163.com> - 0.90.0-1
- update to 0.90.0
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.67.0-8
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Sat Jan 23 2021 wangye <wangye70@huawei.com> - 0.67.0-7
- Type:cves
- Id:NA
- SUG:NA
- DESC:fix CVE-2018-16646 CVE-2018-18897 CVE-2018-19060 CVE-2018-20481 CVE-2019-14494 CVE-2019-7310
2020-10-29 19:18:24 +08:00
* Thu Oct 29 2020 yanan <yanan@huawei.com> - 0.67.0-6
- Type:cves
- Id:NA
- SUG:NA
- DESC:fix CVE-2019-10872
2020-01-20 19:24:37 +08:00
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.67.0-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix cves
2020-01-20 11:12:00 +08:00
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.67.0-4
- Type:cve
- Id:NA
- SUG:NA
- DESC:fix cves
2019-11-06 19:47:49 +08:00
* Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.67.0-3
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:Adjust sub-package relationship
2019-09-30 11:13:58 -04:00
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.67.0-2
2021-08-30 07:16:45 +00:00
- Package init