forked from pool/python-binaryornot
Remove unnecessary dependency on unittest2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-binaryornot?expand=0&rev=12
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests run too slowly on some architectures
|
||||
%ifarch %{ix86} x86_64 ppc64 ppc64le
|
||||
%ifarch %{ix86} x86_64 ppc64 ppc64le
|
||||
%bcond_without test
|
||||
%else
|
||||
%bcond_with test
|
||||
@@ -29,7 +29,7 @@ Release: 0
|
||||
Summary: Python package to check if a file is binary or text
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/audreyr/binaryornot
|
||||
URL: https://github.com/audreyr/binaryornot
|
||||
Source: https://files.pythonhosted.org/packages/source/b/binaryornot/binaryornot-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE remove_hypothesis_tests.patch -- remove hypothesis-based tests
|
||||
Patch0: remove_hypothesis_tests.patch
|
||||
@@ -39,10 +39,8 @@ BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-unittest2
|
||||
Requires: python-chardet >= 3.0.2
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -69,8 +67,8 @@ $python tests/test_check.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS.rst HISTORY.rst LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc AUTHORS.rst HISTORY.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user