PeiYong,


here is the spec file without the patch lines.

Thanks for checking in.


Regards
Thomas

On Wed, 18 Sep 2002, PeiYong PY Zhang wrote:

> Thomas,
> 
>      Would you send me the new spec file (after the deletion of the two
> patch lines u mentioned),
> and I'd check it into cvs later, thanks.
> 
> Rgds,
> PeiYong
> 
> ----- Original Message -----
> From: "Thomas Woerner" <[EMAIL PROTECTED]>
> To: "PeiYong PY Zhang" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 17, 2002 4:02 PM
> Subject: Re: Xerces 2.1.0 RPM for linux
> 
> 
> >
> > Hello PeiYong,
> >
> >
> > you have to apply the makefile patch before you can integrate the spec
> > file into xerces (cvs). After you have applied the patch, remove the two
> > patch lines from the spec file and rename it to xerces-c.spec.
> >
> > You can place the spec file everywhere in the xerces tree. I would place
> > it in the xerces source or root directory.
> >
> > Then you can build the binary RPM's for linux with
> > rpm[build] -tb xerces-c-srcX_X_X.tar.gz
> >
> >
> > Ciao
> > Thomas
> >
> >
> > On Tue, 17 Sep 2002, PeiYong PY Zhang wrote:
> >
> > > Thomas,
> > >
> > >       Do we need to put the *.spec in the cvs ? and where if it is,
> > > thanks.
> > >
> > > Rgds,
> > > PeiYong
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

%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
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. 

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}

%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  <[EMAIL PROTECTED]>
- fixed missing DESTDIR in Makefile.util.submodule

* Mon Sep 02 2002  <[EMAIL PROTECTED]>
- Initial build.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to