Blame SPECS/python-ndg_httpsclient.spec

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