Merge branch 'tizen_base' into tizen
[platform/upstream/expat.git] / packaging / expat.spec
index ea6ec23..0b1f1c5 100644 (file)
@@ -1,5 +1,5 @@
 Name:           expat
-Version:        2.1.0
+Version:        2.2.5
 Release:        0
 Url:            http://expat.sourceforge.net/
 Summary:        XML Parser Toolkit
@@ -98,15 +98,21 @@ cp %{SOURCE1001} .
 rm -f examples/*.dsp
 
 %build
-%reconfigure --disable-static --with-pic
+export CFLAGS="${CFLAGS} -fPIC"
+export CXXFLAGS="${CXXFLAGS} -fPIC"
+export LDFLAGS="${LDFLAGS} -pie"
+
+#%reconfigure --disable-static --with-pic
+%reconfigure --disable-static
 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
 
@@ -116,7 +122,6 @@ rm doc/xmlwf.1
 %manifest %{name}.manifest
 %defattr(-, root, root)
 %license COPYING
-%doc %{_mandir}/man?/*
 %{_bindir}/xmlwf
 
 %files -n libexpat