a1f7f2
%if 0%{?fedora}
a1f7f2
%bcond_without python2
a1f7f2
%else
a1f7f2
# Disable python2 build by default
a1f7f2
%bcond_with python2
a1f7f2
%endif
a1f7f2
a1f7f2
Summary: Python wrapper module around the OpenSSL library
a1f7f2
Name: pyOpenSSL
a1f7f2
Version: 18.0.0
a1f7f2
Release: 1%{?dist}
a1f7f2
Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
a1f7f2
a1f7f2
BuildArch: noarch
a1f7f2
License: ASL 2.0
a1f7f2
Group: Development/Libraries
a1f7f2
URL: https://pyopenssl.readthedocs.org/
a1f7f2
a1f7f2
BuildRequires: python3-setuptools
a1f7f2
BuildRequires: python3-sphinx
a1f7f2
BuildRequires: python3-sphinx_rtd_theme
a1f7f2
a1f7f2
%if %{with python2}
a1f7f2
BuildRequires: python2-devel
a1f7f2
BuildRequires: python2-cryptography >= 2.2.1
a1f7f2
%endif
a1f7f2
BuildRequires: python3-devel
a1f7f2
BuildRequires: python3-cryptography >= 2.2.1
a1f7f2
a1f7f2
%description
a1f7f2
High-level wrapper around a subset of the OpenSSL library, includes among others
a1f7f2
 * SSL.Connection objects, wrapping the methods of Python's portable
a1f7f2
   sockets
a1f7f2
 * Callbacks written in Python
a1f7f2
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
a1f7f2
a1f7f2
%if %{with python2}
a1f7f2
%package -n python2-pyOpenSSL
a1f7f2
Summary: Python 2 wrapper module around the OpenSSL library
a1f7f2
Requires: python2-cryptography >= 2.2.1
a1f7f2
Obsoletes: pyOpenSSL < %{version}-%{release}
a1f7f2
Provides: pyOpenSSL = %{version}-%{release}
a1f7f2
%{?python_provide:%python_provide python2-pyOpenSSL}
a1f7f2
a1f7f2
%description -n python2-pyOpenSSL
a1f7f2
High-level wrapper around a subset of the OpenSSL library, includes among others
a1f7f2
 * SSL.Connection objects, wrapping the methods of Python's portable
a1f7f2
   sockets
a1f7f2
 * Callbacks written in Python
a1f7f2
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
a1f7f2
%endif
a1f7f2
a1f7f2
%package -n python3-pyOpenSSL
a1f7f2
Summary: Python 3 wrapper module around the OpenSSL library
a1f7f2
Requires: python3-cryptography >= 2.2.1
a1f7f2
%{?python_provide:%python_provide python3-pyOpenSSL}
a1f7f2
a1f7f2
%description -n python3-pyOpenSSL
a1f7f2
High-level wrapper around a subset of the OpenSSL library, includes among others
a1f7f2
 * SSL.Connection objects, wrapping the methods of Python's portable
a1f7f2
   sockets
a1f7f2
 * Callbacks written in Python
a1f7f2
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
a1f7f2
a1f7f2
%package doc
a1f7f2
Summary: Documentation for pyOpenSSL
a1f7f2
BuildArch: noarch
a1f7f2
a1f7f2
%description doc
a1f7f2
Documentation for pyOpenSSL
a1f7f2
a1f7f2
%prep
a1f7f2
%autosetup -p1 -n pyOpenSSL-%{version}
a1f7f2
a1f7f2
%build
a1f7f2
%py3_build
a1f7f2
a1f7f2
%if %{with python2}
a1f7f2
%py2_build
a1f7f2
%endif
a1f7f2
a1f7f2
%{__make} -C doc html SPHINXBUILD=sphinx-build-3
a1f7f2
a1f7f2
%install
a1f7f2
%py3_install
a1f7f2
a1f7f2
%if %{with python2}
a1f7f2
%py2_install
a1f7f2
%endif
a1f7f2
a1f7f2
# Cleanup sphinx .buildinfo file before packaging
a1f7f2
rm doc/_build/html/.buildinfo
a1f7f2
a1f7f2
%if %{with python2}
a1f7f2
%files -n python2-pyOpenSSL
a1f7f2
%license LICENSE
a1f7f2
%{python_sitelib}/OpenSSL/
a1f7f2
%{python_sitelib}/pyOpenSSL-*.egg-info
a1f7f2
%endif
a1f7f2
a1f7f2
%files -n python3-pyOpenSSL
a1f7f2
%license LICENSE
a1f7f2
%{python3_sitelib}/OpenSSL/
a1f7f2
%{python3_sitelib}/pyOpenSSL-*.egg-info
a1f7f2
a1f7f2
%files doc
a1f7f2
%license LICENSE
a1f7f2
%doc CHANGELOG.rst examples doc/_build/html
a1f7f2
a1f7f2
%changelog
a1f7f2
* Mon Jun 11 2018 Tomáš Mráz <tmraz@redhat.com> - 18.0.0-1
a1f7f2
- New upstream release 18.0.0
a1f7f2
a1f7f2
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.3.0-4
a1f7f2
- Update Python 2 dependency declarations to new packaging standards
a1f7f2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a1f7f2
a1f7f2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.3.0-3
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a1f7f2
a1f7f2
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 17.3.0-2
a1f7f2
- Cleanup spec file conditionals
a1f7f2
a1f7f2
* Mon Sep 18 2017 Jeremy Cline <jeremy@jcline.org> - 17.3.0-1
a1f7f2
- New upstream release 17.2.0
a1f7f2
- Drop memory leak patch as it's in the 17.3.0 upstream release
a1f7f2
a1f7f2
* Fri Sep 08 2017 Jeremy Cline <jeremy@jcline.org> - 17.2.0-1
a1f7f2
- New upstream release 17.2.0
a1f7f2
- Backport a memory leak fix with CRLs (upstream PR #690).
a1f7f2
a1f7f2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 17.1.0-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a1f7f2
a1f7f2
* Mon Jul 17 2017 Tomáš Mráz <tmraz@redhat.com> - 17.1.0-1
a1f7f2
- New upstream release 17.1.0.
a1f7f2
a1f7f2
* Fri Apr 28 2017 Tomáš Mráz <tmraz@redhat.com> - 16.2.0-4
a1f7f2
- Fix the obsolete version (needs to be in sync with Fedora 25) (#1446529)
a1f7f2
a1f7f2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.2.0-3
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a1f7f2
a1f7f2
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 16.2.0-2
a1f7f2
- Rebuild for Python 3.6
a1f7f2
a1f7f2
* Tue Nov  8 2016 Tomáš Mráz <tmraz@redhat.com> - 16.2.0-1
a1f7f2
- Upgrade to 16.2.0 to fix compatibility with OpenSSL-1.1.0
a1f7f2
a1f7f2
* Fri Sep  9 2016 Orion Poplawski <orion@cora.nwra.com> - 16.0.0-3
a1f7f2
- Modernize spec
a1f7f2
- Ship python2-pyOpenSSL
a1f7f2
- Package LICENSE
a1f7f2
a1f7f2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 16.0.0-2
a1f7f2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
a1f7f2
a1f7f2
* Tue May 10 2016 Tomáš Mráz <tmraz@redhat.com> - 16.0.0-1
a1f7f2
- Upgrade to 16.0.0
a1f7f2
a1f7f2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-3
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a1f7f2
a1f7f2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a1f7f2
a1f7f2
* Fri Aug  7 2015 Tomáš Mráz <tmraz@redhat.com> - 0.15.1-1
a1f7f2
- Upgrade to 0.15.1
a1f7f2
a1f7f2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a1f7f2
a1f7f2
* Thu May 14 2015 Tomáš Mráz <tmraz@redhat.com> - 0.14-4
a1f7f2
- allow changing the digest used when exporting CRL and use SHA1 by default
a1f7f2
a1f7f2
* Fri Jan 30 2015 Miro Hrončok <mhroncok@redhat.com> - 0.14-3
a1f7f2
- Fix bogus requires (python3-cryptography should belong to python3-pyOpenSSL)
a1f7f2
a1f7f2
* Wed Jan  7 2015 Tomáš Mráz <tmraz@redhat.com> - 0.14-2
a1f7f2
- Add missing python-cryptography requires
a1f7f2
a1f7f2
* Wed Jan  7 2015 Tomáš Mráz <tmraz@redhat.com> - 0.14-1
a1f7f2
- Upgrade to 0.14 with help of Matěj Cepl and Kevin Fenzi
a1f7f2
a1f7f2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-4
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a1f7f2
a1f7f2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-3
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a1f7f2
a1f7f2
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.13.1-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
a1f7f2
a1f7f2
* Thu Sep  5 2013 Tomáš Mráz <tmraz@redhat.com> - 0.13.1-1
a1f7f2
- new upstream release fixing a security issue with string
a1f7f2
  formatting subjectAltName of a certificate
a1f7f2
a1f7f2
* Tue Aug 06 2013 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.13-8
a1f7f2
- Python 3 subpackage
a1f7f2
- Split documentation off into noarch subpackage
a1f7f2
a1f7f2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-7
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a1f7f2
a1f7f2
* Thu Apr  4 2013 Tomáš Mráz <tmraz@redhat.com> - 0.13-6
a1f7f2
- Check for error returns which cause segfaults in FIPS mode
a1f7f2
- Fix missing error check and leak found by gcc-with-cpychecker (#800086)
a1f7f2
a1f7f2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-5
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a1f7f2
a1f7f2
* Fri Oct 12 2012 Petr Pisar <ppisar@redhat.com> - 0.13-4
a1f7f2
- Do not scan documentation for dependencies (bug #865806)
a1f7f2
a1f7f2
* Mon Oct 08 2012 Dan Horák <dan[at]danny.cz> - 0.13-3
a1f7f2
- rebuilt because ARM packages had wrong Requires autodetected
a1f7f2
a1f7f2
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a1f7f2
a1f7f2
* Wed Jun 20 2012 Tomas Mraz <tmraz@redhat.com> - 0.13-1
a1f7f2
- New upstream release
a1f7f2
a1f7f2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a1f7f2
a1f7f2
* Tue Jun 28 2011 Tomas Mraz <tmraz@redhat.com> - 0.12-1
a1f7f2
- New upstream release
a1f7f2
a1f7f2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a1f7f2
a1f7f2
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-2
a1f7f2
- Fix incompatibility with python-2.7's socket module.
a1f7f2
a1f7f2
* Mon Oct  4 2010 Tomas Mraz <tmraz@redhat.com> - 0.10-1
a1f7f2
- Merge-review cleanup by Parag Nemade (#226335)
a1f7f2
- New upstream release
a1f7f2
a1f7f2
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-2
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a1f7f2
a1f7f2
* Tue Sep 29 2009 Matěj Cepl <mcepl@redhat.com> - 0.9-1
a1f7f2
- New upstream release
a1f7f2
- Fix BuildRequires to make Postscript documentation buildable
a1f7f2
a1f7f2
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.7-7
a1f7f2
- rebuilt with new openssl
a1f7f2
a1f7f2
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a1f7f2
a1f7f2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
a1f7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a1f7f2
a1f7f2
* Thu Jan 15 2009 Dennis Gilmore <dennis@ausil.us> - 0.7-4
a1f7f2
- rebuild against now openssl
a1f7f2
a1f7f2
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7-3
a1f7f2
- Rebuild for Python 2.6
a1f7f2
a1f7f2
* Fri Sep 19 2008 Dennis Gilmore <dennis@ausil.us> - 0.7-2
a1f7f2
- update threadsafe  patch
a1f7f2
- bug#462807
a1f7f2
a1f7f2
* Mon Sep 15 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 0.7-1
a1f7f2
- bump to new release
a1f7f2
- the inevitable patch fixes
a1f7f2
a1f7f2
a1f7f2
* Wed Mar 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6-4
a1f7f2
- fix horrific release tag
a1f7f2
- fix license tag
a1f7f2
- add egg-info
a1f7f2
a1f7f2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6-3.p24.9
a1f7f2
- Autorebuild for GCC 4.3
a1f7f2
a1f7f2
* Wed Dec  5 2007 Jeremy Katz <katzj@redhat.com> - 0.6-2.p24.9
a1f7f2
- rebuild for new openssl
a1f7f2
a1f7f2
* Mon Dec 11 2006 Paul Howarth <paul@city-fan.org> - 0.6-1.p24.9
a1f7f2
- add missing buildreq latex2html, needed to build HTML docs
a1f7f2
- rewrite to be more in line with Fedora python spec template and use
a1f7f2
  %%{python_sitearch} rather than a script-generated %%files list
a1f7f2
- package is not relocatable - drop Prefix: tag
a1f7f2
- buildreq perl not necessary
a1f7f2
- fix permissions for files going into debuginfo package
a1f7f2
a1f7f2
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.8
a1f7f2
- rebuild for python 2.5
a1f7f2
a1f7f2
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.2
a1f7f2
- rebuild
a1f7f2
a1f7f2
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.1
a1f7f2
- bump again for double-long bug on ppc(64)
a1f7f2
a1f7f2
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2
a1f7f2
- rebuilt for new gcc4.1 snapshot and glibc changes
a1f7f2
a1f7f2
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Wed Nov  9 2005 Mihai Ibanescu <misa@redhat.com> - 0.6-1.p24.7
a1f7f2
- rebuilt against newer openssl
a1f7f2
a1f7f2
* Wed Aug 24 2005 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.6
a1f7f2
- add dcbw's patch to fix some threading problems
a1f7f2
a1f7f2
* Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 0.6-1.p24.5
a1f7f2
- current rpm creates .pyo files, include them in filelist
a1f7f2
a1f7f2
* Thu Mar 17 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.4
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.3
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Mon Mar  7 2005 Tomas Mraz <tmraz@redhat.com> 0.6-1.p23.2
a1f7f2
- rebuild with openssl-0.9.7e
a1f7f2
a1f7f2
* Tue Nov  9 2004 Nalin Dahyabhai <nalin@redhat.com> 0.6-1.p23.1
a1f7f2
- rebuild
a1f7f2
a1f7f2
* Fri Aug 13 2004 Mihai Ibanescu <misa@redhat.com> 0.6-1
a1f7f2
- 0.6 is out
a1f7f2
a1f7f2
* Tue Aug 10 2004 Mihai Ibanescu <misa@redhat.com> 0.6-0.90.rc1
a1f7f2
- release candidate
a1f7f2
a1f7f2
* Thu Jun 24 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-24
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Mon Jun 21 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-23
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Wed Nov  5 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-20
a1f7f2
- rebuilt against python 2.3.2
a1f7f2
a1f7f2
* Fri Aug  8 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-12
a1f7f2
- lynx no longer supported, using elinks instead (patch from
a1f7f2
  Michael Redinger <michael.redinger@uibk.ac.at>, bug #101947 )
a1f7f2
a1f7f2
* Wed Jun  4 2003 Elliot Lee <sopwith@redhat.com> 0.5.1-11
a1f7f2
- Rebuilt
a1f7f2
a1f7f2
* Wed Jun  4 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-10.7.x
a1f7f2
- Built on 7.x
a1f7f2
a1f7f2
* Mon Mar  3 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-9
a1f7f2
- bug #73967: Added Requires: python
a1f7f2
a1f7f2
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Fri Feb 21 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-7
a1f7f2
- bug #84803: Added patch to expose more flags
a1f7f2
a1f7f2
* Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-5
a1f7f2
- installing to %%{_libdir}
a1f7f2
a1f7f2
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
a1f7f2
- rebuilt
a1f7f2
a1f7f2
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.5.1-3
a1f7f2
- rebuild
a1f7f2
a1f7f2
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
a1f7f2
- Add -I and -L flags for finding Kerberos headers and libraries, in case
a1f7f2
  they're referenced
a1f7f2
a1f7f2
* Tue Dec  3 2002 Mihai Ibanescu <misa@redhat.com>
a1f7f2
- Fix for bug 73967: site-packages/OpenSSL not owned by this package
a1f7f2
- Adding hacks around the lack of latex2html on ia64
a1f7f2
a1f7f2
* Tue Sep 24 2002 Mihai Ibanescu <misa@redhat.com>
a1f7f2
- 0.5.1
a1f7f2
a1f7f2
* Thu Aug 29 2002 Mihai Ibanescu <misa@redhat.com>
a1f7f2
- Building 0.5.1rc1 with version number 0.5.0.91 (this should also fix the big
a1f7f2
  error of pushing 0.5pre previously, since it breaks rpm's version comparison
a1f7f2
  algorithm).
a1f7f2
- We use %%{__python}. Too bad I can't pass --define's to distutils.
a1f7f2
a1f7f2
* Fri Aug 16 2002 Mihai Ibanescu <misa@redhat.com>
a1f7f2
- Building 0.5
a1f7f2
a1f7f2
* Fri Jun 14 2002 Mihai Ibanescu <misa@redhat.com>
a1f7f2
- Added documentation