9ddb6a3
%global srcname urllib2_kerberos
6a4a481
6a4a481
Name:           python-%{srcname}
6a4a481
Version:        0.1.6
9ddb6a3
Release:        15%{?dist}
6a4a481
Summary:        Kerberos over HTTP Negotiate/SPNEGO support for urllib2
6a4a481
6a4a481
Group:          Development/Languages
6a4a481
License:        ASL 2.0
6a4a481
URL:            http://pypi.python.org/pypi/%{srcname}/
6a4a481
Source0:        http://pypi.python.org/packages/source/u/%{srcname}/%{srcname}-%{version}.tar.gz
9a9a373
# From https://bitbucket.org/tolsen/urllib2_kerberos/issue/1/
9a9a373
Patch0:         multiple-auth-headers.patch
9a9a373
# From https://bitbucket.org/tolsen/urllib2_kerberos/pull-request/2/
9ddb6a3
# Breaks debugging ... RHBZ #1185370
9a9a373
Patch1:         allow_client_apps_to_configure_loggers.patch
9a9a373
# From https://github.com/mcepl/urllib2_kerberos/commit/7b52c4c749
b1f79cc
# also https://bugzilla.redhat.com/show_bug.cgi?id=1065576
9a9a373
Patch2:         dont-panick-if-we-succeed.patch
9a9a373
# From https://bugzilla.redhat.com/show_bug.cgi?id=578711
9a9a373
Patch3:         port-to-python-2.4.patch
6a4a481
6a4a481
BuildArch:      noarch
5c84a9c
BuildRequires:  python-setuptools
Tomas Dabasinskas cf5373c
Requires:       python-kerberos
6a4a481
6a4a481
%description
6a4a481
urllib2 with kerberos authentication.
6a4a481
6a4a481
%prep
6a4a481
%setup -q -n %{srcname}-%{version}
9a9a373
9a9a373
%patch0 -p1
9ddb6a3
#%#patch1 -p1
9a9a373
%patch2 -p1
9a9a373
9a9a373
%if 0%{?rhel} == 5
9a9a373
%patch3 -p1
19e045b
%endif
19e045b
6a4a481
# Remove "#!/usr/bin/python\n"
9a9a373
lib=urllib2_kerberos.py
9a9a373
sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new && \
9a9a373
touch -r $lib $lib.new && mv $lib.new $lib
6a4a481
6a4a481
6a4a481
%build
6a4a481
%{__python} setup.py build
6a4a481
6a4a481
6a4a481
%install
6a4a481
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
6a4a481
6a4a481
6a4a481
%files
6a4a481
%{python_sitelib}/*
6a4a481
67290d7
# TODO this should be fix for #1065576, #578711, and #1115513
ab1e944
6a4a481
%changelog
9ddb6a3
* Fri Jan 23 2015 Matej Cepl <mcepl@redhat.com> - 0.1.6-15
9ddb6a3
- Don’t change debugging level ... RHBZ #1185370
9ddb6a3
ab1e944
* Wed Oct 08 2014 Steve Traylen <steve.traylen@cern.ch> - 0.1.6-14
ab1e944
- Remove debug from add-logging.patch. #1065576
ab1e944
b1ecab7
* Thu Jul 03 2014 Matěj Cepl <mcepl@redhat.com> - 0.1.6-13
19e045b
- Fix logging format for Python 2.6 (#1065576)
19e045b
5c84a9c
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1.6-12
5c84a9c
- Replace python-setuptools-devel BR with python-setuptools
5c84a9c
356a390
* Tue Jun 10 2014 Matěj Cepl <mcepl@redhat.com> - 0.1.6-11
9a9a373
- Add all patches I could find.
9a9a373
- Also add RHEL5 patch porting to python 2.4 (RHBZ# 578711)
9a9a373
002fa89
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-10
002fa89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
002fa89
f6f4849
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-9
f6f4849
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f6f4849
d482900
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-8
d482900
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d482900
Tomas Dabasinskas cf5373c
* Tue Nov 27 2012 Tomas Dabasinskas <tomas@redhat.com> - 0.1.6-7
Tomas Dabasinskas cf5373c
- python-kerberos is required by this package
Tomas Dabasinskas cf5373c
6a4a481
* Wed Jul 11 2012 Tomas Dabasinskas <tomas@redhat.com> - 0.1.6-6
6a4a481
- Rebuilding retired package
6a4a481
- fixed spec file to comply with fedora-review
6a4a481
6a4a481
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.1.6-5
6a4a481
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6a4a481
6a4a481
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-4
6a4a481
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6a4a481
6a4a481
* Thu Jun 18 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.6-3
6a4a481
- don't preserve attributes of the file you modified.
6a4a481
6a4a481
* Wed Jun 17 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.6-2
6a4a481
- add BuildRequires: python-setuptools-devel.
6a4a481
6a4a481
* Thu Jun 11 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.6-1
6a4a481
- Initial packaging effort