File python-tlslite.spec of Package python-tlslite
#
# spec file for package python-tlslite
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-tlslite
Version: 0.4.6
Release: 0
License: BSD-3-Clause
Summary: A Python Library That Implements SSL 3.0, TLS 1.0, and TLS 1.1
Url: http://trevp.net/tlslite/
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/t/tlslite/tlslite-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
TLS Lite is a free python library that implements SSL 3.0, TLS 1.0, and TLS
1.1. TLS Lite supports non-traditional authentication methods such as SRP,
shared keys, and cryptoIDs in addition to X.509 certificates. TLS Lite is pure
Python, however it can access OpenSSL, cryptlib, pycrypto, and GMPY for faster
crypto operations. TLS Lite integrates with httplib, xmlrpclib, poplib,
imaplib, smtplib, SocketServer, asyncore, and Twisted.
%package doc
Summary: Documentation for python-tlslite
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description doc
TLS Lite is a free python library that implements SSL 3.0, TLS 1.0, and TLS
1.1. TLS Lite supports non-traditional authentication methods such as SRP,
shared keys, and cryptoIDs in addition to X.509 certificates. TLS Lite is pure
Python, however it can access OpenSSL, cryptlib, pycrypto, and GMPY for faster
crypto operations. TLS Lite integrates with httplib, xmlrpclib, poplib,
imaplib, smtplib, SocketServer, asyncore, and Twisted.
This package contains documentation.
%prep
%setup -q -n tlslite-%{version}
%build
python setup.py build
# Fix perms
find . -type f | xargs chmod 0644
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{python_sitelib}/*
%{_bindir}/tls.py
%{_bindir}/tlsdb.py
%files doc
%defattr(-,root,root)
%doc docs
%changelog