SPECS: xalan-c.spec - almost compiles

glen glen at pld-linux.org
Tue Jan 16 09:00:30 CET 2007


Author: glen                         Date: Tue Jan 16 08:00:30 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- almost compiles

---- Files affected:
SPECS:
   xalan-c.spec (1.20 -> 1.21) 

---- Diffs:

================================================================
Index: SPECS/xalan-c.spec
diff -u SPECS/xalan-c.spec:1.20 SPECS/xalan-c.spec:1.21
--- SPECS/xalan-c.spec:1.20	Tue Jan 16 01:54:44 2007
+++ SPECS/xalan-c.spec	Tue Jan 16 09:00:25 2007
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+# TODO
+# - buildfail: /usr/bin/ld: cannot find -lxalan-c
 %define		_ver	%(echo %{version} | tr . _)
 Summary:	XML parser
 Summary(pl):	Analizator składniowy XML-a
@@ -9,9 +11,9 @@
 Group:		Applications/Publishing/XML
 Source0:	http://www.apache.org/dist/xml/xalan-c/Xalan-C_%{_ver}-src.tar.gz
 # Source0-md5:	0a3fbb535885531cc544b07a2060bfb1
-Patch0:	%{name}-getopt.patch
+Patch0:		%{name}-getopt.patch
 URL:		http://xalan.apache.org/
-BuildRequires:	autoconf
+BuildRequires:	libicu-devel
 BuildRequires:	util-linux
 BuildRequires:	xerces-c >= 2.7.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,44 +58,30 @@
 cd c
 export XALANCROOT=$(pwd)
 export XERCESROOT=/usr
+export ICUROOT=/usr
+export XALAN_USE_ICU=true
 
-%if 1
 ./runConfigure \
 	-p linux \
 	-c "%{__cc}" \
 	-x "%{__cxx}" \
-	-minmem
-
-%{__make}
-%endif
-
-# passes CC correctly but broken
-%if 0
 %ifarch %{x8664}
-CXXFLAGS=-DXML_BITSTOBUILD_64
-CFLAGS=-DXML_BITSTOBUILD_64
-BITSTOBUILD=64
+	-b 64 \
 %else
-BITSTOBUILD=32
-%endif
-%configure
-%{__make} \
-	LIBS="-lpthread" \
-	LDFLAGS="%{rpmcflags}" \
-	CXXFLAGS="%{rpmcxxflags} $CXXFLAGS" \
-	CFLAGS="%{rpmcxxflags} $CFLAGS" \
-	CC="%{__cc}" \
-	CXX="%{__cxx}" \
-	XALAN_LOCALE_SYSTEM=inmem \
-	XALAN_LOCALE=en_US \
-	BITSTOBUILD=$BITSTOBUILD \
-	TRANSCODER= \
+	-b 32 \
 %endif
+	-t icu \
+	-m icu
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd c/src
-rm -rf $RPM_BUILD_ROOT
+cd c
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+exit 1
 install -d $RPM_BUILD_ROOT%{_libdir}
 install -d $RPM_BUILD_ROOT%{_includedir}
 
@@ -128,6 +116,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.21  2007/01/16 08:00:25  glen
+- almost compiles
+
 Revision 1.20  2007/01/16 00:54:44  glen
 - start with 1.10.0 sources
 - license and url updated
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/xalan-c.spec?r1=1.20&r2=1.21&f=u



More information about the pld-cvs-commit mailing list