]> git.pld-linux.org Git - packages/expat.git/blobdiff - expat.spec
- updated to 2.6.2 (fixes CVE-2023-52425 CVE-2023-52426 CVE-2024-28757)
[packages/expat.git] / expat.spec
index a1e6f7a508f2338a6b6aeaec72dd73c299525cf1..9355f4467a1f6c017d4748d67600626283802d1e 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without static_libs     # don't build static library
+%bcond_without static_libs     # static library
 
 Summary:       XML 1.0 parser
 Summary(es.UTF-8):     Parser de XML 1.0
@@ -9,19 +9,23 @@ Summary(pt_BR.UTF-8): Biblioteca XML expat
 Summary(ru.UTF-8):     Переносимая библиотека разбора XML (expat)
 Summary(uk.UTF-8):     Переносима бібліотека розбору XML (expat)
 Name:          expat
-Version:       2.2.4
+Version:       2.6.2
 Release:       1
 Epoch:         1
 License:       MIT
 Group:         Applications/Publishing/XML
-Source0:       http://downloads.sourceforge.net/expat/%{name}-%{version}.tar.bz2
-# Source0-md5: 6e3980aba29a224a9f478d88ac7ec207
-Patch0:                %{name}-ac_fixes.patch
+Source0:       https://downloads.sourceforge.net/expat/%{name}-%{version}.tar.xz
+# Source0-md5: 0cb75c8feb842c0794ba89666b762a2d
 URL:           http://www.libexpat.org/
-BuildRequires: autoconf >= 2.58
+BuildRequires: autoconf >= 2.69
 BuildRequires: automake
-BuildRequires: libtool
-Obsoletes:     libexpat1_95
+BuildRequires: docbook2X
+BuildRequires: gcc >= 5:3.2
+BuildRequires: libtool >= 2:2.4
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Obsoletes:     libexpat1_95 < 2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -61,7 +65,7 @@ Summary(ru.UTF-8):    Хедеры и библиотека, необходимые
 Summary(uk.UTF-8):     Хедери та бібліотека, необхідні для програмування з expat
 Group:         Development/Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
-Obsoletes:     libexpat1_95-devel
+Obsoletes:     libexpat1_95-devel < 2
 
 %description devel
 Expat header files.
@@ -129,15 +133,17 @@ Programy narzędziowe do biblioteki Expat:
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
-%{__autoheader}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
+# remove SIZEOF_VOID_P define, see buildconf.sh
+%{__sed} -i -e '/^\/\* The size of `void \*/,/^$/ d' expat_config.h.in
 %configure \
+       DOCBOOK_TO_MAN=docbook2X2man \
        %{!?with_static_libs:--disable-static}
 %{__make}
 
@@ -167,12 +173,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/{reference.html,style.css,*.png}
+%doc doc/{reference.html,style.css}
 %attr(755,root,root) %{_libdir}/libexpat.so
 %{_libdir}/libexpat.la
 %{_includedir}/expat*.h
 %{_aclocaldir}/expat.m4
 %{_pkgconfigdir}/expat.pc
+%{_libdir}/cmake/expat-%{version}
 %{_examplesdir}/%{name}-%{version}
 
 %if %{with static_libs}
This page took 0.208424 seconds and 4 git commands to generate.