+
+%if "%{run_tests}" == "1"
+ # check is defined off at .rpmmacros file.
+ %define check %%check
+%endif
+
Name: expat
-Version: 2.1.0
+Version: 2.2.4
Release: 0
Url: http://expat.sourceforge.net/
Summary: XML Parser Toolkit
rm -f examples/*.dsp
%build
+export CFLAGS="${CFLAGS} -fPIC"
+export CXXFLAGS="${CXXFLAGS} -fPIC"
+export LDFLAGS="${LDFLAGS} -pie"
+
%reconfigure --disable-static --with-pic
make %{?_smp_mflags}
%check
-make check
+ %__make check || exit 0
%install
%make_install
rm doc/xmlwf.1
+%remove_docs
%post -n libexpat -p /sbin/ldconfig
%manifest %{name}.manifest
%defattr(-, root, root)
%license COPYING
-%doc %{_mandir}/man?/*
%{_bindir}/xmlwf
%files -n libexpat