14
0

Accepting request 17633 from devel:languages:python

Copy from devel:languages:python/python-urlgrabber based on submit request 17633 from user matejcik

OBS-URL: https://build.opensuse.org/request/show/17633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urlgrabber?expand=0&rev=6
This commit is contained in:
OBS User autobuild
2009-08-13 00:46:44 +00:00
committed by Git OBS Bridge
parent 96455dc495
commit 7e8077a92a
2 changed files with 12 additions and 11 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 12 20:10:37 CEST 2009 - matejcik@suse.cz
- build as noarch on newer distros
- switched filelist to --record-rpm
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 10 14:06:55 CEST 2009 - coolo@novell.com Mon Aug 10 14:06:55 CEST 2009 - coolo@novell.com

View File

@@ -23,7 +23,7 @@ Name: python-urlgrabber
# error message: AttributeError: 'module' object has no attribute 'HTTPSHandler' # error message: AttributeError: 'module' object has no attribute 'HTTPSHandler'
BuildRequires: python python-devel BuildRequires: python python-devel
Version: 3.1.0 Version: 3.1.0
Release: 179 Release: 180
Summary: A high-level cross-protocol url-grabber Summary: A high-level cross-protocol url-grabber
Group: Development/Libraries/Python Group: Development/Libraries/Python
License: LGPL License: LGPL
@@ -33,6 +33,9 @@ Patch: %{name}-2.9.9.patch
Patch1: %{name}-3.1.0.patch Patch1: %{name}-3.1.0.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires %py_requires
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description %description
A high-level cross-protocol url-grabber for python supporting HTTP, FTP A high-level cross-protocol url-grabber for python supporting HTTP, FTP
@@ -56,21 +59,13 @@ export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files -f INSTALLED_FILES
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ChangeLog LICENSE README TODO %doc ChangeLog LICENSE README TODO
%{_bindir}/urlgrabber
%if %suse_version > 1110
%{python_sitelib}/urlgrabber
%{python_sitelib}/*.egg-info
%else
%{py_sitedir}/urlgrabber
%{py_sitedir}/*.egg-info
%endif
%changelog %changelog