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