2007-08-24 01:39:12 +02:00
|
|
|
#
|
2010-07-23 17:02:36 +02:00
|
|
|
# spec file for package libxslt-python (Version 1.1.26)
|
2007-08-24 01:39:12 +02:00
|
|
|
#
|
2010-01-14 22:27:20 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-08-24 01:39:12 +02:00
|
|
|
#
|
2008-08-07 01:42:52 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:50:56 +02:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
Name: libxslt-python
|
|
|
|
BuildRequires: libxml2-python libxslt-devel python-devel
|
|
|
|
Summary: Python Bindings for libxslt
|
2010-07-23 17:02:36 +02:00
|
|
|
Version: 1.1.26
|
|
|
|
Release: 1
|
2009-07-17 15:53:23 +02:00
|
|
|
License: MIT License (or similar)
|
2007-08-24 01:39:12 +02:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Source: libxslt-%{version}.tar.bz2
|
|
|
|
# Uncomment to save space:
|
|
|
|
#NoSource: 0
|
2010-07-23 17:02:36 +02:00
|
|
|
Patch0: libxslt-1.1.24-linkflags.patch
|
2007-08-24 01:39:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{py_requires}
|
|
|
|
Requires: libxml2 >= 2.6.27
|
2007-10-03 01:17:20 +02:00
|
|
|
Url: http://xmlsoft.org/XSLT/
|
2007-08-24 01:39:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libxslt-python 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 parsing stylesheets. It uses the libxml2-python to
|
|
|
|
load and save XML and HTML files. Direct access to XPath and the XSLT
|
|
|
|
transformation context are possible. Thus it is possible to extend the
|
|
|
|
XSLT language with XPath functions written in Python.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <daniel@veillard.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libxslt-%{version}
|
|
|
|
%patch0
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf --force --install
|
2008-01-23 22:59:27 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
|
|
%configure
|
2007-08-24 01:39:12 +02:00
|
|
|
# use libxslt as built by libxslt source package
|
|
|
|
mkdir libxslt/.libs libexslt/.libs
|
2008-01-23 22:59:27 +01:00
|
|
|
cp -v %{_libdir}/libxslt.la libxslt
|
|
|
|
cp -v %{_libdir}/libexslt.la libexslt
|
2007-08-24 01:39:12 +02:00
|
|
|
make -C python
|
|
|
|
|
|
|
|
%install
|
|
|
|
export RPM_BUILD_ROOT
|
|
|
|
make -C python install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
2008-01-23 22:59:27 +01:00
|
|
|
pythondir=%{py_sitedir} \
|
|
|
|
PYTHON_SITE_PACKAGES=%{py_sitedir}
|
2007-08-24 01:39:12 +02:00
|
|
|
# Unwanted doc stuff
|
|
|
|
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc
|
|
|
|
# #223696
|
|
|
|
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{py_sitedir}/*
|
|
|
|
# %{python_sitepath}/libxslt.py
|
|
|
|
# %{python_sitepath}/libxsltmod.so
|
|
|
|
%doc python/TODO
|
|
|
|
%doc python/libxslt-python-api.xml
|
|
|
|
%doc python/tests/*.py
|
|
|
|
%doc python/tests/*.xml
|
|
|
|
%doc python/tests/*.xsl
|
2008-01-23 22:59:27 +01:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
%changelog
|