libxslt/libxslt-python.spec
Ismail Dönmez 756de289e8 Accepting request 77392 from home:elvigia:branches:devel:libraries:c_c++
- Rework build of this package in a sane way.

- Fix broken requires,provides,Obsoletes causing "have choice.."
  build system errors
- Remove all "la" files since they are no longer needed
- Fix -devel pacakge requires and messed up -config scripts
  this may cause build fails of already broken dependant packages
  that do not link all the needed libraries in an explicit manner
  (This is not a bug here, it is expected to cause it)

OBS-URL: https://build.opensuse.org/request/show/77392
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxslt?expand=0&rev=12
2011-07-29 07:30:47 +00:00

91 lines
2.7 KiB
RPMSpec

#
# spec file for package libxslt-python (Version 1.1.26)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libxslt-python
BuildRequires: libxml2-python python-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgpg-error-devel
BuildRequires: libxml2-devel
Summary: Python Bindings for libxslt
Version: 1.1.26
Release: 1
License: MIT License (or similar)
Group: Development/Libraries/Python
Source: libxslt-%{version}.tar.bz2
# Uncomment to save space:
#NoSource: 0
Patch0: libxslt-1.1.24-linkflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
Url: http://xmlsoft.org/XSLT/
#BuildArch: noarch
%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
%configure --with-python --with-pic --disable-static
make %{?_smp_mflags} PYTHON_SITE_PACKAGES=%{py_sitedir} pythondir=%{py_sitedir}
%install
make install PYTHON_SITE_PACKAGES=%{py_sitedir} pythondir=%{py_sitedir} DESTDIR=$RPM_BUILD_ROOT
# Unwanted doc stuff
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc
# #223696
find %{buildroot} -type f -name "*.la" -print -delete
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%exclude %{_bindir}/*
%exclude %{_libdir}/lib**
%exclude %{_includedir}/*
%exclude %{_mandir}/*
%exclude %{_libdir}/pkgconfig/*
%exclude %{_libdir}/xsltConf.sh
%exclude /usr/share/aclocal/libxslt.m4
%{py_sitedir}/*
%doc python/TODO
%doc python/libxslt-python-api.xml
%doc python/tests/*.py
%doc python/tests/*.xml
%doc python/tests/*.xsl
%changelog