File python-pycryptopp.spec of Package python-pycryptopp
#
# spec file for package python-pycryptopp
#
# Copyright (c) 2016 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-pycryptopp
Version: 0.7.1.869544967005693312591928092448767568728501330214
Release: 0
Summary: Python Wrappers for the Crypto++ Library
License: GPL-2.0+ or SUSE-TGPPL-1.0+
Group: Development/Libraries/Python
Url: http://allmydata.org/trac/pycryptopp
Source: https://files.pythonhosted.org/packages/source/p/pycryptopp/pycryptopp-%{version}.tar.gz
Patch0: pycryptopp-0.5.29-disable-w-flag.patch
# PATCH-FIX-UPSTREAM https://github.com/tahoe-lafs/pycryptopp/pull/41
Patch1: reproducible.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libcryptopp-devel
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-xml
Provides: python-cryptopp = %{version}
Obsoletes: python-cryptopp < %{version}
%description
RSA-PSS-SHA256 signatures, ECDSA(1363)/EMSA1(SHA-256) signatures, SHA-256
hashes, and AES-CTR encryption for Python.
%prep
%setup -q -n pycryptopp-%{version}
%patch0
%patch1 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
python setup.py build --disable-embedded-cryptopp
%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/pycryptopp %{buildroot}%{_docdir}/
%check
python setup.py test
%files
%defattr(-,root,root)
%doc COPYING.GPL COPYING.MIT.txt COPYING.SPL.txt COPYING.TGPPL.rst copyright NEWS.rst README.*.rst README.rst
%{_docdir}/pycryptopp
%{python_sitearch}/pycryptopp
%{python_sitearch}/pycryptopp-%{version}-*.egg-info
%changelog