File python-urlgrabber.spec of Package python-urlgrabber

#
# spec file for package python-urlgrabber (Version 3.1.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           python-urlgrabber
# 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'
BuildRequires:  python python-devel
Version:        3.1.0
Release:        180
Summary:        A high-level cross-protocol url-grabber
Group:          Development/Libraries/Python
License:        LGPL
Url:            http://linux.duke.edu/projects/urlgrabber/
Source:         urlgrabber-%{version}.tar.bz2
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
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
%patch1

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README TODO

%changelog
openSUSE Build Service is sponsored by