15
0
Tomáš Chvátal
2020-04-06 08:49:48 +00:00
committed by Git OBS Bridge
parent 7d46af6d8e
commit 8d136394c5

View File

@@ -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}