diff --git a/expat.spec b/expat.spec index a4bccfef72be1221ed3f0bffea8abd92ad8238f8..559366b0b068e4a3fd4297de9427ba33f624d9c5 100644 --- a/expat.spec +++ b/expat.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %global unversion 2_2_5 Summary: An XML parser library Name: expat Version: %(echo %{unversion} | sed 's/_/./g') -Release: 8%{?dist}.2 +Release: 8%{anolis_release}%{?dist}.2 Source: https://github.com/libexpat/libexpat/archive/R_%{unversion}.tar.gz#/expat-%{version}.tar.gz URL: https://libexpat.github.io/ License: MIT @@ -21,6 +22,9 @@ Patch9: expat-2.2.5-Prevent-integer-overflow-in-storeRawNames.patch Patch10: expat-2.2.5-Prevent-integer-overflow-in-copyString.patch Patch11: expat-2.2.5-Prevent-stack-exhaustion-in-build_model.patch +Requires: glibc +Provides: /usr/bin/xmlwf + %description This is expat, the C library for parsing XML, written by James Clark. Expat is a stream oriented XML parser. This means that you register handlers with @@ -29,6 +33,15 @@ parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: Libraries and header files to develop applications using expat Requires: expat%{?_isa} = %{version}-%{release} @@ -73,6 +86,7 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/{AUTHORS,Changes} %check make check @@ -81,12 +95,14 @@ make check %files %{!?_licensedir:%global license %%doc} -%doc AUTHORS Changes %license COPYING %{_bindir}/* %{_libdir}/lib*.so.* %{_mandir}/*/* +%files doc +%doc AUTHORS Changes + %files devel %doc doc/reference.html doc/*.png doc/*.css examples/*.c %{_libdir}/lib*.so @@ -97,6 +113,9 @@ make check %{_libdir}/lib*.a %changelog +* Sat Jul 16 2022 mgb01105731 - 2.2.5-8.0.1.2 +- Add doc sub package + * Tue May 03 2022 Tomas Korbar - 2.2.5-8.2 - Improve fix for CVE-2022-25313 - Related: CVE-2022-25313 @@ -123,7 +142,7 @@ make check - Resolves: CVE-2022-25235 - Resolves: CVE-2022-25315 -* Fri Feb 14 2022 Tomas Korbar - 2.2.5-5 +* Fri Feb 18 2022 Tomas Korbar - 2.2.5-5 - Fix multiple CVEs - CVE-2022-23852 expat: integer overflow in function XML_GetBuffer - CVE-2021-45960 expat: Large number of prefixed XML attributes on a single tag can crash libexpat