forked from pool/python-lxml
		
	Accepting request 48071 from devel:languages:python
Copy from devel:languages:python/python-lxml based on submit request 48071 from user coolo OBS-URL: https://build.opensuse.org/request/show/48071 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=21
This commit is contained in:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							35a83b3f47
						
					
				
				
					commit
					4059a9ff4f
				
			| @@ -1,5 +1,5 @@ | ||||
| # | ||||
| # spec file for package python-lxml (Version 2.2.6) | ||||
| # spec file for package python-lxml (Version 2.2.8) | ||||
| # | ||||
| # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. | ||||
| # | ||||
| @@ -19,20 +19,23 @@ | ||||
| %define modname lxml | ||||
|  | ||||
| Name:           python-lxml | ||||
| Url:            http://codespeak.net/lxml | ||||
| Summary:        A Pythonic Binding for the libxml2 and libxslt Libraries | ||||
| Version:        2.2.6 | ||||
| Version:        2.2.8 | ||||
| Release:        1 | ||||
| License:        BSD3c | ||||
| Summary:        A Pythonic Binding for the libxml2 and libxslt Libraries | ||||
| Url:            http://codespeak.net/lxml | ||||
| Group:          Development/Libraries/Python | ||||
| Source:         %{modname}-%{version}.tar.bz2 | ||||
| Source1:        %{modname}doc-%{version}.pdf | ||||
| Source2:        %{name}-rpmlintrc | ||||
| # Requires:    libxml2 libxslt | ||||
| BuildRequires:  libxslt-devel | ||||
| BuildRequires:  pyrex | ||||
| BuildRequires:  python-devel | ||||
| BuildRequires:  pyxml | ||||
| Requires:       pyxml | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| %{py_requires} | ||||
| Requires:       pyxml | ||||
| # Requires:    libxml2 libxslt | ||||
| BuildRequires:  libxslt-devel pyrex python-devel pyxml | ||||
| # Use test as told in http://lists.opensuse.org/opensuse-packaging/2009-08/msg00110.html | ||||
|  | ||||
| #%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} | ||||
| @@ -50,30 +53,26 @@ the native libxml2 tree. It also extends this API to expose libxml2 and | ||||
| libxslt specific functionality, such as XPath, Relax NG, XML Schema, | ||||
| XSLT, and c14n. | ||||
|  | ||||
|  | ||||
|  | ||||
| Authors: | ||||
| -------- | ||||
| Author: | ||||
| ------- | ||||
|     Stefan Behnel - main developer and maintainer | ||||
|     Martijn Faassen - creator of lxml and initial main developer | ||||
|     and others | ||||
|  | ||||
|  | ||||
| %package doc | ||||
| Group:          Development/Libraries/Python | ||||
| Summary:        Documentation for %{name} | ||||
| License:        BSD3c | ||||
| Summary:        Documentation for %{name} | ||||
| Group:          Development/Libraries/Python | ||||
|  | ||||
| %description doc | ||||
| Documentation for %{modname} (HTML and PDF). | ||||
|  | ||||
|  | ||||
| # --------------------------------- | ||||
| %prep | ||||
| %setup -q -n %{modname}-%{version} | ||||
|  | ||||
| %build | ||||
| export CFLAGS="$RPM_OPT_FLAGS" | ||||
| export CFLAGS="%{optflags}" | ||||
| %{__python} setup.py build | ||||
| %{__cp} %{S:1} . | ||||
|  | ||||
| @@ -81,7 +80,7 @@ export CFLAGS="$RPM_OPT_FLAGS" | ||||
| %{__python} setup.py install \ | ||||
|     --optimize 1 \ | ||||
|     --prefix=%{_prefix} \ | ||||
|     --root=$RPM_BUILD_ROOT \ | ||||
|     --root=%{buildroot} \ | ||||
|     --record-rpm=INSTALLED_FILES.txt | ||||
|  | ||||
| [ -e doc/rest2html.py ] && %{__mkdir} doc/examples && %{__mv} doc/rest2html.py doc/examples/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user