Skip to content
Snippets Groups Projects
xerces-c.spec 3.53 KiB
Newer Older
%define tarversion 3_0_0
Summary:	Xerces-C++ validating XML parser
Version:	3.0.0
Release:	1
URL:		http://xml.apache.org/xerces-c/
Source0:    %{name}-src_%{tarversion}.tar.gz
Copyright:	Apache
Group:		Libraries
BuildRoot:	%{_tmppath}/%{name}-root
Prefix:		/usr

%description
Xerces-C++ is a validating XML parser written in a portable subset of C++.
Tinny Ng's avatar
Tinny Ng committed
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.
Tinny Ng's avatar
Tinny Ng committed
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,
and minimal use of #ifdefs.

%package devel
Requires:	xerces-c = %{version}
Group:		Development/Libraries
Summary:	Header files for Xerces-C++ validating XML parser
Header files you can use to develop XML applications with Xerces-C++.

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.

%package doc
Group:		Documentation
Summary:	Documentation for Xerces-C++ validating XML parser

%description doc
Documentation for Xerces-C++.

Xerces-C++ is a validating XML parser written in a portable subset of C++.
Tinny Ng's avatar
Tinny Ng committed
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.
%setup -q -n %{name}-src_%{tarversion}
export XERCESCROOT=$RPM_BUILD_DIR/%{name}-src_%{tarversion}
cd $XERCESCROOT
CXXFLAGS=-O2 ./configure --prefix=%{prefix}
export XERCESCROOT=$RPM_BUILD_DIR/%{name}-src_%{tarversion}
cd $XERCESCROOT
make prefix=$RPM_BUILD_ROOT%{prefix} libdir=$RPM_BUILD_ROOT%{prefix}/%{_lib} install
ln -sf %{prefix}/%{_lib}/libxerces-3.0.so $RPM_BUILD_ROOT%{prefix}/%{_lib}/libxerces-c.so
rm -f $RPM_BUILD_ROOT%{prefix}/%{_lib}/libxerces.la
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/%{name}/samples
cp -a $XERCESCROOT/samples/src $RPM_BUILD_ROOT%{prefix}/share/%{name}/samples
cp -a $XERCESCROOT/samples/data $RPM_BUILD_ROOT%{prefix}/share/%{name}/samples
rm -rf `find $RPM_BUILD_ROOT%{prefix}/share/%{name} -name ".*"`
rm -f `find $RPM_BUILD_ROOT%{prefix}/share/%{name} -name "*.o"`

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(755,root,root)
%{prefix}/%{_lib}/libxerces*.so
%{prefix}/%{_lib}/libxerces*.a

%files devel
%defattr(-,root,root)
%{prefix}/include/xercesc
%{prefix}/share/%{name}/samples

PeiYong Zhang's avatar
PeiYong Zhang committed
%doc LICENSE NOTICE STATUS credits.txt Readme.html doc/
* Wed Apr 12 2006 Alberto Massari <amassari@apache.org>
- updated for new Xerces-C 3.0 filename and directory format

* Fri Jun  6 2003 Tuan Hoang <tqhoang@bigfoot.com>
- updated for new Xerces-C filename and directory format
- fixed date format in changelog section

* Fri Mar 14 2003 Tinny Ng <tng@ca.ibm.com>
Tinny Ng's avatar
Tinny Ng committed
- changed to 2.3

* Wed Dec 18 2002 Albert Strasheim <albert@stonethree.com>
- added symlink to libxerces-c.so in lib directory

* Fri Dec 13 2002 Albert Strasheim <albert@stonethree.com>
- added seperate doc package
- major cleanups

* Tue Sep 03 2002  <thomas@linux.de>
- fixed missing DESTDIR in Makefile.util.submodule

* Mon Sep 02 2002  <thomas@linux.de>
- Initial build.