15
0

Accepting request 618972 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/618972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jwcrypto?expand=0&rev=4
This commit is contained in:
2018-06-27 08:21:36 +00:00
committed by Git OBS Bridge
2 changed files with 32 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 25 14:05:59 UTC 2018 - mcepl@suse.com
- Clean SPEC file
-------------------------------------------------------------------
Thu Aug 24 13:43:12 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Thu Aug 3 15:12:08 UTC 2017 - michael@stroeder.com
@@ -18,3 +28,4 @@ Fri Nov 11 17:51:23 UTC 2016 - michael@stroeder.com
- initial package of upstream release 0.3.1

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jwcrypto
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -16,20 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jwcrypto
Version: 0.4.2
Release: 0
Summary: Python module package implementing JOSE Web standards
License: LGPL-3.0
License: LGPL-3.0-only
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/jwcrypto
URL: https://github.com/latchset/jwcrypto
Source: https://files.pythonhosted.org/packages/source/j/jwcrypto/jwcrypto-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-cryptography
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
A Python implementation of the JOSE Working Group documents:
@@ -44,15 +48,19 @@ RFC 7520 - Examples of Protecting Content Using JSON Object Signing and Encrypti
%setup -q -n jwcrypto-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}/usr/share/doc/jwcrypto
%python_install
rm -rv %{buildroot}%{_datadir}/doc/jwcrypto
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%defattr(-,root,root,-)
%check
%python_expand py.test-%{$python_bin_suffix} jwcrypto
%files %{python_files}
%{python_sitelib}/*
%doc README.md LICENSE
%license LICENSE
%doc README.md
%changelog