ec8eba
%if 0%{?fedora} > 12
ec8eba
%global with_python3 1
ec8eba
%endif
ec8eba
ec8eba
Summary: Python wrapper module around the OpenSSL library
ec8eba
Name: pyOpenSSL
ec8eba
Version: 0.13.1
ec8eba
Release: 4%{?dist}
ec8eba
Source0: http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
ec8eba
ec8eba
# Fedora specific patches
ec8eba
ec8eba
Patch2: pyOpenSSL-elinks.patch
ec8eba
Patch3: pyOpenSSL-nopdfout.patch
ec8eba
ec8eba
Patch10: pyOpenSSL-0.13-check-error.patch
ec8eba
Patch11: pyOpenSSL-0.13.1-test-failure.patch
ec8eba
Patch12: pyOpenSSL-0.13.1-exception.patch
ec8eba
Patch13: pyOpenSSL-0.13.1-digest.patch
ec8eba
ec8eba
License: ASL 2.0
ec8eba
Group: Development/Libraries
ec8eba
Url: http://pyopenssl.sourceforge.net/
ec8eba
ec8eba
BuildRequires: elinks
ec8eba
BuildRequires: openssl-devel
ec8eba
BuildRequires: tetex-dvips
ec8eba
BuildRequires: tetex-latex
ec8eba
BuildRequires: latex2html
ec8eba
ec8eba
BuildRequires: python2-devel
ec8eba
%if 0%{?with_python3}
ec8eba
BuildRequires: python3-devel
ec8eba
%endif
ec8eba
ec8eba
%description
ec8eba
High-level wrapper around a subset of the OpenSSL library, includes among others
ec8eba
 * SSL.Connection objects, wrapping the methods of Python's portable
ec8eba
   sockets
ec8eba
 * Callbacks written in Python
ec8eba
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
ec8eba
ec8eba
%if 0%{?with_python3}
ec8eba
%package -n python3-pyOpenSSL
ec8eba
Summary: Python wrapper module around the OpenSSL library
ec8eba
ec8eba
%description -n python3-pyOpenSSL
ec8eba
High-level wrapper around a subset of the OpenSSL library, includes among others
ec8eba
 * SSL.Connection objects, wrapping the methods of Python's portable
ec8eba
   sockets
ec8eba
 * Callbacks written in Python
ec8eba
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
ec8eba
%endif
ec8eba
ec8eba
%package doc
ec8eba
Summary: Documentation for pyOpenSSL
ec8eba
BuildArch: noarch
ec8eba
ec8eba
%description doc
ec8eba
Documentation for pyOpenSSL
ec8eba
ec8eba
# we don't want to provide private python extension libs
ec8eba
%{?filter_setup:
ec8eba
%filter_provides_in %{python_sitearch}/.*\.so$ 
ec8eba
%if 0%{?with_python3}
ec8eba
%filter_provides_in %{python3_sitearch}/.*\.so$ 
ec8eba
%endif
ec8eba
%filter_requires_in %{_datadir}/doc/ 
ec8eba
%filter_setup
ec8eba
}
ec8eba
ec8eba
%prep
ec8eba
%setup -q -n pyOpenSSL-%{version}
ec8eba
%patch2 -p1 -b .elinks
ec8eba
%patch3 -p1 -b .nopdfout
ec8eba
%patch10 -p1 -b .error
ec8eba
%patch11 -p1 -b .test-failure
ec8eba
%patch12 -p1 -b .exception
ec8eba
%patch13 -p1 -b .digest
ec8eba
ec8eba
# Fix permissions for debuginfo package
ec8eba
%{__chmod} -x OpenSSL/ssl/connection.c
ec8eba
ec8eba
%build
ec8eba
%if 0%{?with_python3}
ec8eba
rm -rf %{py3dir}
ec8eba
cp -a . %{py3dir}
ec8eba
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
ec8eba
%endif
ec8eba
ec8eba
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
ec8eba
ec8eba
CFLAGS="%{optflags} -fno-strict-aliasing" %{__python} setup.py build
ec8eba
ec8eba
%if 0%{?with_python3}
ec8eba
pushd %{py3dir}
ec8eba
CFLAGS="%{optflags} -fno-strict-aliasing" %{__python3} setup.py build
ec8eba
popd
ec8eba
%endif
ec8eba
ec8eba
%{__make} -C doc ps
ec8eba
%{__make} -C doc text html
ec8eba
ec8eba
%install
ec8eba
%{__python} setup.py install --skip-build --root %{buildroot}
ec8eba
ec8eba
%if 0%{?with_python3}
ec8eba
pushd %{py3dir}
ec8eba
%{__python3} setup.py install --skip-build --root %{buildroot}
ec8eba
popd
ec8eba
%endif
ec8eba
ec8eba
%files
ec8eba
%{python_sitearch}/OpenSSL/
ec8eba
%{python_sitearch}/pyOpenSSL-*.egg-info
ec8eba
ec8eba
%if 0%{?with_python3}
ec8eba
%files -n python3-pyOpenSSL
ec8eba
%{python3_sitearch}/OpenSSL/
ec8eba
%{python3_sitearch}/pyOpenSSL-*.egg-info
ec8eba
%endif
ec8eba
ec8eba
%files doc
ec8eba
%doc README doc/pyOpenSSL.* doc/html
ec8eba
ec8eba
%changelog
ec8eba
* Fri May  4 2018 Tomáš Mráz <tmraz@redhat.com> - 0.13.1-4
ec8eba
- fix various testsuite failures
ec8eba
- fix exception propagation from private key passphrase callback (#1227505)
ec8eba
- add optional digest parameter to CRL.export method (#1523772)
ec8eba
ec8eba
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.13.1-3
ec8eba
- Mass rebuild 2014-01-24
ec8eba
ec8eba
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.13.1-2
ec8eba
- Mass rebuild 2013-12-27
ec8eba
ec8eba
* Thu Sep  5 2013 Tomáš Mráz <tmraz@redhat.com> - 0.13.1-1
ec8eba
- new upstream release fixing a security issue with string
ec8eba
  formatting subjectAltName of a certificate
ec8eba
ec8eba
* Tue Aug 06 2013 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.13-8
ec8eba
- Python 3 subpackage
ec8eba
- Split documentation off into noarch subpackage
ec8eba
ec8eba
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-7
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ec8eba
ec8eba
* Thu Apr  4 2013 Tomáš Mráz <tmraz@redhat.com> - 0.13-6
ec8eba
- Check for error returns which cause segfaults in FIPS mode
ec8eba
- Fix missing error check and leak found by gcc-with-cpychecker (#800086)
ec8eba
ec8eba
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-5
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ec8eba
ec8eba
* Fri Oct 12 2012 Petr Pisar <ppisar@redhat.com> - 0.13-4
ec8eba
- Do not scan documentation for dependencies (bug #865806)
ec8eba
ec8eba
* Mon Oct 08 2012 Dan Horák <dan[at]danny.cz> - 0.13-3
ec8eba
- rebuilt because ARM packages had wrong Requires autodetected
ec8eba
ec8eba
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ec8eba
ec8eba
* Wed Jun 20 2012 Tomas Mraz <tmraz@redhat.com> - 0.13-1
ec8eba
- New upstream release
ec8eba
ec8eba
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ec8eba
ec8eba
* Tue Jun 28 2011 Tomas Mraz <tmraz@redhat.com> - 0.12-1
ec8eba
- New upstream release
ec8eba
ec8eba
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ec8eba
ec8eba
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-2
ec8eba
- Fix incompatibility with python-2.7's socket module.
ec8eba
ec8eba
* Mon Oct  4 2010 Tomas Mraz <tmraz@redhat.com> - 0.10-1
ec8eba
- Merge-review cleanup by Parag Nemade (#226335)
ec8eba
- New upstream release
ec8eba
ec8eba
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-2
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
ec8eba
ec8eba
* Tue Sep 29 2009 Matěj Cepl <mcepl@redhat.com> - 0.9-1
ec8eba
- New upstream release
ec8eba
- Fix BuildRequires to make Postscript documentation buildable
ec8eba
ec8eba
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.7-7
ec8eba
- rebuilt with new openssl
ec8eba
ec8eba
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ec8eba
ec8eba
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
ec8eba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ec8eba
ec8eba
* Thu Jan 15 2009 Dennis Gilmore <dennis@ausil.us> - 0.7-4
ec8eba
- rebuild against now openssl
ec8eba
ec8eba
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7-3
ec8eba
- Rebuild for Python 2.6
ec8eba
ec8eba
* Fri Sep 19 2008 Dennis Gilmore <dennis@ausil.us> - 0.7-2
ec8eba
- update threadsafe  patch 
ec8eba
- bug#462807
ec8eba
ec8eba
* Mon Sep 15 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 0.7-1
ec8eba
- bump to new release
ec8eba
- the inevitable patch fixes
ec8eba
ec8eba
ec8eba
* Wed Mar 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6-4
ec8eba
- fix horrific release tag
ec8eba
- fix license tag
ec8eba
- add egg-info
ec8eba
ec8eba
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6-3.p24.9
ec8eba
- Autorebuild for GCC 4.3
ec8eba
ec8eba
* Wed Dec  5 2007 Jeremy Katz <katzj@redhat.com> - 0.6-2.p24.9
ec8eba
- rebuild for new openssl
ec8eba
ec8eba
* Mon Dec 11 2006 Paul Howarth <paul@city-fan.org> - 0.6-1.p24.9
ec8eba
- add missing buildreq latex2html, needed to build HTML docs
ec8eba
- rewrite to be more in line with Fedora python spec template and use
ec8eba
  %%{python_sitearch} rather than a script-generated %%files list
ec8eba
- package is not relocatable - drop Prefix: tag
ec8eba
- buildreq perl not necessary
ec8eba
- fix permissions for files going into debuginfo package
ec8eba
ec8eba
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.8
ec8eba
- rebuild for python 2.5
ec8eba
ec8eba
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.2
ec8eba
- rebuild
ec8eba
ec8eba
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.1
ec8eba
- bump again for double-long bug on ppc(64)
ec8eba
ec8eba
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2
ec8eba
- rebuilt for new gcc4.1 snapshot and glibc changes
ec8eba
ec8eba
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Wed Nov  9 2005 Mihai Ibanescu <misa@redhat.com> - 0.6-1.p24.7
ec8eba
- rebuilt against newer openssl
ec8eba
ec8eba
* Wed Aug 24 2005 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.6
ec8eba
- add dcbw's patch to fix some threading problems
ec8eba
ec8eba
* Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 0.6-1.p24.5
ec8eba
- current rpm creates .pyo files, include them in filelist
ec8eba
ec8eba
* Thu Mar 17 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.4
ec8eba
- rebuilt
ec8eba
ec8eba
* Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.3
ec8eba
- rebuilt
ec8eba
ec8eba
* Mon Mar  7 2005 Tomas Mraz <tmraz@redhat.com> 0.6-1.p23.2
ec8eba
- rebuild with openssl-0.9.7e
ec8eba
ec8eba
* Tue Nov  9 2004 Nalin Dahyabhai <nalin@redhat.com> 0.6-1.p23.1
ec8eba
- rebuild
ec8eba
ec8eba
* Fri Aug 13 2004 Mihai Ibanescu <misa@redhat.com> 0.6-1
ec8eba
- 0.6 is out
ec8eba
ec8eba
* Tue Aug 10 2004 Mihai Ibanescu <misa@redhat.com> 0.6-0.90.rc1
ec8eba
- release candidate
ec8eba
ec8eba
* Thu Jun 24 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-24
ec8eba
- rebuilt
ec8eba
ec8eba
* Mon Jun 21 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-23
ec8eba
- rebuilt
ec8eba
ec8eba
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Wed Nov  5 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-20
ec8eba
- rebuilt against python 2.3.2
ec8eba
ec8eba
* Fri Aug  8 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-12
ec8eba
- lynx no longer supported, using elinks instead (patch from
ec8eba
  Michael Redinger <michael.redinger@uibk.ac.at>, bug #101947 )
ec8eba
ec8eba
* Wed Jun  4 2003 Elliot Lee <sopwith@redhat.com> 0.5.1-11
ec8eba
- Rebuilt
ec8eba
ec8eba
* Wed Jun  4 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-10.7.x
ec8eba
- Built on 7.x
ec8eba
ec8eba
* Mon Mar  3 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-9
ec8eba
- bug #73967: Added Requires: python 
ec8eba
ec8eba
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Fri Feb 21 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-7
ec8eba
- bug #84803: Added patch to expose more flags
ec8eba
ec8eba
* Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-5
ec8eba
- installing to %%{_libdir}
ec8eba
ec8eba
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
ec8eba
- rebuilt
ec8eba
ec8eba
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.5.1-3
ec8eba
- rebuild
ec8eba
ec8eba
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
ec8eba
- Add -I and -L flags for finding Kerberos headers and libraries, in case
ec8eba
  they're referenced
ec8eba
ec8eba
* Tue Dec  3 2002 Mihai Ibanescu <misa@redhat.com>
ec8eba
- Fix for bug 73967: site-packages/OpenSSL not owned by this package
ec8eba
- Adding hacks around the lack of latex2html on ia64
ec8eba
ec8eba
* Tue Sep 24 2002 Mihai Ibanescu <misa@redhat.com>
ec8eba
- 0.5.1
ec8eba
ec8eba
* Thu Aug 29 2002 Mihai Ibanescu <misa@redhat.com>
ec8eba
- Building 0.5.1rc1 with version number 0.5.0.91 (this should also fix the big
ec8eba
  error of pushing 0.5pre previously, since it breaks rpm's version comparison
ec8eba
  algorithm).
ec8eba
- We use %%{__python}. Too bad I can't pass --define's to distutils.
ec8eba
ec8eba
* Fri Aug 16 2002 Mihai Ibanescu <misa@redhat.com>
ec8eba
- Building 0.5
ec8eba
ec8eba
* Fri Jun 14 2002 Mihai Ibanescu <misa@redhat.com>
ec8eba
- Added documentation