Репозиторий Sisyphus
Последнее обновление: 5 июля 2022 | Пакетов: 17503 | Посещений: 24504122
en ru br
Репозитории ALT
S:2.9.14-alt1
5.1: 2.7.8-alt3.M50P.1
4.1: 2.7.2-alt1.M41.2
+updates:2.6.32-alt2.M41.2
4.0: 2.7.2-alt1.M40.1
+updates:2.6.31-alt1
3.0: 2.6.20-alt1
www.altlinux.org/Changes

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

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libxml2
Version: 2.6.20
Release: alt1
Serial: 1

Summary: The library for manipulating XML files
License: MIT
Group: System/Libraries
Url: http://xmlsoft.org/

%def_disable static
%def_disable check

%define pkgdocdir %_docdir/%name-%version

Packager: XML Development Team <xml at packages.altlinux.org>

Source: ftp://xmlsoft.org/%name-%version.tar.bz2

Patch0: %name-2.6.16-alt-doc-install.patch

Provides: libxml.so.2

Requires: xml-common

%add_python_compile_exclude %pkgdocdir/python/examples

BuildPreReq: rpm-build-python
BuildRequires: libbfd-devel python-devel python-modules-encodings zlib-devel

%package devel
Summary: Development environment for building applications manipulating XML files
Group: Development/C
Requires: %name = %version-%release

%package devel-static
Summary: Static library for building applications manipulating XML files
Group: Development/C
Requires: %name-devel = %version-%release

%package -n xml-utils
Summary: Various XML utilities
Group: Text tools
Requires: %name = %version-%release
Provides: xmllint = %version
Obsoletes: xmllint

%package -n python-modules-%name
Summary: Python bindings for the %name library
Group: Development/Python
Provides: libxml2-python
Obsoletes: libxml2-python
Requires: %name = %version-%release
Requires: python = %__python_version

%package doc
Summary: Documentation for the %name library
Group: Development/C

%description
This library allows to manipulate XML files.  It includes support
to read, modify and write XML and HTML files.  There is DTDs support
this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified.  The output
can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges.  A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an
URI library.

This package contains the shared library required to run
applications manipulating XML files.

%description devel
This library allows to manipulate XML files.  It includes support
to read, modify and write XML and HTML files.  There is DTDs support
this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified.  The output
can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges.  A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an
URI library.

This package contains the libraries, include and other files
you can use to develop applications manipulating XML files.

%description devel-static
This library allows to manipulate XML files.  It includes support
to read, modify and write XML and HTML files.  There is DTDs support
this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified.  The output
can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges.  A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an
URI library.

This package contains the static library you can use to develop
statically linked applications manipulating XML files.

%description -n xml-utils
This package contains xml tools:
+ xmllint - utility for parsing and validating XML files;
+ xmlcatalog - command line tool to parse and manipulate XML or SGML catalog files.

%description -n python-modules-%name
This package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the %name library to manipulate XML files.

This library allows to manipulate XML files.  It includes support
to read, modify and write XML and HTML files.  There is DTDs support
this includes parsing and validation even with complex DTDs, either
at parse time or later once the document has been modified.

%description doc
This package contains documentation on the XML C library.

%prep
%setup -q
%patch0 -p1
bzip2 -9fk ChangeLog

%__subst 's/xml-config/xml2-config/g' libxml.m4

%build
autoreconf -isfv
%configure --with-python \
   --with-html-dir=%_docdir \
   --with-html-subdir=%name-%version \
   %{subst_enable static}

# SMP-incompatible.

%make
%{?!_without_check:%{?!_disable_check:%make check}}

%install
%make_install install DESTDIR=$RPM_BUILD_ROOT
%__ln_s %name.so.2 $RPM_BUILD_ROOT%_libdir/libxml.so.2

mv $RPM_BUILD_ROOT%_datadir/aclocal/libxml{,2}.m4

%__install -p -m644 AUTHORS Copyright NEWS README TODO* ChangeLog.* \
$RPM_BUILD_ROOT%pkgdocdir/

%__install -p -m644 doc/*.html \
$RPM_BUILD_ROOT%pkgdocdir/

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/Copyright
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/TODO*
%pkgdocdir/ChangeLog.*

%files -n xml-utils
%_bindir/xmllint
%_bindir/xmlcatalog
%_man1dir/xmllint.*
%_man1dir/xmlcatalog.*

%files devel
%_bindir/*-config
%_libdir/*.so
%_libdir/*.sh
%_includedir/*
%_libdir/pkgconfig/*
%_datadir/aclocal/*
%_man1dir/*-config*
%_man3dir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif #enabled static

%files -n python-modules-%name
%python_sitelibdir/*
%dir %pkgdocdir
%dir %pkgdocdir/python
%pkgdocdir/python/TODO
%pkgdocdir/python/examples

%files doc
%dir %pkgdocdir
%pkgdocdir/*.html
%pkgdocdir/*.gif
%pkgdocdir/*.png
%pkgdocdir/*.xml
%pkgdocdir/*.xsl
%pkgdocdir/*.c
%pkgdocdir/*.res
%pkgdocdir/html
%pkgdocdir/examples
%pkgdocdir/tutorial

%changelog

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

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