File python-openssl.spec of Package python-openssl
#
# spec file for package python-openssl
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: python-openssl
BuildRequires: openssl openssl-devel python-devel
Summary: Python wrapper module around the OpenSSL library
Version: 0.11
Release: 1
Source: pyOpenSSL-%{version}.tar.bz2
License: LGPLv2.1+
Group: Development/Languages/Python
Url: https://launchpad.net/pyopenssl/
Requires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
High-level wrapper around a subset of the OpenSSL library, includes
* SSL.Connection objects, wrapping the methods of Python's
portable sockets
* Callbacks written in Python
* Extensive error-handling mechanism, mirroring OpenSSL's error codes
... and much more ;)
Authors:
--------
Martin Sjoegren <msjogren@gmail.com>
%prep
%setup -n pyOpenSSL-%{version}
%build
#export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --optimize=2 --record-rpm=INSTALLED_FILES \
--root="$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -p COPYING INSTALL PKG-INFO TODO README $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
cp -pr examples doc/tools/html $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
cp -p doc/pyOpenSSL.* $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%changelog