From 8d136394c55366be4192072695a698dfaa5f0cd382ad0d065a7e29eea80c2eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 Apr 2020 08:49:48 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certipy?expand=0&rev=2 --- python-certipy.spec | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/python-certipy.spec b/python-certipy.spec index c816ff1..11ec429 100644 --- a/python-certipy.spec +++ b/python-certipy.spec @@ -1,7 +1,7 @@ # # spec file for package python-certipy # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,23 +21,21 @@ Name: python-certipy Version: 0.1.3 Release: 0 -License: BSD-3-Clause Summary: Create and sign CAs and certificates -Url: https://github.com/LLNL/certipy -Group: Development/Languages/Python +License: BSD-3-Clause +URL: https://github.com/LLNL/certipy Source: https://files.pythonhosted.org/packages/source/c/certipy/certipy-%{version}.tar.gz # MANIFEST.in was merged; check next release Source1: https://raw.githubusercontent.com/LLNL/certipy/master/LICENSE -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pyOpenSSL +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -Requires: python-pyOpenSSL -BuildArch: noarch - %python_subpackages %description @@ -44,7 +43,7 @@ Create and sign CAs and certificates. %prep %setup -q -n certipy-%{version} -cp %SOURCE1 . +cp %{SOURCE1} . mv certipy/test . sed -i 's/\.\.certipy/certipy/' test/*.py @@ -56,8 +55,8 @@ sed -i 's/\.\.certipy/certipy/' test/*.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -mkdir ~/tmp -export TMP=$HOME/tmp +mkdir tmp +export TMP=$(pwd)/tmp %pytest test/ %files %{python_files}