Sisyphus repositório
Última atualização: 16 outubro 2019 | SRPMs: 17499 | Visitas: 15278414
en ru br
ALT Linux repositórios
S:1.1.33-alt2
5.0: 1.1.24-alt1
4.1: 1.1.24-alt0.M41.1
4.0: 1.1.24-alt0.M40.1
3.0: 1.1.14-alt1

Group :: Sistema/Bibliotecas
RPM: libxslt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: libxslt
Version: 1.1.14
Release: alt1

%define xmlver 1:2.6.17

%def_disable static

Summary: Library providing XSLT support
Group: System/Libraries
License: MIT
Url: http://xmlsoft.org/
Packager: XML Development Team <xml at packages.altlinux.org>

Source: ftp://xmlsoft.org/XSLT/%name-%version.tar.bz2
Patch1: %name-1.0.20-alt-cflags.patch
Patch2: %name-1.0.21-alt-makefile.patch

%define pythonlibdir %(%__python -c "from distutils import sysconfig; print sysconfig.get_python_lib()")

Requires: libxml2 >= %xmlver

BuildRequires: libxml2-devel >= %xmlver
BuildPreReq: rpm-build-python

BuildRequires: libbfd-devel libgcrypt-devel libgpg-error-devel
BuildRequires: python-dev python-modules-encodings python-modules-libxml2
BuildRequires: xml-common xml-utils zlib-devel

%package -n xsltproc
Summary: XSLT processor using libxslt
Group: Text tools
Requires: %name = %version-%release

%package devel
Summary: Development environment for XSLT
Group: Development/C
Requires: %name = %version-%release, libxml2-devel >= %xmlver

%package devel-static
Summary: Static library for XSLT
Group: Development/C
Requires: %name-devel = %version-%release

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

%description
XSLT library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

This package provides shared library required for run XSLT-based software.

%description -n xsltproc
This package provides an XSLT processor based on the libxslt C library.
It allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

%description devel
XSLT library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

This package provides include files required for software development
with XSLT.

%description devel-static
XSLT library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

This package provides static library required for development of
statically linked programs with XSLT.

%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 libxslt library to apply XSLT transformations.

This library allows to parse sytlesheets, uses the %name-python
to load and save XML and HTML files. Direct access to XPath and
the XSLT transformation context are possible to extend the XSLT language
with XPath functions written in Python.

%prep
%setup -q
%patch1 -p1 -b .patch-cflags
%patch2 -p1 -b .patch-make

%__bzip2 -9k ChangeLog

%build

# needed by patch1 & patch2

autoreconf -isfv

%configure \
--with-html-dir=%_docdir \
%{subst_enable static} \
#

perl -pi -e 's,-I/usr/include($|\s),,' %name.pc

# SMP-incompatible build.

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

%install
%define pkgdocdir %_docdir/%name-%version
%makeinstall \
PYTHON_SITE_PACKAGES=$RPM_BUILD_ROOT%pythonlibdir \
BASE_DIR=$RPM_BUILD_ROOT%_docdir \
TARGET_DIR=$RPM_BUILD_ROOT%pkgdocdir \
#
%__install -p -m644 AUTHORS ChangeLog.bz2 COPYING FEATURES NEWS README TODO \
$RPM_BUILD_ROOT%pkgdocdir/

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

%files
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog.bz2
%pkgdocdir/COPYING
%pkgdocdir/FEATURES
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/TODO

%files -n xsltproc
%_bindir/xsltproc
%_man1dir/xsltproc.1*

%files devel
%_bindir/*-config
%_libdir/*.so
%_libdir/*.sh
%_includedir/*
%_libdir/pkgconfig/*
%_datadir/aclocal/*
%_man3dir/*
%dir %pkgdocdir
%pkgdocdir/*.html
%pkgdocdir/*.gif
%pkgdocdir/html
%pkgdocdir/tutorial*
%pkgdocdir/EXSLT

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

%files -n python-modules-%name
%pythonlibdir/*
%dir %pkgdocdir
%dir %pkgdocdir/python
%dir %pkgdocdir/python/examples
%pkgdocdir/python/TODO
%pkgdocdir/python/examples/*.py
%pkgdocdir/python/examples/*.xml
%pkgdocdir/python/examples/*.xsl

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009