parent
233bb25086
commit
5b614ff8e3
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{sname}
|
Name: python-%{sname}
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: A GSSAPI/SPNEGO authentication handler for urllib/urllib2
|
Summary: A GSSAPI/SPNEGO authentication handler for urllib/urllib2
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -15,17 +15,11 @@ BuildArch: noarch
|
|||||||
|
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-gssapi
|
|
||||||
BuildRequires: python2-nose
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-gssapi
|
BuildRequires: python3-gssapi
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
urllib_gssapi is a backend for urllib. It provides GSSAPI/SPNEGO\
|
urllib_gssapi is a backend for urllib. It provides GSSAPI/SPNEGO\
|
||||||
authentication to HTTP servers. urllib_gssapi replaces urllib_kerberos and\
|
authentication to HTTP servers. urllib_gssapi replaces urllib_kerberos and\
|
||||||
@ -33,52 +27,35 @@ behaves in the same ways.
|
|||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python2-%{sname}
|
|
||||||
Summary: %summary
|
|
||||||
Requires: python2-gssapi
|
|
||||||
%{?python_provide:%python_provide python2-%{sname}}
|
|
||||||
%description -n python2-%{sname} %_description
|
|
||||||
|
|
||||||
%package -n python3-%{sname}
|
%package -n python3-%{sname}
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
Requires: python3-gssapi
|
Requires: python3-gssapi
|
||||||
%{?python_provide:%python_provide python3-%{sname}}
|
%{?python_provide:%python_provide python3-%{sname}}
|
||||||
%description -n python3-%{sname} %_description
|
%description -n python3-%{sname} %_description
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -S git -n %{s_name}-%{version}
|
%autosetup -S git -n %{s_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# must be python3 first
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py nosetests
|
|
||||||
%{__python3} setup.py nosetests
|
%{__python3} setup.py nosetests
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{sname}
|
|
||||||
%doc README.md
|
|
||||||
%license COPYING
|
|
||||||
%{python2_sitelib}/%{s_name}*
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{sname}
|
%files -n python3-%{sname}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python3_sitelib}/%{s_name}*
|
%{python3_sitelib}/%{s_name}*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 04 2018 Robbie Harwood <rharwood@redhat.com> - 1.0.1-5
|
||||||
|
- Drop python2 subpackage
|
||||||
|
- Resolves: #1655258
|
||||||
|
|
||||||
* Mon Sep 24 2018 Robbie Harwood <rharwood@redhat.com> - 1.0.1-4
|
* Mon Sep 24 2018 Robbie Harwood <rharwood@redhat.com> - 1.0.1-4
|
||||||
- Drop requirement on python-requests
|
- Drop requirement on python-requests
|
||||||
- Resolves: #1631938
|
- Resolves: #1631938
|
||||||
|
Loading…
Reference in New Issue
Block a user