+
+%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
declaration).
%prep
-%setup -q
+%setup -q
cp %{SOURCE1001} .
-
rm -f examples/*.dsp
+
%build
-autoreconf -fi
-%configure --disable-static --with-pic
+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
%files
%manifest %{name}.manifest
%defattr(-, root, root)
-%license COPYING
-%doc %{_mandir}/man?/*
+%license COPYING
%{_bindir}/xmlwf
%files -n libexpat