2007-01-15 23:34:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-urlgrabber (Version 3.1.0)
|
|
|
|
#
|
2009-08-10 21:04:13 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:34:25 +00:00
|
|
|
#
|
2008-09-26 13:10:02 +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.
|
|
|
|
|
2007-01-15 23:34:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-21 00:59:28 +00:00
|
|
|
|
2007-01-15 23:34:25 +00:00
|
|
|
Name: python-urlgrabber
|
2009-08-10 21:04:13 +00:00
|
|
|
# python must be in the BuildRequires as well, otherwise urllib2 with SSL support isn't installed
|
|
|
|
# error message: AttributeError: 'module' object has no attribute 'HTTPSHandler'
|
2008-09-26 13:10:02 +00:00
|
|
|
BuildRequires: python python-devel
|
2007-01-15 23:34:25 +00:00
|
|
|
Version: 3.1.0
|
2009-08-13 00:46:44 +00:00
|
|
|
Release: 180
|
2007-01-15 23:34:25 +00:00
|
|
|
Summary: A high-level cross-protocol url-grabber
|
|
|
|
Group: Development/Libraries/Python
|
2009-08-10 21:04:13 +00:00
|
|
|
License: LGPL
|
2008-02-21 00:59:28 +00:00
|
|
|
Url: http://linux.duke.edu/projects/urlgrabber/
|
2007-01-15 23:34:25 +00:00
|
|
|
Source: urlgrabber-%{version}.tar.bz2
|
|
|
|
Patch: %{name}-2.9.9.patch
|
2008-02-21 00:59:28 +00:00
|
|
|
Patch1: %{name}-3.1.0.patch
|
2007-01-15 23:34:25 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%py_requires
|
2009-08-13 00:46:44 +00:00
|
|
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A high-level cross-protocol url-grabber for python supporting HTTP, FTP
|
|
|
|
and file locations. Features include keepalive, byte ranges,
|
|
|
|
throttling, authentication, proxies and more.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael D. Stenner <mstenner@linux.duke.edu>
|
|
|
|
Ryan Tomayko <rtomayko@naeblis.cx>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n urlgrabber-%{version}
|
|
|
|
%patch
|
2008-02-21 00:59:28 +00:00
|
|
|
%patch1
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2009-08-13 00:46:44 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-08-13 00:46:44 +00:00
|
|
|
%files -f INSTALLED_FILES
|
2007-01-15 23:34:25 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ChangeLog LICENSE README TODO
|
|
|
|
|
2008-02-21 00:59:28 +00:00
|
|
|
%changelog
|