You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2002/09/24 17:12:57 UTC

cvs commit: xml-xerces/c/src/xercesc xerces-c.spec

peiyongz    2002/09/24 08:12:57

  Added:       c/src/xercesc xerces-c.spec
  Log:
  RPM for Xerces2.1.0, patch from Thomas Woerner (thomas@linux.de)
  
  Revision  Changes    Path
  1.1                  xml-xerces/c/src/xercesc/xerces-c.spec
  
  Index: xerces-c.spec
  ===================================================================
  %define tarversion 2_1_0
  
  # threads
  # values: pthreads, none
  %define threads pthreads
  
  Summary:	Validating XML parser
  Name:		xerces-c
  Version:	2.1.0
  Release:	2
  URL:		http://xml.apache.org/xerces-c/
  Source0:	%{name}-src%{tarversion}.tar.gz
  Patch:		%{name}-src%{tarversion}-make.patch
  Copyright:	Apache
  Group:		Libraries
  BuildRoot:	%{_tmppath}/%{name}-root
  BuildRequires:	gcc-c++
  Prefix:		/usr
  
  %description
  Xerces-C++ is a validating XML parser written in a portable subset of C++.
  Xerces-C++ makes it easy to give your application the ability to read and 
  write XML data. A shared library is provided for parsing, generating, 
  manipulating, and validating XML documents. 
  
  Xerces-C++ is faithful to the XML 1.0 recommendation and many associated
  standards.
  
  The parser provides high performance, modularity, and scalability. Source 
  code, samples and API documentation are provided with the parser. For 
  portability, care has been taken to make minimal use of templates, no RTTI, 
  no C++ namespaces and minimal use of #ifdefs.
  
  %package devel
  Requires:	xerces-c = %{version}
  Group:		Development/Libraries
  Summary:	Header files, documentation and samples for xerces-c.
  
  %description devel
  Xerces-C++ is a validating XML parser written in a portable subset of C++.
  Xerces-C++ makes it easy to give your application the ability to read and 
  write XML data. A shared library is provided for parsing, generating, 
  manipulating, and validating XML documents. 
  
  %prep
  %setup -q -n %{name}-src%{tarversion}
  %patch -p1
  
  %build
  export XERCESCROOT=$RPM_BUILD_DIR/%{name}-src%{tarversion}
  cd src/xercesc
  ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -r%{threads} -P%{prefix}
  make
  cd $RPM_BUILD_DIR/%{name}-src%{tarversion}/samples
  ./runConfigure -plinux -cgcc -xg++
  make
  rm -rf $RPM_BUILD_DIR/%{name}-src%{tarversion}/bin/obj
  
  %install
  export XERCESCROOT=$RPM_BUILD_DIR/%{name}-src%{tarversion}
  cd src/xercesc
  make install DESTDIR=$RPM_BUILD_ROOT
  cd $RPM_BUILD_DIR/%{name}-src%{tarversion}
  mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
  cp -a bin/* $RPM_BUILD_ROOT%{prefix}/bin/
  mkdir -p $RPM_BUILD_ROOT%{prefix}/share/%{name}
  cp -a doc $RPM_BUILD_ROOT%{prefix}/share/%{name}/
  cp -a samples $RPM_BUILD_ROOT%{prefix}/share/%{name}/
  
  %clean
  rm -rf $RPM_BUILD_ROOT
  
  %post -p /sbin/ldconfig
  
  %postun -p /sbin/ldconfig
  
  %files
  %defattr(755,root,root)
  %{prefix}/bin
  %{prefix}/lib/libxerces-c.so.*
  
  %files devel
  %defattr(-,root,root)
  %{prefix}/include/xercesc
  %{prefix}/lib/libxerces-c.so
  %{prefix}/share/%{name}/doc
  %{prefix}/share/%{name}/samples
  
  %changelog
  * Tue Sep 03 2002  <th...@linux.de>
  - fixed missing DESTDIR in Makefile.util.submodule
  * Mon Sep 02 2002  <th...@linux.de>
  - Initial build.
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org