81 lines
2.5 KiB
RPMSpec
81 lines
2.5 KiB
RPMSpec
|
Name: python-pyOpenSSL
|
||
|
Version: 0.9
|
||
|
Release: 2mamba
|
||
|
Summary: Python interface to the OpenSSL library
|
||
|
Group: System/Libraries/Python
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://pyopenssl.sourceforge.net/
|
||
|
Source: http://downloads.sourceforge.net/pyopenssl/pyOpenSSL-%{version}.tar.gz
|
||
|
Patch0: python-pyOpenSSLL-0.7-openssl.patch
|
||
|
Patch1: python-pyOpenSSL-elinks.patch
|
||
|
Patch2: python-pyOpenSSL-nopdfout.patch
|
||
|
Patch3: python-pyOpenSSL-threadsafe.patch
|
||
|
License: LGPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libopenssl-devel
|
||
|
BuildRequires: libpython-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: elinks
|
||
|
BuildRequires: tetex-dvips
|
||
|
BuildRequires: tetex-latex
|
||
|
BuildRequires: latex2html
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Python wrapper around a small subset of the OpenSSL library. Includes: X509 Certificates, SSL Context objects, SSL Connection objects using Python sockets as transport layer. The Connection object wraps all the socket methods and can therefore be used in
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n pyOpenSSL-%{version}
|
||
|
%patch0 -p1 -b .openssl097
|
||
|
%patch1 -p1 -b .elinks
|
||
|
%patch2 -p1 -b .nopdfout
|
||
|
#%patch3 -p1 -b .threadsafe
|
||
|
|
||
|
# Fix permissions for debuginfo package
|
||
|
%{__chmod} -x src/ssl/connection.c
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
||
|
##sed -i "s|python|python2.6|" doc/Makefile
|
||
|
%make -C doc ps
|
||
|
%make -C doc text
|
||
|
#html
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python} setup.py install \
|
||
|
--root="%{buildroot}" \
|
||
|
--install-headers=%{_includedir}/python \
|
||
|
--install-lib=%{python_sitearch}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{python_sitearch}/pyOpenSSL-%{version}-py%{python_version}.egg-info
|
||
|
%dir %{python_sitearch}/OpenSSL
|
||
|
%{python_sitearch}/OpenSSL/*.so
|
||
|
%{python_sitearch}/OpenSSL/*.py
|
||
|
%{python_sitearch}/OpenSSL/*.pyc
|
||
|
%dir %{python_sitearch}/OpenSSL/test
|
||
|
%{python_sitearch}/OpenSSL/test/*.py
|
||
|
%{python_sitearch}/OpenSSL/test/*.pyc
|
||
|
%doc README doc/pyOpenSSL.ps
|
||
|
#%doc doc/pyOpenSSL.txt
|
||
|
|
||
|
%changelog
|
||
|
* Sat Jun 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9-2mamba
|
||
|
- python 2.7 mass rebuild
|
||
|
|
||
|
* Fri Jul 10 2009 Automatic Build System <autodist@mambasoft.it> 0.9-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Mon Dec 29 2008 gil <puntogil@libero.it> 0.8-2mamba
|
||
|
- rebuilt with python 2.6
|
||
|
|
||
|
* Tue Nov 18 2008 gil <puntogil@libero.it> 0.8-1mamba
|
||
|
- package created by autospec
|