cvsdist 6faecb8
%define __python /usr/bin/python2
cvsdist d843356
Summary: Python wrapper module around the OpenSSL library
cvsdist 8b5c949
Name: pyOpenSSL
cvsdist 8b5c949
Version: 0.5.1
cvsdist 3a8b4fc
Release: 24
cvsdist d843356
Source0: %{name}-%{version}.tar.gz
cvsdist 8b5c949
Patch0: pyOpenSSL-0.5.1-openssl097.patch
cvsdist 8b5c949
Patch1: pyOpenSSL-0.5.1-extraflags.patch
cvsdist c4cfcdd
Patch1: pyOpenSSL-elinks.patch
cvsdist 8b5c949
License: LGPL
cvsdist d843356
Group: Development/Libraries
cvsdist d843356
BuildRoot: %{_tmppath}/%{name}-buildroot
cvsdist d843356
Prefix: %{_prefix}
cvsdist d843356
Url: http://pyopenssl.sourceforge.net/
cvsdist 6faecb8
Requires: python
cvsdist c4cfcdd
BuildRequires: elinks openssl-devel python-devel perl tetex-dvips tetex-latex
cvsdist d843356
cvsdist d843356
%description
cvsdist d843356
High-level wrapper around a subset of the OpenSSL library, includes
cvsdist d843356
 * SSL.Connection objects, wrapping the methods of Python's portable
cvsdist d843356
   sockets
cvsdist d843356
 * Callbacks written in Python
cvsdist d843356
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes
cvsdist d843356
...  and much more ;)
cvsdist d843356
cvsdist d843356
%prep
cvsdist 8b5c949
%setup -q
cvsdist 8b5c949
%patch0 -p1 -b .openssl097
cvsdist 8b5c949
%patch1 -p1 -b .extraflags
cvsdist d843356
cvsdist d843356
%build
cvsdist 8b5c949
%{__python} setup.py build
cvsdist 8b5c949
make -C doc ps
cvsdist 8b5c949
# ia64 does not have latex2html
cvsdist 8b5c949
%ifarch i386
cvsdist 8b5c949
make -C doc text html
cvsdist 8b5c949
%endif
cvsdist d843356
cvsdist d843356
%install
cvsdist 8b5c949
%{__python} setup.py install \
cvsdist 8b5c949
--root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
cvsdist 8b5c949
sed -e 's|/[^/]*$||' INSTALLED_FILES | grep "site-packages/" | \
cvsdist 8b5c949
    sort | uniq | awk '{ print "%attr(755,root,root) %dir " $1}' > INSTALLED_DIRS
cvsdist 8b5c949
cat INSTALLED_FILES INSTALLED_DIRS > INSTALLED_OBJECTS
cvsdist d843356
cvsdist d843356
%clean
cvsdist d843356
rm -rf $RPM_BUILD_ROOT
cvsdist d843356
cvsdist 8b5c949
%files -f INSTALLED_OBJECTS
cvsdist d843356
%defattr(-,root,root)
cvsdist 8b5c949
%doc README doc/pyOpenSSL.ps 
cvsdist 8b5c949
%ifarch i386
cvsdist 8b5c949
%doc doc/pyOpenSSL.txt doc/html
cvsdist 8b5c949
%endif
cvsdist a943158
cvsdist a943158
%changelog
cvsdist 3a8b4fc
* Thu Jun 24 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-24
cvsdist 3a8b4fc
- rebuilt
cvsdist 3a8b4fc
cvsdist 3a8b4fc
* Mon Jun 21 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-23
cvsdist 3a8b4fc
- rebuilt
cvsdist 3a8b4fc
cvsdist 3a8b4fc
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3a8b4fc
- rebuilt
cvsdist 3a8b4fc
cvsdist 35b1852
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 35b1852
- rebuilt
cvsdist 35b1852
cvsdist 35b1852
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 35b1852
- rebuilt
cvsdist 35b1852
cvsdist c4cfcdd
* Wed Nov  5 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-20
cvsdist c4cfcdd
- rebuilt against python 2.3.2
cvsdist c4cfcdd
cvsdist c4cfcdd
* Fri Aug  8 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-12
cvsdist c4cfcdd
- lynx no longer supported, using elinks instead (patch from
cvsdist c4cfcdd
  Michael Redinger <michael.redinger@uibk.ac.at>, bug #101947 )
cvsdist c4cfcdd
cvsdist 6faecb8
* Wed Jun  4 2003 Elliot Lee <sopwith@redhat.com> 0.5.1-11
cvsdist 6faecb8
- Rebuilt
cvsdist 6faecb8
cvsdist 6faecb8
* Wed Jun  4 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-10.7.x
cvsdist 6faecb8
- Built on 7.x
cvsdist 6faecb8
cvsdist 6faecb8
* Mon Mar  3 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-9
cvsdist 6faecb8
- bug #73967: Added Requires: python 
cvsdist 6faecb8
cvsdist 8b5c949
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 8b5c949
- rebuilt
cvsdist 8b5c949
cvsdist 8b5c949
* Fri Feb 21 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-7
cvsdist 8b5c949
- bug #84803: Added patch to expose more flags
cvsdist 8b5c949
cvsdist 8b5c949
* Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-5
cvsdist 8b5c949
- installing to %%{_libdir}
cvsdist 8b5c949
cvsdist 8b5c949
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 8b5c949
- rebuilt
cvsdist 8b5c949
cvsdist 8b5c949
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.5.1-3
cvsdist 8b5c949
- rebuild
cvsdist 8b5c949
cvsdist 8b5c949
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 8b5c949
- Add -I and -L flags for finding Kerberos headers and libraries, in case
cvsdist 8b5c949
  they're referenced
cvsdist 8b5c949
cvsdist 8b5c949
* Tue Dec  3 2002 Mihai Ibanescu <misa@redhat.com>
cvsdist 8b5c949
- Fix for bug 73967: site-packages/OpenSSL not owned by this package
cvsdist 8b5c949
- Adding hacks around the lack of latex2html on ia64
cvsdist 8b5c949
cvsdist 8b5c949
* Tue Sep 24 2002 Mihai Ibanescu <misa@redhat.com>
cvsdist 8b5c949
- 0.5.1
cvsdist 8b5c949
cvsdist a943158
* Thu Aug 29 2002 Mihai Ibanescu <misa@redhat.com>
cvsdist a943158
- Building 0.5.1rc1 with version number 0.5.0.91 (this should also fix the big
cvsdist a943158
  error of pushing 0.5pre previously, since it breaks rpm's version comparison
cvsdist a943158
  algorithm).
cvsdist a943158
- We use %{__python}. Too bad I can't pass --define's to distutils.
cvsdist a943158
cvsdist a943158
* Fri Aug 16 2002 Mihai Ibanescu <misa@redhat.com>
cvsdist a943158
- Building 0.5
cvsdist a943158
cvsdist a943158
* Fri Jun 14 2002 Mihai Ibanescu <misa@redhat.com>
cvsdist a943158
- Added documentation