%define major 1 %define libname %mklibname expat %{major} %define devname %mklibname -d expat Summary: XML parser written in C Name: expat Version: 2.1.0 Release: %mkrel 11 License: MIT Group: Text tools URL: http://www.libexpat.org Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.gz Patch0: expat-2.1.0-xmlwfargs.patch # fix for CVE-2015-1283 as reported for chromium 44, patch from mozilla Patch1: CVE-2015-1283.patch %description Expat is an XML 1.0 parser written in C by James Clark. It aims to be fully conforming. It is currently not a validating XML parser. %package -n %{libname} Summary: Main library for expat Group: Development/C %description -n %{libname} This package contains the library needed to run programs dynamically linked with expat. %package -n %{devname} Summary: Development environment for the expat XML parser Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{_lib}expat1-devel < 2.1.0-5 %description -n %{devname} Development environment for the expat XML parser. %prep %setup -q %autopatch -p1 %build #rm -rf autom4te*.cache #rm conftools/libtool.m4 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf #export CFLAGS="%{optflags} -fPIC" %configure2_5x \ --disable-static %make %check make check %install %makeinstall_std #we don't want these find %{buildroot} -name "*.la" -delete %files %{_bindir}/xmlwf %{_mandir}/man*/* %files -n %{libname} %{_libdir}/libexpat.so.%{major}{,.*} %files -n %{devname} %doc doc/reference.html %{_libdir}/libexpat.so %{_includedir}/expat.h %{_includedir}/expat_external.h %{_libdir}/pkgconfig/expat.pc