From 12602f2bbf42239f6cf97b5fb9de0ee33913f3ba Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Apr 15 2019 15:39:20 +0000 Subject: Update to 0.5.1 (#1699021) --- diff --git a/.gitignore b/.gitignore index 123965a..0cdbecf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /ndg_httpsclient-0.3.2.tar.gz /ndg_httpsclient-0.4.0.tar.gz +/ndg_httpsclient-0.5.1.tar.gz diff --git a/python-ndg_httpsclient.spec b/python-ndg_httpsclient.spec index 54b6090..5d59ba1 100644 --- a/python-ndg_httpsclient.spec +++ b/python-ndg_httpsclient.spec @@ -1,12 +1,12 @@ -%global tar_name ndg_httpsclient -Name: python-%{tar_name} -Version: 0.4.0 -Release: 14%{?dist} +%global pypi_name ndg_httpsclient +Name: python-%{pypi_name} +Version: 0.5.1 +Release: 1%{?dist} Summary: Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL License: BSD -URL: http://ndg-security.ceda.ac.uk/wiki/%{tar_name}/ -Source0: https://pypi.python.org/packages/source/n/ndg-httpsclient/%{tar_name}-%{version}.tar.gz +URL: https://github.com/cedadev/ndg_httpsclient/ +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel @@ -21,28 +21,26 @@ PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the default provided with Python and importantly enables full verification of the SSL peer. -%package -n python3-ndg_httpsclient -Requires: python3-pyOpenSSL -Requires: python3-pyasn1 +%package -n python3-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-ndg_httpsclient} +%{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-ndg_httpsclient +%description -n python3-%{pypi_name} This is a HTTPS client implementation for httplib and urllib2 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the default provided with Python and importantly enables full verification of the SSL peer. This is the python3 library. %prep -%autosetup -n %{tar_name}-%{version} +%autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info -rm -rf %{tar_name}.egg-info +rm -rf %{pypi_name}.egg-info %build -%{py3_build} +%py3_build %install -%{py3_install} +%py3_install %check pushd ndg/httpsclient/test/ @@ -59,13 +57,15 @@ killall openssl # Make sure the script uses the expected python version grep -qv python2 %{buildroot}%{_bindir}/ndg_httpclient -%files -n python3-ndg_httpsclient +%files -n python3-%{pypi_name} %{_bindir}/ndg_httpclient -%{python3_sitelib}/ndg -%{python3_sitelib}/%{tar_name}-%{version}-py?.?.egg-info -%{python3_sitelib}/%{tar_name}-%{version}-py?.?-nspkg.pth +%{python3_sitelib}/ndg/ +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/ %changelog +* Mon Apr 15 2019 Miro Hrončok - 0.5.1-1 +- Update to 0.5.1 (#1699021) + * Tue Mar 12 2019 Miro Hrončok - 0.4.0-14 - Subpackage python2-ndg_httpsclient has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal diff --git a/sources b/sources index 4eb7ee2..5bf1757 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -81972c0267d5a47d678211ac854838f5 ndg_httpsclient-0.4.0.tar.gz +SHA512 (ndg_httpsclient-0.5.1.tar.gz) = b2b4c1b1df87ea1a94811b9ae831e7bf32af27258f487fd5ec319e0e6e0d79dfdb1f7bfadaf397d0693a8a7f0720df170a7fc946aaf10c82e3957ac5464f672e