| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2011-03-08 09:39:28 +00:00
										 |  |  | # spec file for package python-lxml
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2008-09-26 14:55:39 +00: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.
 | 
					
						
							| 
									
										
										
										
											2011-12-12 09:03:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | # Please submit bugfixes or comments via http://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-12 09:03:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | Name:           python-lxml
 | 
					
						
							| 
									
										
										
										
											2012-06-05 06:41:58 +00:00
										 |  |  | Version:        2.3.4
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | Summary:        Powerful and Pythonic XML processing library
 | 
					
						
							| 
									
										
										
										
											2011-09-03 19:00:29 +00:00
										 |  |  | License:        BSD-3-Clause and GPL-2.0+
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | Url:            http://lxml.de/
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | Source:         http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | Source1:        http://lxml.de/lxmldoc-%{version}.pdf
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | BuildRequires:  libxslt-devel
 | 
					
						
							|  |  |  | BuildRequires:  python-Cython
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | BuildRequires:  python-devel
 | 
					
						
							|  |  |  | BuildRequires:  pkgconfig(libxml-2.0)
 | 
					
						
							|  |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							|  |  |  | %if 0%{?suse_version} && 0%{?suse_version} <= 1110
 | 
					
						
							|  |  |  | %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2010-03-02 00:44:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
 | 
					
						
							|  |  |  | provides safe and convenient access to these libraries using the ElementTree
 | 
					
						
							|  |  |  | API. It extends the ElementTree API significantly to offer support for XPath,
 | 
					
						
							|  |  |  | RelaxNG, XML Schema, XSLT, C14N and much more.
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-03 00:15:51 +00:00
										 |  |  | %package doc
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | Summary:        Powerful and Pythonic XML processing library - Documentation
 | 
					
						
							| 
									
										
										
										
											2010-09-14 11:17:03 +00:00
										 |  |  | Group:          Development/Libraries/Python
 | 
					
						
							| 
									
										
										
										
											2008-04-03 00:15:51 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description doc
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
 | 
					
						
							|  |  |  | provides safe and convenient access to these libraries using the ElementTree
 | 
					
						
							|  |  |  | API. It extends the ElementTree API significantly to offer support for XPath,
 | 
					
						
							|  |  |  | RelaxNG, XML Schema, XSLT, C14N and much more.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This package contains documentation for lxml (HTML and PDF).
 | 
					
						
							| 
									
										
										
										
											2008-04-03 00:15:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | %setup -q -n lxml-%{version}
 | 
					
						
							| 
									
										
										
										
											2011-09-02 12:10:18 +00:00
										 |  |  | cp %{SOURCE1} .
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | CFLAGS="%{optflags}" python setup.py build
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:34:06 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 | 
					
						
							| 
									
										
										
										
											2008-04-03 00:15:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | %files
 | 
					
						
							|  |  |  | %defattr(-,root,root)
 | 
					
						
							|  |  |  | %doc CHANGES.txt CREDITS.txt LICENSES.txt README.rst
 | 
					
						
							| 
									
										
										
										
											2012-05-25 07:07:29 +00:00
										 |  |  | %{python_sitearch}/lxml/
 | 
					
						
							|  |  |  | %{python_sitearch}/lxml-%{version}-py%{py_ver}.egg-info
 | 
					
						
							| 
									
										
										
										
											2012-06-05 06:41:58 +00:00
										 |  |  | %exclude %{python_sitearch}/lxml/etree_defs.h
 | 
					
						
							| 
									
										
										
										
											2012-03-09 21:29:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-03 00:15:51 +00:00
										 |  |  | %files doc
 | 
					
						
							|  |  |  | %defattr(-,root,root)
 | 
					
						
							| 
									
										
										
										
											2011-09-02 12:10:18 +00:00
										 |  |  | %doc doc/html lxmldoc-%{version}.pdf
 | 
					
						
							| 
									
										
										
										
											2011-09-02 11:25:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-30 18:58:23 +00:00
										 |  |  | %changelog
 |