Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37657874
en ru br
Репозитории ALT
5.1: 2.8.0-alt3
4.1: 2.8.0-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libxerces-c28

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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: alt3

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
Patch2: %name-gcc43.patch

Provides: xerces-c
Obsoletes: xerces-c

# 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
Provides: xerces-c-devel
Obsoletes: xerces-c-devel

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

%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, fix it more correctly

if [ ! -x %buildroot%_libdir ] ; then
   mv %buildroot/usr/lib %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 %postun_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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin