forked from pool/python-urlgrabber
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:
committed by
Git OBS Bridge
parent
96455dc495
commit
7e8077a92a
@@ -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
|
||||
|
||||
|
@@ -23,7 +23,7 @@ Name: python-urlgrabber
|
||||
# error message: AttributeError: 'module' object has no attribute 'HTTPSHandler'
|
||||
BuildRequires: python python-devel
|
||||
Version: 3.1.0
|
||||
Release: 179
|
||||
Release: 180
|
||||
Summary: A high-level cross-protocol url-grabber
|
||||
Group: Development/Libraries/Python
|
||||
License: LGPL
|
||||
@@ -33,6 +33,9 @@ Patch: %{name}-2.9.9.patch
|
||||
Patch1: %{name}-3.1.0.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%py_requires
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
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
|
||||
|
||||
%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
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root,-)
|
||||
%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
|
||||
|
Reference in New Issue
Block a user