Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit python-pyjwkest for openSUSE:Factory
Hello community,

here is the log from the commit of package python-pyjwkest for openSUSE:Factory
checked in at 2019-04-23 14:35:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyjwkest (Old)
and /work/SRC/openSUSE:Factory/.python-pyjwkest.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyjwkest"

Tue Apr 23 14:35:33 2019 rev:1 rq:695465 version:1.4.0

Changes:
--------
New Changes file:

--- /dev/null 2019-04-04 01:10:41.205915624 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyjwkest.new.5536/python-pyjwkest.changes
2019-04-23 14:35:33.829452027 +0200
@@ -0,0 +1,14 @@
+-------------------------------------------------------------------
+Thu Apr 11 12:41:06 UTC 2019 - John Vandenberg <jayvdb@xxxxxxxxx>
+
+- Activate test suite, using GitHub archive for the tests
+- Rename peek.py to jwpeek.py
+- Add missing runtime dependencies
+- Use fdupes, fix executable bits and hashbangs
+- Remove build dependency on devel
+
+-------------------------------------------------------------------
+Fri Jul 21 20:10:53 UTC 2017 - michael@xxxxxxxxxxxx
+
+- initial package of upstream release 1.4.0 (Python Singlespec)
+

New:
----
pyjwkest-1.4.0.tar.gz
python-pyjwkest.changes
python-pyjwkest.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyjwkest.spec ++++++
#
# spec file for package python-pyjwkest
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyjwkest
Version: 1.4.0
Release: 0
Summary: Python implementation of JWT, JWE, JWS and JWK
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/rohe/pyjwkest
Source:
https://github.com/rohe/pyjwkest/archive/v1.4.0.tar.gz#/pyjwkest-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-future
Requires: python-pycryptodomex
Requires: python-requests
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
BuildRequires: %{python_module future}
BuildRequires: %{python_module pycryptodomex}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module six}
BuildRequires: %{python_module pytest-runner}
%python_subpackages

%description
Python implementation of JWT, JWE, JWS and JWK.

%prep
%setup -q -n pyjwkest-%{version}
# https://github.com/rohe/pyjwkest/pull/1
chmod a+x script/gen_symkey.py
sed -i '1 {s:^#!:#!/usr/bin/env python:}' script/gen_symkey.py

sed -i '1 {/^#!/d}' src/jwkest/*.py
# This interferes with pytest collection, and is unused.
rm debug/A256KW/jwe_test.py

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

# The peek.py script is very tiny, so avoid it reserving 'peek.py' as
# upstream 'peek' may relinquish it https://github.com/dcramer/peek/issues/1
mv %{buildroot}%{_bindir}/peek.py %{buildroot}%{_bindir}/jwpeek.py

%python_clone -a %{buildroot}%{_bindir}/gen_symkey.py
%python_clone -a %{buildroot}%{_bindir}/jwdecrypt.py
%python_clone -a %{buildroot}%{_bindir}/jwenc.py
%python_clone -a %{buildroot}%{_bindir}/jwpeek.py
%python_clone -a %{buildroot}%{_bindir}/jwk_create.py
%python_clone -a %{buildroot}%{_bindir}/jwk_export.py
%python_clone -a %{buildroot}%{_bindir}/jwkutil.py

%check
%python_exec setup.py pytest

%post
%python_install_alternative gen_symkey.py jwdecrypt.py jwenc.py jwpeek.py
jwk_create.py jwk_export.py jwkutil.py

%postun
%python_uninstall_alternative gen_symkey.py jwdecrypt.py jwenc.py jwpeek.py
jwk_create.py jwk_export.py jwkutil.py

%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/pyjwkest*
%{python_sitelib}/jwkest
%python_alternative %{_bindir}/gen_symkey.py
%python_alternative %{_bindir}/jwdecrypt.py
%python_alternative %{_bindir}/jwenc.py
%python_alternative %{_bindir}/jwpeek.py
%python_alternative %{_bindir}/jwk_create.py
%python_alternative %{_bindir}/jwk_export.py
%python_alternative %{_bindir}/jwkutil.py

%changelog

< Previous Next >
This Thread
  • No further messages