forked from pool/python-mohawk
Accepting request 992127 from devel:languages:python
- Remove unneeded BuildRequires on mock. - Remove bcond for running tests. OBS-URL: https://build.opensuse.org/request/show/992127 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 2 03:39:31 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Remove unneeded BuildRequires on mock.
|
||||
- Remove bcond for running tests.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 24 13:27:46 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-mohawk
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
@@ -31,10 +30,7 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module six}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -42,8 +38,7 @@ Mohawk is an alternate Python implementation of the Hawk HTTP
|
||||
authorization scheme.
|
||||
|
||||
%prep
|
||||
%setup -q -n mohawk-%{version}
|
||||
%autopatch -p1
|
||||
%autosetup -p1 -n mohawk-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,10 +47,8 @@ authorization scheme.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%pyunittest
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user