Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046529
en ru br
Репозитории ALT
S:2.10.4-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.32
Release: alt2.M41.2
Epoch: 1

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

%def_disable static
%def_enable check

%define pkgdocdir %_docdir/%name-%version

Source: libxml2-%version.tar
Patch0: libxml2-%version-%release.patch
Patch1: libxml2-2.6.26-CVE-2008-4225.patch
Patch2: libxml2-2.6.26-CVE-2008-4226.patch

Requires: xml-common

%add_python_compile_exclude %pkgdocdir/python/examples

# Automatically added by buildreq on Tue Apr 22 2008

BuildRequires: libbfd-devel python-devel xml-common zlib-devel

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

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

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

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

%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-module-%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 -n libxml2-%version
%patch0 -p1
%patch1 -p0
%patch2 -p0

%build
autoreconf -isfv
%configure \
   --disable-dependency-tracking \
   --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=%buildroot

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

install -p -m644 AUTHORS Copyright NEWS README %buildroot%pkgdocdir/
install -p -m644 doc/*.html %buildroot%pkgdocdir/

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

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

%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-module-%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
%doc %_datadir/gtk-doc/html/libxml2/

%changelog

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

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