From 728154b4197bb5d89979a062c7727f708e9451fd Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 17:54:02 -0500 Subject: [PATCH 1/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- python-rsa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-rsa.spec b/python-rsa.spec index e4d22ff..d4cfa4e 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -2,7 +2,7 @@ Name: python-rsa Version: 3.1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -40,6 +40,9 @@ sed -i "/use_setuptools('0.6.10')/d" setup.py %{python_sitelib}/rsa-*.egg-info %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 3.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Mon Aug 05 2013 Yohan Graterol - 3.1.1-4 - Fix build in F20 * Sun Aug 04 2013 Fedora Release Engineering - 3.1.1-3 From b53ae135cccc4acb10396478a67f062bf5db6f3f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 25 Jul 2014 21:35:31 +0200 Subject: [PATCH 2/9] Add Python 3 subpackage --- python-rsa.spec | 69 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 8 deletions(-) diff --git a/python-rsa.spec b/python-rsa.spec index d4cfa4e..39ef1b7 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,8 +1,14 @@ %global pkgname rsa +%if 0%{?fedora} > 12 +%bcond_without python3 +%else +%bcond_with python3 +%endif + Name: python-rsa Version: 3.1.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -14,9 +20,20 @@ BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pyasn1 BuildRequires: python-unittest2 +%if %with python3 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pyasn1 +%endif %description -Pure-Python RSA implementation +Pure-Python RSA implementation. + +%package -n python3-rsa +Summary: Pure-Python RSA implementation + +%description -n python3-rsa +Pure-Python RSA implementation for Python 3. %prep %setup -q -n %{pkgname}-%{version} @@ -24,22 +41,58 @@ rm -rf %{pkgname}-*.egg-info sed -i "/from distribute_setup import use_setuptools/d" setup.py sed -i "/use_setuptools('0.6.10')/d" setup.py +%if %with python3 +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + %build -%{__python} setup.py build +%if %with python3 +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif + +%{__python2} setup.py build %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%if %with python3 +pushd %{py3dir} +%{__python3} setup.py install --skip-build --root %{buildroot} +for B in %{buildroot}%{_bindir}/pyrsa-* + do mv $B $(echo $B |sed 's/pyrsa-/python3-pyrsa/'); done +popd +%endif + +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} %check -%{__python} setup.py test +%if %with python3 +pushd %{py3dir} +%{__python3} setup.py test +popd +%endif + +%{__python2} setup.py test %files %doc LICENSE -%{_bindir}/* -%{python_sitelib}/rsa -%{python_sitelib}/rsa-*.egg-info +%{_bindir}/pyrsa* +%{python2_sitelib}/rsa +%{python2_sitelib}/rsa-*.egg-info + +%if %with python3 +%files -n python3-rsa +%doc LICENSE +%{_bindir}/python3-pyrsa* +%{python3_sitelib}/rsa +%{python3_sitelib}/rsa-*.egg-info +%endif %changelog +* Fri Jul 25 2014 Lubomir Rintel - 3.1.1-6 +- Add Python 3 subpackage + * Sat Jun 07 2014 Fedora Release Engineering - 3.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From b87e39a8e266856d3b27cd1cb50f7f001aaa56c4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Jun 2015 20:42:50 +0000 Subject: [PATCH 3/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- python-rsa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-rsa.spec b/python-rsa.spec index 39ef1b7..5909e5f 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -8,7 +8,7 @@ Name: python-rsa Version: 3.1.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -90,6 +90,9 @@ popd %endif %changelog +* Thu Jun 18 2015 Fedora Release Engineering - 3.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Jul 25 2014 Lubomir Rintel - 3.1.1-6 - Add Python 3 subpackage From 8cde5cec3a012f5e05d2e14286aa39d43aa15fbc Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Tue, 13 Oct 2015 17:51:30 +0100 Subject: [PATCH 4/9] Update to 3.1.4 (#1226667) --- .gitignore | 1 + python-rsa.spec | 33 +++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index b6e717a..ecf4404 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rsa-3.1.1.tar.gz +/rsa-3.1.4.tar.gz diff --git a/python-rsa.spec b/python-rsa.spec index 5909e5f..c7674a7 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -7,8 +7,8 @@ %endif Name: python-rsa -Version: 3.1.1 -Release: 7%{?dist} +Version: 3.1.4 +Release: 1%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -18,12 +18,13 @@ Source0: https://pypi.python.org/packages/source/r/rsa/%{pkgname}-%{versi BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -BuildRequires: python-pyasn1 +BuildRequires: python-pyasn1 >= 0.1.3 BuildRequires: python-unittest2 +Requires: python-pyasn1 >= 0.1.3 %if %with python3 BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-pyasn1 +BuildRequires: python3-pyasn1 >= 0.1.3 %endif %description @@ -31,6 +32,7 @@ Pure-Python RSA implementation. %package -n python3-rsa Summary: Pure-Python RSA implementation +Requires: python3-pyasn1 >= 0.1.3 %description -n python3-rsa Pure-Python RSA implementation for Python 3. @@ -38,8 +40,6 @@ Pure-Python RSA implementation for Python 3. %prep %setup -q -n %{pkgname}-%{version} rm -rf %{pkgname}-*.egg-info -sed -i "/from distribute_setup import use_setuptools/d" setup.py -sed -i "/use_setuptools('0.6.10')/d" setup.py %if %with python3 rm -rf %{py3dir} @@ -76,20 +76,33 @@ popd %{__python2} setup.py test %files +%if 0%{?_licensedir:1} +%license LICENSE +%else %doc LICENSE +%endif +%doc README.rst %{_bindir}/pyrsa* -%{python2_sitelib}/rsa -%{python2_sitelib}/rsa-*.egg-info +%{python2_sitelib}/rsa/ +%{python2_sitelib}/rsa-*.egg-info/ %if %with python3 %files -n python3-rsa +%if 0%{?_licensedir:1} +%license LICENSE +%else %doc LICENSE +%endif +%doc README.rst %{_bindir}/python3-pyrsa* -%{python3_sitelib}/rsa -%{python3_sitelib}/rsa-*.egg-info +%{python3_sitelib}/rsa/ +%{python3_sitelib}/rsa-*.egg-info/ %endif %changelog +* Tue Oct 13 2015 Paul Howarth - 3.1.4-1 +- Update to 3.1.4 (#1226667) + * Thu Jun 18 2015 Fedora Release Engineering - 3.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 4c44283..d88ec66 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -01e6b88c078e8f74718a455e0a05623d rsa-3.1.1.tar.gz +b6b1c80e1931d4eba8538fd5d4de1355 rsa-3.1.4.tar.gz From 3bb3429db281de0da77220a13e84e9793ef075ad Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 10 Nov 2015 17:18:42 +0000 Subject: [PATCH 5/9] - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 --- python-rsa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-rsa.spec b/python-rsa.spec index c7674a7..5ebc84d 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -8,7 +8,7 @@ Name: python-rsa Version: 3.1.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 @@ -100,6 +100,9 @@ popd %endif %changelog +* Tue Nov 10 2015 Fedora Release Engineering - 3.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + * Tue Oct 13 2015 Paul Howarth - 3.1.4-1 - Update to 3.1.4 (#1226667) From 569b43b026cf3b34a9089bf984e665ff0bfdd474 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Tue, 8 Dec 2015 15:31:46 +0000 Subject: [PATCH 6/9] Fix FTBFS (Debian Bug #804430) --- python-rsa.spec | 27 +++++++++++++++++-------- rsa-3.1.4-debian-804430.patch | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 rsa-3.1.4-debian-804430.patch diff --git a/python-rsa.spec b/python-rsa.spec index 5ebc84d..26eb386 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -8,37 +8,44 @@ Name: python-rsa Version: 3.1.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 URL: http://stuvel.eu/rsa Source0: https://pypi.python.org/packages/source/r/rsa/%{pkgname}-%{version}.tar.gz - +Patch0: rsa-3.1.4-debian-804430.patch BuildArch: noarch + BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pyasn1 >= 0.1.3 BuildRequires: python-unittest2 Requires: python-pyasn1 >= 0.1.3 -%if %with python3 -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pyasn1 >= 0.1.3 -%endif %description Pure-Python RSA implementation. +%if %with python3 %package -n python3-rsa Summary: Pure-Python RSA implementation +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pyasn1 >= 0.1.3 +BuildRequires: python3-unittest2 Requires: python3-pyasn1 >= 0.1.3 %description -n python3-rsa Pure-Python RSA implementation for Python 3. +%endif %prep %setup -q -n %{pkgname}-%{version} + +# Fix FTBFS (Debian Bug #804430) +%patch0 + +# Get rid of upstream's egg-info, we'll use our own rm -rf %{pkgname}-*.egg-info %if %with python3 @@ -73,7 +80,7 @@ pushd %{py3dir} popd %endif -%{__python2} setup.py test +%{__python2} run_tests.py %files %if 0%{?_licensedir:1} @@ -100,6 +107,10 @@ popd %endif %changelog +* Tue Dec 8 2015 Paul Howarth - 3.1.4-3 +- Fix FTBFS (Debian Bug #804430) +- Run the tests for both python2 and python3 + * Tue Nov 10 2015 Fedora Release Engineering - 3.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 diff --git a/rsa-3.1.4-debian-804430.patch b/rsa-3.1.4-debian-804430.patch new file mode 100644 index 0000000..1c1aec6 --- /dev/null +++ b/rsa-3.1.4-debian-804430.patch @@ -0,0 +1,38 @@ +--- rsa/_version133.py ++++ rsa/_version133.py +@@ -18,7 +18,12 @@ __version__ = '1.3.3' + # NOTE: Python's modulo can return negative numbers. We compensate for + # this behaviour using the abs() function + +-from cPickle import dumps, loads ++try: ++ import cPickle as pickle ++except: ++ import pickle ++from pickle import dumps, loads ++ + import base64 + import math + import os +--- tests/constants.py ++++ tests/constants.py +@@ -3,7 +3,7 @@ + from rsa._compat import have_python3 + + if have_python3: +- from py3kconstants import * ++ from tests.py3kconstants import * + else: + from py2kconstants import * + +--- tests/test_strings.py ++++ tests/test_strings.py +@@ -6,7 +6,7 @@ import unittest2 + + import rsa + +-from constants import unicode_string ++from tests.constants import unicode_string + + class StringTest(unittest2.TestCase): + From d38317f341e3a213810a2d66b114099db37d37ff Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Wed, 13 Jan 2016 23:15:45 +0100 Subject: [PATCH 7/9] 3.3-1 Fix CVE-2016-1494 and multiple other problems --- python-rsa.spec | 213 ++++++++++++++++++++++++++++++------------------ 1 file changed, 133 insertions(+), 80 deletions(-) diff --git a/python-rsa.spec b/python-rsa.spec index 26eb386..72add2e 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,112 +1,164 @@ -%global pkgname rsa - -%if 0%{?fedora} > 12 -%bcond_without python3 +%global pypi_name rsa + +%if 0%{?rhel} +%global with_python3 0 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{!?py2_build: %global py2_build %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} build --executable="%{__python2} -s"}} +%{!?py2_install: %global py2_install %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot}}} %else -%bcond_with python3 +%global with_python3 1 %endif -Name: python-rsa -Version: 3.1.4 -Release: 3%{?dist} +Name: python-%{pypi_name} +Version: 3.3 +Release: 1%{?dist} Summary: Pure-Python RSA implementation License: ASL 2.0 URL: http://stuvel.eu/rsa -Source0: https://pypi.python.org/packages/source/r/rsa/%{pkgname}-%{version}.tar.gz +Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Patch0: rsa-3.1.4-debian-804430.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pyasn1 >= 0.1.3 -BuildRequires: python-unittest2 -Requires: python-pyasn1 >= 0.1.3 - -%description -Pure-Python RSA implementation. - -%if %with python3 -%package -n python3-rsa -Summary: Pure-Python RSA implementation +%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pyasn1 >= 0.1.3 -BuildRequires: python3-unittest2 -Requires: python3-pyasn1 >= 0.1.3 +%endif # with_python3 -%description -n python3-rsa -Pure-Python RSA implementation for Python 3. -%endif +%description +Python-RSA is a pure-Python RSA implementation. It supports encryption +and decryption, signing and verifying signatures, and key generation +according to PKCS#1 version 1.5. It can be used as a Python library as +well as on the command-line. -%prep -%setup -q -n %{pkgname}-%{version} +%package -n python2-%{pypi_name} +Summary: Pure-Python RSA implementation +%{?python_provide:%python_provide python2-%{pypi_name}} +%{?el6:Provides: python-%{pypi_name}} -# Fix FTBFS (Debian Bug #804430) -%patch0 +Requires: python-pyasn1 >= 0.1.3 +Requires: python-setuptools +%description -n python2-%{pypi_name} +Python-RSA is a pure-Python RSA implementation. It supports encryption +and decryption, signing and verifying signatures, and key generation +according to PKCS#1 version 1.5. It can be used as a Python library as +well as on the command-line. + +%if 0%{?with_python3} +%package -n python3-%{pypi_name} +Summary: Pure-Python RSA implementation +%{?python_provide:%python_provide python3-%{pypi_name}} -# Get rid of upstream's egg-info, we'll use our own -rm -rf %{pkgname}-*.egg-info +Requires: python3-pyasn1 >= 0.1.3 +Requires: python3-setuptools +%description -n python3-%{pypi_name} +Python-RSA is a pure-Python RSA implementation. It supports encryption +and decryption, signing and verifying signatures, and key generation +according to PKCS#1 version 1.5. It can be used as a Python library as +well as on the command-line. +%endif # with_python3 -%if %with python3 -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif +%prep +%setup -q -n %{pypi_name}-%{version} +# Fix FTBFS (https://bitbucket.org/sybren/python-rsa/pull-requests/15/) +%patch0 +rm -rf %{pypi_name}.egg-info %build -%if %with python3 -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif - -%{__python2} setup.py build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif # with_python3 %install -%if %with python3 -pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} -for B in %{buildroot}%{_bindir}/pyrsa-* - do mv $B $(echo $B |sed 's/pyrsa-/python3-pyrsa/'); done -popd -%endif - -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} +%py2_install +cp %{buildroot}%{_bindir}/pyrsa-priv2pub %{buildroot}%{_bindir}/pyrsa-priv2pub-2 +cp %{buildroot}%{_bindir}/pyrsa-keygen %{buildroot}%{_bindir}/pyrsa-keygen-2 +cp %{buildroot}%{_bindir}/pyrsa-encrypt %{buildroot}%{_bindir}/pyrsa-encrypt-2 +cp %{buildroot}%{_bindir}/pyrsa-decrypt %{buildroot}%{_bindir}/pyrsa-decrypt-2 +cp %{buildroot}%{_bindir}/pyrsa-sign %{buildroot}%{_bindir}/pyrsa-sign-2 +cp %{buildroot}%{_bindir}/pyrsa-verify %{buildroot}%{_bindir}/pyrsa-verify-2 +cp %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile-2 +cp %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile-2 + +%if 0%{?with_python3} +%py3_install +cp %{buildroot}%{_bindir}/pyrsa-priv2pub %{buildroot}%{_bindir}/pyrsa-priv2pub-3 +cp %{buildroot}%{_bindir}/pyrsa-keygen %{buildroot}%{_bindir}/pyrsa-keygen-3 +cp %{buildroot}%{_bindir}/pyrsa-encrypt %{buildroot}%{_bindir}/pyrsa-encrypt-3 +cp %{buildroot}%{_bindir}/pyrsa-decrypt %{buildroot}%{_bindir}/pyrsa-decrypt-3 +cp %{buildroot}%{_bindir}/pyrsa-sign %{buildroot}%{_bindir}/pyrsa-sign-3 +cp %{buildroot}%{_bindir}/pyrsa-verify %{buildroot}%{_bindir}/pyrsa-verify-3 +cp %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile-3 +cp %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile-3 +%endif # with_python3 + +%files -n python2-%{pypi_name} +%{!?_licensedir:%global license %doc} +%doc README.rst +%license LICENSE +%if 0%{!?with_python3} +%{_bindir}/pyrsa-priv2pub +%{_bindir}/pyrsa-keygen +%{_bindir}/pyrsa-encrypt +%{_bindir}/pyrsa-decrypt +%{_bindir}/pyrsa-sign +%{_bindir}/pyrsa-verify +%{_bindir}/pyrsa-encrypt-bigfile +%{_bindir}/pyrsa-decrypt-bigfile +%endif # with_python3 +%{_bindir}/pyrsa-priv2pub-2 +%{_bindir}/pyrsa-keygen-2 +%{_bindir}/pyrsa-encrypt-2 +%{_bindir}/pyrsa-decrypt-2 +%{_bindir}/pyrsa-sign-2 +%{_bindir}/pyrsa-verify-2 +%{_bindir}/pyrsa-encrypt-bigfile-2 +%{_bindir}/pyrsa-decrypt-bigfile-2 +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%if 0%{?with_python3} +%files -n python3-%{pypi_name} +%doc README.rst LICENSE +%{_bindir}/pyrsa-priv2pub +%{_bindir}/pyrsa-keygen +%{_bindir}/pyrsa-encrypt +%{_bindir}/pyrsa-decrypt +%{_bindir}/pyrsa-sign +%{_bindir}/pyrsa-verify +%{_bindir}/pyrsa-encrypt-bigfile +%{_bindir}/pyrsa-decrypt-bigfile +%{_bindir}/pyrsa-priv2pub-3 +%{_bindir}/pyrsa-keygen-3 +%{_bindir}/pyrsa-encrypt-3 +%{_bindir}/pyrsa-decrypt-3 +%{_bindir}/pyrsa-sign-3 +%{_bindir}/pyrsa-verify-3 +%{_bindir}/pyrsa-encrypt-bigfile-3 +%{_bindir}/pyrsa-decrypt-bigfile-3 +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%endif # with_python3 %check -%if %with python3 -pushd %{py3dir} +%{__python2} setup.py test +%if 0%{?with_python3} %{__python3} setup.py test -popd -%endif - -%{__python2} run_tests.py - -%files -%if 0%{?_licensedir:1} -%license LICENSE -%else -%doc LICENSE -%endif -%doc README.rst -%{_bindir}/pyrsa* -%{python2_sitelib}/rsa/ -%{python2_sitelib}/rsa-*.egg-info/ - -%if %with python3 -%files -n python3-rsa -%if 0%{?_licensedir:1} -%license LICENSE -%else -%doc LICENSE -%endif -%doc README.rst -%{_bindir}/python3-pyrsa* -%{python3_sitelib}/rsa/ -%{python3_sitelib}/rsa-*.egg-info/ -%endif +%endif # with_python3 %changelog +* Wed Jan 13 2016 Fabio Alessandro Locati - 3.3-1 +- Update to current upstream +- Fix CVE-2016-1494 +- Bring spec compliant with current policy + * Tue Dec 8 2015 Paul Howarth - 3.1.4-3 - Fix FTBFS (Debian Bug #804430) - Run the tests for both python2 and python3 @@ -133,5 +185,6 @@ popd * Sun May 26 2013 Yohan Graterol - 3.1.1-2 - Change license name, remove MANIFEST.in + * Sun May 19 2013 Yohan Graterol - 3.1.1-1 -- Initial packaging +- Initial packaging From dd5d866cb19e51d9e14ce3a941ab3f0b39a98fdc Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Wed, 13 Jan 2016 23:17:06 +0100 Subject: [PATCH 8/9] Add sources -.- --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ecf4404..ae4c0c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /rsa-3.1.1.tar.gz /rsa-3.1.4.tar.gz +/rsa-3.3.tar.gz diff --git a/sources b/sources index d88ec66..55fe1f4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b6b1c80e1931d4eba8538fd5d4de1355 rsa-3.1.4.tar.gz +513ed05c3b2038e8bc6d0686772455ab rsa-3.3.tar.gz From 6ddb37f87f08bb23b1934c6d8db14587b042b8c6 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Wed, 13 Jan 2016 23:29:50 +0100 Subject: [PATCH 9/9] Add python3-unittest2 dependency --- python-rsa.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-rsa.spec b/python-rsa.spec index 72add2e..ab97882 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -29,6 +29,7 @@ BuildRequires: python-pyasn1 >= 0.1.3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pyasn1 >= 0.1.3 +BuildRequires: python3-unittest2 %endif # with_python3 %description