forked from pool/python-Pyphen
- Switch to github tarball for the test.py so source_validators
actually works OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyphen?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
f7ce74f86a
commit
66625ce048
@@ -24,8 +24,7 @@ Summary: Pure Python module to hyphenate text
|
||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/Kozea/Pyphen
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pyphen/Pyphen-%{version}.tar.gz
|
||||
Source1: https://github.com/Kozea/Pyphen/blob/master/test.py
|
||||
Source: https://github.com/Kozea/Pyphen/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -42,7 +41,6 @@ This module is a fork of python-hyphenator, written by Wilbert Berendsen.
|
||||
|
||||
%prep
|
||||
%setup -q -n Pyphen-%{version}
|
||||
cp %{S:1} test.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,8 +50,7 @@ cp %{S:1} test.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \
|
||||
py.test-%{$python_bin_suffix} test.py}
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v test.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README
|
||||
|
||||
Reference in New Issue
Block a user