14
0
Files
python-urlgrabber/python-urlgrabber.spec

77 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# 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: 179
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
%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
%clean
rm -rf $RPM_BUILD_ROOT
%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