Blame SPECS/python-urlgrabber.spec

babe2e
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
babe2e
babe2e
Summary: A high-level cross-protocol url-grabber
babe2e
Name: python-urlgrabber
babe2e
Version: 3.10
babe2e
Release: 9%{?dist}
babe2e
Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz
babe2e
Patch1: BZ-853432-single-conn-reset.patch
babe2e
Patch2: BZ-1017491-respond-to-ctrl-c.patch
babe2e
babe2e
# rhel-7.1.0
babe2e
Patch10: BZ-1099101-revert-curl-ctrl-c.patch
babe2e
Patch11: BZ-1082648-curl-77-error-message.patch
babe2e
babe2e
# rhel-7.2
babe2e
Patch20: BZ-1233329-timedhosts-parsing-error-handling.patch
babe2e
babe2e
# rhel-7.3
babe2e
Patch25: BZ-1342179-add-retry-no-cache-opt.patch
babe2e
babe2e
# rhel-7.6
babe2e
Patch30: BZ-1204825-add-curl-object-opt.patch
babe2e
babe2e
License: LGPLv2+
babe2e
Group: Development/Libraries
babe2e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
babe2e
BuildArch: noarch
babe2e
BuildRequires: python-devel, python-pycurl
babe2e
Url: http://urlgrabber.baseurl.org/
babe2e
Provides: urlgrabber = %{version}-%{release}
babe2e
Requires: python-pycurl
babe2e
babe2e
%description
babe2e
A high-level cross-protocol url-grabber for python supporting HTTP, FTP 
babe2e
and file locations.  Features include keepalive, byte ranges, throttling,
babe2e
authentication, proxies and more.
babe2e
babe2e
%prep
babe2e
%setup -q -n urlgrabber-%{version}
babe2e
%patch1 -p1
babe2e
%patch2 -p1
babe2e
babe2e
# rhel-7.1.0
babe2e
%patch10 -p1
babe2e
%patch11 -p1
babe2e
babe2e
# rhel-7.2
babe2e
%patch20 -p1
babe2e
babe2e
# rhel-7.3
babe2e
%patch25 -p1
babe2e
babe2e
# rhel-7.6
babe2e
%patch30 -p1
babe2e
babe2e
%build
babe2e
python setup.py build
babe2e
babe2e
%install
babe2e
rm -rf $RPM_BUILD_ROOT
babe2e
python setup.py install -O1 --root=$RPM_BUILD_ROOT
babe2e
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
babe2e
babe2e
%clean
babe2e
rm -rf $RPM_BUILD_ROOT
babe2e
babe2e
%files
babe2e
%defattr(-,root,root,-)
babe2e
%doc ChangeLog LICENSE README TODO
babe2e
%{python_sitelib}/urlgrabber*
babe2e
%{_bindir}/urlgrabber
babe2e
%attr(0755,root,root) %{_libexecdir}/urlgrabber-ext-down
babe2e
babe2e
%changelog
babe2e
* Fri May 25 2018 Michal Domonkos <mdomonko@redhat.com> - 3.10-9
babe2e
- Add curl_obj option.
babe2e
- Resolves: bug#1204825
babe2e
babe2e
* Thu Jun 30 2016 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-8
babe2e
- Add no_cache and retry_no_cache options.
babe2e
- Resolves: bug#1342179
babe2e
babe2e
* Tue Jun 30 2015 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-7
babe2e
- Don't crash on timedhosts parsing error.
babe2e
- Resolves: bug#1233329
babe2e
babe2e
* Wed Sep 24 2014 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-6
babe2e
- Add a comprehensive error message to curl error 77.
babe2e
- Resolves: bug#1082648
babe2e
babe2e
* Wed Sep 10 2014 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-5
babe2e
- Revert treating curl errcodes 55 and 56 as Ctrl-C.
babe2e
- Resolves: bug#1099101
babe2e
babe2e
* Tue Feb 4 2014 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-4
babe2e
- Treat curl errcodes 55 and 56 as Ctrl-C.
babe2e
- Resolves: bug#1017491
babe2e
babe2e
* Thu Jan 16 2014 Valentina Mukhamedzhanova <vmukhame@redhat.com> - 3.10-3
babe2e
- Tell curl to return immediately on ctrl-c.
babe2e
- Resolves: bug#1017491
babe2e
babe2e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.10-2
babe2e
- Mass rebuild 2013-12-27
babe2e
babe2e
* Mon Oct 21 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.10-1
babe2e
- single-conn mode: Kill the cached idle connection. BZ 853432
babe2e
babe2e
* Thu Oct 17 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.10-0
babe2e
- clamp timestamps from the future.  BZ 894630, 1013733
babe2e
- Fix the condition to enter single-connection mode. BZ 853432
babe2e
- Fix unit tests
babe2e
babe2e
* Tue Oct  8 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-33
babe2e
- Fix the condition to enter single-connection mode (again)
babe2e
babe2e
* Thu Oct  3 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-32
babe2e
- Update to latest HEAD.
babe2e
- Fix traceback when entering single-connection mode with DEBUG off
babe2e
- Fix traceback when limit==None and DEBUG is on
babe2e
- Fix the condition to enter single-connection mode
babe2e
babe2e
* Thu Oct  3 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-31
babe2e
- Update to latest HEAD.
babe2e
- Switch to max_connections=1 after refused connect. BZ 853432
babe2e
- Never display negative downloading speed. BZ 1001767
babe2e
- clamp timestamps from the future.  BZ 894630, 1013733
babe2e
babe2e
* Thu Aug 29 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-30
babe2e
- Update to latest HEAD.
babe2e
- add ftp_disable_epsv option. BZ 849177
babe2e
- Spelling fixes.
babe2e
- docs: throttling is per-connection, suggest max_connections=1. BZ 998263
babe2e
- More robust "Content-Length" parsing. BZ 1000841
babe2e
babe2e
* Tue Jun 18 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-29
babe2e
- Update to latest HEAD.
babe2e
- Fix parsing of FTP 213 responses
babe2e
- Switch to max_connections=1 after timing out.  BZ 853432
babe2e
- max_connections=0 should imply the default limit.
babe2e
babe2e
* Fri May 17 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-28
babe2e
- Update to latest HEAD.
babe2e
- Add the "minrate" option. BZ 964298
babe2e
- Workaround progress "!!!" end for file:// repos.
babe2e
- add URLGrabError.code to the external downloader API
babe2e
- Disable GSSNEGOTIATE to work around a curl bug.  BZ 960163
babe2e
babe2e
* Wed Mar 27 2013 Zdenek Pavlas <zpavlas@redhat.com> - 3.9.1-26
babe2e
- Update to latest HEAD.
babe2e
- Handle HTTP 200 response to range requests correctly.  BZ 919076
babe2e
- Reset curl_obj to clear CURLOPT_RANGE from previous requests.  BZ 923951
babe2e
babe2e
* Thu Mar  7 2013 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-25
babe2e
- Update to latest HEAD.
babe2e
- fix some test cases that were failing.  BZ 918658
babe2e
- exit(1) or /bin/urlgrabber failures.  BZ 918613
babe2e
- clamp timestamps from the future.  BZ 894630
babe2e
- enable GSSNEGOTIATE if implemented correctly.
babe2e
- make error messages more verbose.
babe2e
babe2e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.1-24
babe2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
babe2e
babe2e
* Mon Jan  7 2013 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-23
babe2e
- Update to latest HEAD.
babe2e
- Handle checkfunc unicode exceptions. BZ 672117
babe2e
babe2e
* Thu Dec  6 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-22
babe2e
- Update to latest HEAD.
babe2e
- Improve URLGRABBER_DEBUG, add max_connections.  BZ 853432
babe2e
babe2e
* Thu Nov  1 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-21
babe2e
- Update to latest HEAD.
babe2e
- Get rid of "HTTP 200 OK" errors.  BZ 871835.
babe2e
babe2e
* Tue Sep  4 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-20
babe2e
- Update to latest HEAD.
babe2e
- Fixed BZ 851178, 854075.
babe2e
babe2e
* Mon Aug 27 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-19
babe2e
- timedhosts: defer 1st update until a 1MB+ download.  BZ 851178
babe2e
babe2e
* Wed Aug 22 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-18
babe2e
- Update to latest HEAD, lots of enhancements.
babe2e
babe2e
* Wed Aug 10 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-17
babe2e
- Fix a bug in progress display code. BZ 847105.
babe2e
babe2e
* Wed Aug  8 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-16
babe2e
- Update to latest head.
babe2e
- Improved multi-file progress, small bugfixes.
babe2e
babe2e
* Fri Jul 20 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-15
babe2e
- Update to latest head, misc bugfixes: BZ 832028, 831904, 831291.
babe2e
- Disable Kerberos auth.  BZ 769254
babe2e
- copy_local bugfix. BZ 837018
babe2e
- send 'tries' counter to mirror failure callback
babe2e
babe2e
* Mon May 21 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-14
babe2e
- timedhosts: sanity check on dl_time
babe2e
babe2e
* Fri May 18 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-13
babe2e
- fix file:// profiling.  BZ 822632.
babe2e
babe2e
* Mon May 14 2012 Zdeněk Pavlas <zpavlas@redhat.com> - 3.9.1-12
babe2e
- Update to latest HEAD
babe2e
- Merge multi-downloader patches
babe2e
babe2e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.1-11
babe2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
babe2e
babe2e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.1-10
babe2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
babe2e
babe2e
* Fri Sep  3 2010 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-9
babe2e
- new update to latest head with a number of patches collected from 
babe2e
  older bug reports.
babe2e
babe2e
* Mon Aug 30 2010 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-8
babe2e
- update to latest head patches
babe2e
babe2e
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.9.1-7
babe2e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
babe2e
babe2e
* Tue Apr 13 2010 James Antill <james@fedoraproject.org> 3.9.1-6
babe2e
- Update to upstream HEAD.
babe2e
- LOWSPEEDLIMIT and hdrs
babe2e
babe2e
* Fri Feb 19 2010 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-5
babe2e
- add patch to allow reset_curl_obj() to close and reload the cached curl obj
babe2e
babe2e
* Thu Nov 12 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-4
babe2e
- reset header values when we redirect and make sure debug output will work
babe2e
babe2e
* Wed Nov 11 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-3
babe2e
- fixing a bunch of redirect and max size bugs
babe2e
babe2e
* Fri Sep 25 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-2
babe2e
- stupid patch
babe2e
babe2e
* Fri Sep 25 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.1-1
babe2e
- 3.9.1
babe2e
babe2e
* Tue Aug 18 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.0-8
babe2e
- ssl options, http POST string type fixes
babe2e
babe2e
* Mon Aug 10 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.0-6
babe2e
- reget fixes, tmpfiles no longer made for urlopen() calls.
babe2e
babe2e
* Wed Aug  5 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.0-5
babe2e
- apply complete patch to head fixes: timeouts, regets, improves exception raising
babe2e
babe2e
* Tue Aug  4 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.0-4
babe2e
- timeout patch for https://bugzilla.redhat.com/show_bug.cgi?id=515497
babe2e
babe2e
babe2e
* Thu Jul 30 2009 Seth Vidal <skvidal at fedoraproject.org> - 3.9.0-1
babe2e
- new version - curl-based
babe2e
babe2e
* Wed Apr  8 2009 James Antill <james@fedoraproject.org> 3.0.0-15
babe2e
- Fix progress bars for serial consoles.
babe2e
- Make C-c behaviour a little nicer.
babe2e
babe2e
* Fri Mar 13 2009 Seth Vidal <skvidal at fedoraproject.org>
babe2e
- kill deprecation warning from importing md5 if anyone uses keepalive
babe2e
babe2e
* Mon Mar  9 2009 Seth Vidal <skvidal at fedoraproject.org>
babe2e
- apply patch for urlgrabber to properly check file:// urls with the checkfunc
babe2e
babe2e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-12
babe2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
babe2e
babe2e
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 3.0.0-11
babe2e
- Rebuild for Python 2.6
babe2e
babe2e
* Wed Oct 14 2008 James Antill <james@fedoraproject.org> 3.0.0-10
babe2e
- Have the progress bar have a small bar, for a virtual size doubling.
babe2e
babe2e
* Thu Jul 10 2008 James Antill <james@fedoraproject.org> 3.0.0-9
babe2e
- Make urlgrabber usable if openssl is broken
babe2e
- Relates: bug#454179
babe2e
babe2e
* Sun Jun 15 2008 James Antill <james@fedoraproject.org> 3.0.0-9
babe2e
- Don't count partial downloads toward the total
babe2e
babe2e
* Sat May 18 2008 James Antill <james@fedoraproject.org> 3.0.0-8
babe2e
- Tweak progress output so it's hopefully less confusing
babe2e
- Add dynamic resizing ability to progress bar
babe2e
- Resolves: bug#437197
babe2e
babe2e
* Fri May  2 2008 James Antill <james@fedoraproject.org> 3.0.0-7
babe2e
- Fix reget's against servers that don't allow Range requests, also tweaks
babe2e
- reget == check_timestamp, if anyone/thing uses that.
babe2e
- Resolves: bug#435156
babe2e
- Fix minor typo in progress for single instance.
babe2e
babe2e
* Mon Apr  7 2008 James Antill <james@fedoraproject.org> 3.0.0-6
babe2e
- Fix the ftp byterange port problem:
babe2e
- Resolves: bug#419241
babe2e
- Fixup the progress UI:
babe2e
-   add function for total progress
babe2e
-   add total progress percentagee current download line
babe2e
-   add rate to current download line
babe2e
-   use dead space when finished downloading
babe2e
-   don't confuse download rate on regets.
babe2e
babe2e
* Sat Mar 15 2008 Robert Scheck <robert@fedoraproject.org> 3.0.0-5
babe2e
- Make sure, that *.egg-info is catched up during build
babe2e
babe2e
* Mon Dec  3 2007 Jeremy Katz <katzj@redhat.com> - 3.0.0-4
babe2e
- Ensure fds are closed on exceptions (markmc, #404211)
babe2e
babe2e
* Wed Oct 10 2007 Jeremy Katz <katzj@redhat.com> - 3.0.0-3
babe2e
- fix type checking of strings to also include unicode strings; fixes 
babe2e
  regets from yum (#235618)
babe2e
babe2e
* Mon Aug 27 2007 Jeremy Katz <katzj@redhat.com> - 3.0.0-2
babe2e
- fixes for package review (#226347)
babe2e
babe2e
* Thu May 31 2007 Jeremy Katz <katzj@redhat.com> - 3.0.0-1
babe2e
- update to 3.0.0
babe2e
babe2e
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 2.9.9-5
babe2e
- rebuild for python 2.5
babe2e
babe2e
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 2.9.9-4
babe2e
- fix keepalive (#218268) 
babe2e
babe2e
* Sat Nov 11 2006 Florian La Roche <laroche@redhat.com>
babe2e
- add version/release to "Provides: urlgrabber"
babe2e
babe2e
* Mon Jul 17 2006 James Bowes <jbowes@redhat.com> - 2.9.9-2
babe2e
- Add support for byte ranges and keepalive over HTTPS
babe2e
babe2e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.9.9-1.1
babe2e
- rebuild
babe2e
babe2e
* Tue May 16 2006 Jeremy Katz <katzj@redhat.com> - 2.9.9-1
babe2e
- update to 2.9.9
babe2e
babe2e
* Tue Mar 14 2006 Jeremy Katz <katzj@redhat.com> - 2.9.8-2
babe2e
- catch read errors so they trigger the failure callback.  helps catch bad cds
babe2e
babe2e
* Wed Feb 22 2006 Jeremy Katz <katzj@redhat.com> - 2.9.8-1
babe2e
- update to new version fixing progress bars in yum on regets
babe2e
babe2e
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
babe2e
- rebuilt
babe2e
babe2e
* Wed Sep 21 2005 Jeremy Katz <katzj@redhat.com> - 2.9.6-4
babe2e
- don't use --record and list files by hand so that we don't miss 
babe2e
  directories (#158480)
babe2e
babe2e
* Wed Sep 14 2005 Jeremy Katz <katzj@redhat.com> - 2.9.6-3
babe2e
- add directory to file list (#168261)
babe2e
babe2e
* Fri Jun 03 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.6-2
babe2e
- Fixed the reget method to actually work correctly (skip completely transfered
babe2e
  files, etc)
babe2e
babe2e
* Tue Mar  8 2005 Jeremy Katz <katzj@redhat.com> - 2.9.6-1
babe2e
- update to 2.9.6
babe2e
babe2e
* Mon Mar  7 2005 Jeremy Katz <katzj@redhat.com> - 2.9.5-1
babe2e
- import into dist
babe2e
- make the description less of a book
babe2e
babe2e
* Mon Mar  7 2005 Seth Vidal <skvidal@phy.duke.edu> 2.9.5-0
babe2e
- 2.9.5
babe2e
babe2e
* Thu Feb 24 2005 Seth Vidal <skvidal@phy.duke.edu> 2.9.3-0
babe2e
- first package for fc3
babe2e
- named python-urlgrabber for naming guideline compliance
babe2e