diff --git a/.gitignore b/.gitignore index 099c62f..1ec031a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /jwcrypto-0.3.0.tar.gz /jwcrypto-0.3.1.tar.gz /jwcrypto-0.3.2.tar.gz +/jwcrypto-0.4.1.tar.gz diff --git a/jwcrypto-0.3.2.tar.gz.sha512sum.txt b/jwcrypto-0.3.2.tar.gz.sha512sum.txt deleted file mode 100644 index cbb045a..0000000 --- a/jwcrypto-0.3.2.tar.gz.sha512sum.txt +++ /dev/null @@ -1 +0,0 @@ -3a66407a8bb590f8fdd02d87a9c2991118c7a332e4210f08e6af2b38b813ec2bc30afbcea75270d1ee0f70d0fff29fe98731270a8a457b2ca87e576ebe3046e9 jwcrypto-0.3.2.tar.gz diff --git a/python-jwcrypto.spec b/python-jwcrypto.spec index d35d8a2..13b8937 100644 --- a/python-jwcrypto.spec +++ b/python-jwcrypto.spec @@ -5,27 +5,26 @@ %define module_name jwcrypto Name: python-jwcrypto -Version: 0.3.2 -Release: 3%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: Implements JWK,JWS,JWE specifications using python-cryptography License: LGPLv3+ -URL: https://github.com/simo5/%{module_name} -Source0: https://github.com/simo5/%{module_name}/releases/download/v%{version}/jwcrypto-%{version}.tar.gz -Source1: https://github.com/simo5/%{module_name}/releases/download/v%{version}/jwcrypto-%{version}.tar.gz.sha512sum.txt +URL: https://github.com/latchset/%{module_name} +Source0: https://github.com/latchset/%{module_name}/releases/download/v%{version}/%{module_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-cryptography -BuildRequires: python-nose -Requires: python-cryptography +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-cryptography +BuildRequires: python2-pytest +Requires: python2-cryptography %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-cryptography -BuildRequires: python3-nose +BuildRequires: python3-pytest %endif %description @@ -41,7 +40,6 @@ Implements JWK,JWS,JWE specifications using python3-cryptography %endif %prep -grep `sha512sum %{SOURCE0}` %{SOURCE1} || (echo "Checksum invalid!" && exit 1) %setup -q -n %{module_name}-%{version} @@ -53,7 +51,10 @@ grep `sha512sum %{SOURCE0}` %{SOURCE1} || (echo "Checksum invalid!" && exit 1) %check -nosetests +pytest-2 jwcrypto/test*.py +%if 0%{?with_python3} +pytest-3 jwcrypto/test*.py +%endif %install @@ -83,6 +84,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{module_name}/__pycache__/tests{,-cookboo %changelog +* Mon Jul 24 2017 Christian Heimes - 0.4.1-1 +- Upstream release 0.4.1 + * Sat Feb 11 2017 Fedora Release Engineering - 0.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 134fb6f..d51c8d8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b171735481fa5103ca237a6ad4dceb47 jwcrypto-0.3.2.tar.gz +SHA512 (jwcrypto-0.4.1.tar.gz) = 7059492cecb9fd722eaa947f29db3c190a627ae8f90f45f2c1e7feca312bd8951c3279f4c8d88a29a41240f75db42e8fc11055d075b920e70a1c13060c275e93