Blame SPECS/python-ndg_httpsclient.spec

040b9c
%global pypi_name ndg_httpsclient
040b9c
Name:           python-%{pypi_name}
040b9c
Version:        0.5.1
040b9c
Release:        9%{?dist}
040b9c
Summary:        Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
040b9c
040b9c
License:        BSD
040b9c
URL:            https://github.com/cedadev/ndg_httpsclient/
040b9c
Source0:        %{pypi_source}
040b9c
BuildArch:      noarch
040b9c
 
040b9c
BuildRequires:  python3-pyasn1 >= 0.1.1
040b9c
BuildRequires:  python3-devel
040b9c
BuildRequires:  python3-pyOpenSSL
040b9c
BuildRequires:  python3-setuptools
040b9c
BuildRequires:  openssl
040b9c
BuildRequires:  /usr/bin/killall
040b9c
040b9c
040b9c
%description
040b9c
This is a HTTPS client implementation for httplib and urllib2 based on
040b9c
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
040b9c
over the default provided with Python and importantly enables full
040b9c
verification of the SSL peer.
040b9c
040b9c
%package -n python3-%{pypi_name}
040b9c
Summary:        %{summary}
040b9c
%{?python_provide:%python_provide python3-%{pypi_name}}
040b9c
040b9c
%description -n python3-%{pypi_name}
040b9c
This is a HTTPS client implementation for httplib and urllib2 based on
040b9c
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
040b9c
over the default provided with Python and importantly enables full
040b9c
verification of the SSL peer. This is the python3 library.
040b9c
040b9c
%prep
040b9c
%autosetup -n %{pypi_name}-%{version}
040b9c
# Remove bundled egg-info
040b9c
rm -rf %{pypi_name}.egg-info
040b9c
040b9c
%build
040b9c
%py3_build
040b9c
040b9c
%install
040b9c
%py3_install
040b9c
040b9c
%check
040b9c
pushd ndg/httpsclient/test/
040b9c
./scripts/openssl_https_server.sh &
040b9c
sleep 1
040b9c
# the test suite is not working and we don't know why
040b9c
# upstream bugtracker is not functional
040b9c
#for FILE in test_*.py; do
040b9c
for FILE in test_utils.py; do
040b9c
  PYTHONPATH=../../.. %{__python3} ./$FILE
040b9c
done
040b9c
killall openssl
040b9c
040b9c
# Make sure the script uses the expected python version
040b9c
grep -qv python2 %{buildroot}%{_bindir}/ndg_httpclient
040b9c
040b9c
%files -n python3-%{pypi_name}
040b9c
%{_bindir}/ndg_httpclient
040b9c
%{python3_sitelib}/ndg/
040b9c
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
040b9c
040b9c
%changelog
040b9c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-9
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
040b9c
040b9c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-8
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
040b9c
040b9c
* Thu Jun 25 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.5.1-7
040b9c
- add python3-setuptools to BuildRequires
040b9c
040b9c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-6
040b9c
- Rebuilt for Python 3.9
040b9c
040b9c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-5
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
040b9c
040b9c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-4
040b9c
- Rebuilt for Python 3.8.0rc1 (#1748018)
040b9c
040b9c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-3
040b9c
- Rebuilt for Python 3.8
040b9c
040b9c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-2
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
040b9c
040b9c
* Mon Apr 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-1
040b9c
- Update to 0.5.1 (#1699021)
040b9c
040b9c
* Tue Mar 12 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-14
040b9c
- Subpackage python2-ndg_httpsclient has been removed
040b9c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
040b9c
040b9c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-13
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
040b9c
040b9c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-12
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
040b9c
040b9c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-11
040b9c
- Rebuilt for Python 3.7
040b9c
040b9c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-10
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
040b9c
040b9c
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.0-9
040b9c
- Update Python 2 dependency declarations to new packaging standards
040b9c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
040b9c
040b9c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-8
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
040b9c
040b9c
* Thu Mar 02 2017 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-7
040b9c
- Use Python 3 in the executable
040b9c
040b9c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
040b9c
040b9c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-5
040b9c
- Rebuild for Python 3.6
040b9c
040b9c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
040b9c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
040b9c
040b9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
040b9c
040b9c
* Sat Nov 28 2015 James Hogarth <james.hogarth@gmail.com> - 0.4.0-2
040b9c
- Add python3 subpackage (#1286321)
040b9c
- Update to latest python packaging guidelines
040b9c
040b9c
* Wed Jul 08 2015 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-1
040b9c
- Update to 0.4.0
040b9c
040b9c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
040b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
040b9c
040b9c
* Tue Oct 14 2014 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-1
040b9c
- Initial package.