From 62e7dc103f6b0a941231303bb3c7fa5f66b245de1937dd70913d748018aa06d9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Jun 2018 14:06:57 +0000 Subject: [PATCH] Accepting request 618971 from devel:languages:python:singlespec-staging Clean SPEC file OBS-URL: https://build.opensuse.org/request/show/618971 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jwcrypto?expand=0&rev=8 --- python-jwcrypto.changes | 11 +++++++++++ python-jwcrypto.spec | 34 +++++++++++++++++++++------------- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/python-jwcrypto.changes b/python-jwcrypto.changes index 89ad9f7..b3087b5 100644 --- a/python-jwcrypto.changes +++ b/python-jwcrypto.changes @@ -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 + diff --git a/python-jwcrypto.spec b/python-jwcrypto.spec index aff8def..6ffc5f7 100644 --- a/python-jwcrypto.spec +++ b/python-jwcrypto.spec @@ -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