diff --git a/python-rsa.spec b/python-rsa.spec index ab97882..ce1f841 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -13,7 +13,7 @@ Name: python-%{pypi_name} Version: 3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -24,11 +24,11 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -BuildRequires: python-pyasn1 >= 0.1.3 +BuildRequires: python-pyasn1 %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-pyasn1 >= 0.1.3 +BuildRequires: python3-pyasn1 BuildRequires: python3-unittest2 %endif # with_python3 @@ -70,6 +70,9 @@ well as on the command-line. # Fix FTBFS (https://bitbucket.org/sybren/python-rsa/pull-requests/15/) %patch0 rm -rf %{pypi_name}.egg-info +# This is a dirty workaround for EL6. I'm copying as is from a 2014 commit. +# I'll try to improve it ASAP +%{?el6:sed -i "s/pyasn1 >= 0.1.3/pyasn1 >= 0/" setup.py} %build %py2_build @@ -104,7 +107,7 @@ cp %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile %{buildroot}%{_bindir}/pyrsa-dec %{!?_licensedir:%global license %doc} %doc README.rst %license LICENSE -%if 0%{!?with_python3} +%if 0%{?with_python3} == 0 %{_bindir}/pyrsa-priv2pub %{_bindir}/pyrsa-keygen %{_bindir}/pyrsa-encrypt @@ -155,6 +158,9 @@ cp %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile %{buildroot}%{_bindir}/pyrsa-dec %endif # with_python3 %changelog +* Wed Jan 13 2016 Fabio Alessandro Locati - 3.3-2 +- Fix for EL6 and EPEL7 + * Wed Jan 13 2016 Fabio Alessandro Locati - 3.3-1 - Update to current upstream - Fix CVE-2016-1494