[packages/xsd] Added patches for gcc 4.7 and boost 1.50

baggins baggins at pld-linux.org
Wed Jul 11 13:33:59 CEST 2012


commit f1f97226c0977262bc784dfc2c3df066d29ff8ba
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jul 11 13:33:08 2012 +0200

    Added patches for gcc 4.7 and boost 1.50

 xsd.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/xsd.spec b/xsd.spec
index 94567b0..04fa0b4 100644
--- a/xsd.spec
+++ b/xsd.spec
@@ -10,6 +10,8 @@ Source0:	http://www.codesynthesis.com/download/xsd/3.3/%{name}-%{version}+dep.ta
 # Source0-md5:	1bad45103f9111964b78d6f2327fbb15
 # Sent suggestion to upstream via e-mail 20090707
 Patch0:		%{name}-3.3.0-xsdcxx-rename.patch
+Patch1:		gcc47.patch
+Patch2:		boost-1.50.patch
 URL:		http://www.codesynthesis.com/products/xsd/
 BuildRequires:	boost-devel
 BuildRequires:	iconv
@@ -18,6 +20,8 @@ BuildRequires:	xerces-c-devel
 Requires:	xerces-c-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		specflags	-fpermissive
+
 %description
 CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to
 C++ data binding compiler. Provided with an XML instance specification
@@ -52,11 +56,13 @@ Dokumentacja API XSD.
 cd xsd
 %patch0 -p1
 cd ..
+%patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} \
 	verbose=1 \
-	CXXFLAGS="%{rpmcxxflags} -DBOOST_FILESYSTEM_VERSION=2"
+	CXXFLAGS="%{rpmcxxflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT


More information about the pld-cvs-commit mailing list