Group :: System/Libraries
RPM: libxerces-c28
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname xerces-c
%define tarname %oname-src_2_8_0
%ifarch alpha ppc64 s390x sparc64 x86_64 ia64
%define rcopts -b 64
%else
%define rcopts -b 32
%endif
# threads
# values: pthreads, none
%define threads pthreads
Name: libxerces-c28
Version: 2.8.0
Release: alt1
Summary: Xerces-C++ validating XML parser
Url: http://xml.apache.org/xerces-c/
License: Apache
Group: System/Libraries
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://apache.rinet.ru/dist/xerces/c/sources/%tarname.tar.bz2
Source1: %name.pc
Patch0: xerces-c-src_2_6_0-lsattr.patch
# fix lib linking
Patch1: %name.patch
# Automatically added by buildreq on Wed Mar 09 2005
BuildRequires: gcc-c++ libstdc++-devel
%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,
and minimal use of #ifdefs.
%package devel
Group: System/Libraries
Summary: Header files for Xerces-C++ validating XML parser
Requires: %name = %version
%description devel
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: System/Libraries
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++.
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 %tarname
%patch0 -p1
%patch1
%build
export XERCESCROOT=$(pwd)
cd $XERCESCROOT/src/xercesc
./runConfigure %rcopts -plinux -cgcc -xg++ -minmem -nsocket -tnative -r%threads -P%prefix
%make_build
cd $XERCESCROOT/samples
./runConfigure -plinux -cgcc -xg++
%make_build
%install
export XERCESCROOT=$(pwd)
cd $XERCESCROOT/src/xercesc
%make_install PREFIX=%buildroot%prefix install
# x86_64 hack
if [ ! -x %buildroot%_libdir ] ; then
mv %buildroot%_libdir %buildroot%_libdir
fi
mkdir -p %buildroot%_bindir
#we don't want obj directory
install `find $XERCESCROOT/bin -maxdepth 1 -type f` %buildroot%_bindir
mkdir -p %buildroot%_datadir/%name
cp -a $XERCESCROOT/samples %buildroot%_datadir/%name
install -m644 -D %SOURCE1 %buildroot%_pkgconfigdir/xerces-c.pc
%post -p %post_ldconfig
%postun -p %post_ldconfig
%files
%_bindir/*
%_libdir/libxerces-c.so.*
%_libdir/libxerces-depdom.so.*
%files devel
%_includedir/xercesc/
%_libdir/libxerces-c.so
%_libdir/libxerces-depdom.so
%dir %_datadir/%name/
%_datadir/%name/samples/
%_pkgconfigdir/xerces-c.pc
%files doc
%doc LICENSE NOTICE STATUS credits.txt Readme.html doc/
%changelog
…
Full changelog you can see here
%define tarname %oname-src_2_8_0
%ifarch alpha ppc64 s390x sparc64 x86_64 ia64
%define rcopts -b 64
%else
%define rcopts -b 32
%endif
# threads
# values: pthreads, none
%define threads pthreads
Name: libxerces-c28
Version: 2.8.0
Release: alt1
Summary: Xerces-C++ validating XML parser
Url: http://xml.apache.org/xerces-c/
License: Apache
Group: System/Libraries
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://apache.rinet.ru/dist/xerces/c/sources/%tarname.tar.bz2
Source1: %name.pc
Patch0: xerces-c-src_2_6_0-lsattr.patch
# fix lib linking
Patch1: %name.patch
# Automatically added by buildreq on Wed Mar 09 2005
BuildRequires: gcc-c++ libstdc++-devel
%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,
and minimal use of #ifdefs.
%package devel
Group: System/Libraries
Summary: Header files for Xerces-C++ validating XML parser
Requires: %name = %version
%description devel
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: System/Libraries
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++.
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 %tarname
%patch0 -p1
%patch1
%build
export XERCESCROOT=$(pwd)
cd $XERCESCROOT/src/xercesc
./runConfigure %rcopts -plinux -cgcc -xg++ -minmem -nsocket -tnative -r%threads -P%prefix
%make_build
cd $XERCESCROOT/samples
./runConfigure -plinux -cgcc -xg++
%make_build
%install
export XERCESCROOT=$(pwd)
cd $XERCESCROOT/src/xercesc
%make_install PREFIX=%buildroot%prefix install
# x86_64 hack
if [ ! -x %buildroot%_libdir ] ; then
mv %buildroot%_libdir %buildroot%_libdir
fi
mkdir -p %buildroot%_bindir
#we don't want obj directory
install `find $XERCESCROOT/bin -maxdepth 1 -type f` %buildroot%_bindir
mkdir -p %buildroot%_datadir/%name
cp -a $XERCESCROOT/samples %buildroot%_datadir/%name
install -m644 -D %SOURCE1 %buildroot%_pkgconfigdir/xerces-c.pc
%post -p %post_ldconfig
%postun -p %post_ldconfig
%files
%_bindir/*
%_libdir/libxerces-c.so.*
%_libdir/libxerces-depdom.so.*
%files devel
%_includedir/xercesc/
%_libdir/libxerces-c.so
%_libdir/libxerces-depdom.so
%dir %_datadir/%name/
%_datadir/%name/samples/
%_pkgconfigdir/xerces-c.pc
%files doc
%doc LICENSE NOTICE STATUS credits.txt Readme.html doc/
%changelog
…
Full changelog you can see here