diff --git a/.gitignore b/.gitignore index 87efd06..0c5635c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ i386 *.rpm clog expat-2.0.1.tar.gz +/results_expat +/expat-2.?.? +/expat-2.1.0.tar.gz diff --git a/expat-1.95.8-CVE-2009-3720.patch b/expat-1.95.8-CVE-2009-3720.patch deleted file mode 100644 index 4893e7f..0000000 --- a/expat-1.95.8-CVE-2009-3720.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- expat-1.95.8/lib/xmltok_impl.c.cve3720 -+++ expat-1.95.8/lib/xmltok_impl.c -@@ -1741,7 +1741,7 @@ PREFIX(updatePosition)(const ENCODING *e - const char *end, - POSITION *pos) - { -- while (ptr != end) { -+ while (ptr < end) { - switch (BYTE_TYPE(enc, ptr)) { - #define LEAD_CASE(n) \ - case BT_LEAD ## n: \ diff --git a/expat-1.95.8-pedantic.patch b/expat-1.95.8-pedantic.patch deleted file mode 100644 index 0973176..0000000 --- a/expat-1.95.8-pedantic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- expat-1.95.8/lib/expat.h.pedantic -+++ expat-1.95.8/lib/expat.h -@@ -43,7 +43,7 @@ - #define XML_STATUS_ERROR XML_STATUS_ERROR - XML_STATUS_OK = 1, - #define XML_STATUS_OK XML_STATUS_OK -- XML_STATUS_SUSPENDED = 2, -+ XML_STATUS_SUSPENDED = 2 - #define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED - }; - diff --git a/expat-2.0.1-CVE-2009-3560-revised.patch b/expat-2.0.1-CVE-2009-3560-revised.patch deleted file mode 100644 index ce48d03..0000000 --- a/expat-2.0.1-CVE-2009-3560-revised.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- expat-2.0.1/lib/xmlparse.c.newcve3560 -+++ expat-2.0.1/lib/xmlparse.c -@@ -3703,6 +3703,9 @@ doProlog(XML_Parser parser, - return XML_ERROR_UNCLOSED_TOKEN; - case XML_TOK_PARTIAL_CHAR: - return XML_ERROR_PARTIAL_CHAR; -+ case -XML_TOK_PROLOG_S: -+ tok = -tok; -+ break; - case XML_TOK_NONE: - #ifdef XML_DTD - /* for internal PE NOT referenced between declarations */ diff --git a/expat-2.0.1-confcxx.patch b/expat-2.0.1-confcxx.patch deleted file mode 100644 index 8b924e0..0000000 --- a/expat-2.0.1-confcxx.patch +++ /dev/null @@ -1,13 +0,0 @@ - -Configure for C++ too so the testsuite works. - ---- expat-2.0.1/configure.in.confcxx -+++ expat-2.0.1/configure.in -@@ -62,6 +62,7 @@ AC_SUBST(LIBAGE) - - dnl Checks for programs. - AC_PROG_CC -+AC_PROG_CXX - AC_PROG_INSTALL - - if test "$GCC" = yes ; then diff --git a/expat.spec b/expat.spec index 2109386..075b8a0 100644 --- a/expat.spec +++ b/expat.spec @@ -1,12 +1,9 @@ Summary: An XML parser library Name: expat -Version: 2.0.1 -Release: 12%{?dist} +Version: 2.1.0 +Release: 1%{?dist} Group: System Environment/Libraries Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz -Patch1: expat-2.0.1-confcxx.patch -Patch2: expat-2.0.1-CVE-2009-3560-revised.patch -Patch3: expat-1.95.8-CVE-2009-3720.patch URL: http://www.libexpat.org/ License: MIT BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -31,13 +28,9 @@ to develop XML applications with expat. %prep %setup -q -%patch1 -p1 -b .confcxx -%patch2 -p1 -b .newcve3560 -%patch3 -p1 -b .cve3720 %build rm -rf autom4te*.cache -rm conftools/libtool.m4 libtoolize --copy --force --automake && aclocal && autoheader && autoconf export CFLAGS="$RPM_OPT_FLAGS -fPIC" %configure --libdir=/%{_lib} --disable-static @@ -54,7 +47,8 @@ make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir} mv $RPM_BUILD_ROOT/%{_lib}/libexpat.so $RPM_BUILD_ROOT%{_libdir} -rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la +rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la \ + $RPM_BUILD_ROOT/%{_lib}/pkgconfig/*.pc lib=`echo $RPM_BUILD_ROOT/%{_lib}/libexpat.so.*.*` ln -sf ../../%{_lib}/`basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/libexpat.so @@ -82,6 +76,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_includedir}/*.h %changelog +* Mon Mar 26 2012 Joe Orton - 2.1.0-1 +- update to 2.1.0 (#806602) + * Fri Jan 13 2012 Fedora Release Engineering - 2.0.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index 9d051ba..7107749 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ee8b492592568805593f81f8cdf2a04c expat-2.0.1.tar.gz +dd7dab7a5fea97d2a6a43f511449b7cd expat-2.1.0.tar.gz