From db323a6efdad0a93c4563c7e2371ad25db2dfea5 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Mon, 26 Feb 2018 17:29:07 +0000 Subject: [PATCH] New upstream release (v1.0.1) Resolves: #1546835 --- .gitignore | 1 + README.md | 3 -- python-urllib-gssapi.spec | 90 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 python-urllib-gssapi.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..27b3379 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/urllib_gssapi-1.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce67c0c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-urllib-gssapi - -The python-urllib-gssapi package \ No newline at end of file diff --git a/python-urllib-gssapi.spec b/python-urllib-gssapi.spec new file mode 100644 index 0000000..f1f2e16 --- /dev/null +++ b/python-urllib-gssapi.spec @@ -0,0 +1,90 @@ +%global sname urllib-gssapi +%global s_name urllib_gssapi + +Name: python-%{sname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: A GSSAPI/SPNEGO authentication handler for urllib/urllib2 + +License: ASL 2.0 +URL: https://github.com/pythongssapi/%{sname} +Source0: https://github.com/pythongssapi/%{sname}/releases/download/v%{version}/%{s_name}-%{version}.tar.gz +BuildArch: noarch + +# Patches + +BuildRequires: git-core + +BuildRequires: python2-devel +BuildRequires: python2-gssapi +BuildRequires: python2-nose +BuildRequires: python2-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-gssapi +BuildRequires: python3-nose +BuildRequires: python3-setuptools + + +%global _description\ +urllib_gssapi is a backend for urllib. It provides GSSAPI/SPNEGO\ +authentication to HTTP servers. urllib_gssapi replaces urllib_kerberos and\ +behaves in the same ways. + +%description %_description + +%package -n python2-%{sname} +Summary: %summary +Requires: python2-gssapi +Requires: python2-requests +%{?python_provide:%python_provide python2-%{sname}} +%description -n python2-%{sname} %_description + +%package -n python3-%{sname} +Summary: %summary +Requires: python3-gssapi +Requires: python3-requests +%{?python_provide:%python_provide python3-%{sname}} +%description -n python3-%{sname} %_description + + +%prep +%autosetup -S git -n %{s_name}-%{version} + + +%build +%py2_build +%py3_build + + +%install +# must be python3 first +%py3_install +%py2_install + + +%check +%{__python2} setup.py nosetests +%{__python3} setup.py nosetests + + +%files -n python2-%{sname} +%doc README.md +%license COPYING +%{python2_sitelib}/%{s_name}* + + +%files -n python3-%{sname} +%doc README.md +%license COPYING +%{python3_sitelib}/%{s_name}* + + +%changelog +* Fri Feb 23 2018 Robbie Harwood - 1.0.1-1 +- New upstream release (v1.0.0) +- Adds COPYING and removes shebang +- Resolves: #1546835 + +* Mon Feb 19 2018 Robbie Harwood - 1.0.0-1 +- New upstream release (v1.0.0) diff --git a/sources b/sources new file mode 100644 index 0000000..f60acdd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (urllib_gssapi-1.0.1.tar.gz) = 37018322fe12f52583bc10b6fd42084f4e664e48207a408cf8f727b6dfca0d8cc1c934ea0972e0f007cbe1bddd3ed8bd63df6a7904e58d6bb3eef7789b9a964c