forked from pool/python-lxml
		
	Accepting request 33723 from devel:languages:python
Copy from devel:languages:python/python-lxml based on submit request 33723 from user thomas-schraitle OBS-URL: https://build.opensuse.org/request/show/33723 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=16
This commit is contained in:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							8bac1528a7
						
					
				
				
					commit
					b960ea3107
				
			| @@ -1,5 +1,5 @@ | ||||
| # | ||||
| # spec file for package python-lxml (Version 2.2.4) | ||||
| # spec file for package python-lxml (Version 2.2.5) | ||||
| # | ||||
| # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. | ||||
| # | ||||
| @@ -21,7 +21,7 @@ | ||||
| Name:           python-lxml | ||||
| Url:            http://codespeak.net/lxml | ||||
| Summary:        A Pythonic Binding for the libxml2 and libxslt Libraries | ||||
| Version:        2.2.4 | ||||
| Version:        2.2.5 | ||||
| Release:        1 | ||||
| License:        BSD3c | ||||
| Group:          Development/Libraries/Python | ||||
| @@ -33,14 +33,16 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| Requires:       pyxml | ||||
| # Requires:    libxml2 libxslt | ||||
| BuildRequires:  libxslt-devel pyrex python-devel pyxml | ||||
| BuildRequires:  fdupes | ||||
| # Use test as told in http://lists.opensuse.org/opensuse-packaging/2009-08/msg00110.html | ||||
|  | ||||
| #%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} | ||||
| #BuildArch: noarch | ||||
| #%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} | ||||
| #%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} | ||||
| #%endif | ||||
|  | ||||
| # | ||||
|  | ||||
| %description | ||||
| lxml is a Pythonic binding for the libxml2 and libxslt libraries. It | ||||
| follows the ElementTree API as much as possible, building it on top of | ||||
| @@ -66,8 +68,7 @@ License:        BSD3c | ||||
| Documentation for %{modname} (HTML and PDF). | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| # --------------------------------- | ||||
| %prep | ||||
| %setup -q -n %{modname}-%{version} | ||||
|  | ||||
| @@ -81,16 +82,13 @@ export CFLAGS="$RPM_OPT_FLAGS" | ||||
|     --optimize 1 \ | ||||
|     --prefix=%{_prefix} \ | ||||
|     --root=$RPM_BUILD_ROOT \ | ||||
|     --record-rpm=INSTALLED_FILES.txt \ | ||||
| %if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} | ||||
|     --install-lib=%{python_sitelib} | ||||
| %endif | ||||
|     --record-rpm=INSTALLED_FILES.txt | ||||
|  | ||||
| [ -e doc/rest2html.py ] && %{__mkdir} doc/examples && %{__mv} doc/rest2html.py doc/examples/ | ||||
| # Avoid warnings from rpmlint: | ||||
|  | ||||
| for i in doc/html/pubkey.asc  ; do | ||||
|  [ -e "$i" ] && %{__rm} "$i" | ||||
| done | ||||
| %fdupes $RPM_BUILD_ROOT%{py_sitedir} $RPM_BUILD_ROOT%{python_sitelib} | ||||
|  | ||||
| %clean | ||||
| %{__rm} -rf %{buildroot} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user