15
0
forked from pool/python-parse

- No need to fetch license anymore, it is in the tarball

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parse?expand=0&rev=17
This commit is contained in:
Tomáš Chvátal
2020-03-15 09:41:46 +00:00
committed by Git OBS Bridge
parent 321eae2ddc
commit 01de2c7213
3 changed files with 6 additions and 23 deletions

View File

@@ -25,8 +25,6 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/r1chardj0n3s/parse
Source0: https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz
# https://github.com/r1chardj0n3s/parse/issues/82
Source1: https://raw.githubusercontent.com/r1chardj0n3s/parse/master/LICENSE
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -39,7 +37,6 @@ Parse strings using a specification based on the Python format() syntax.
%prep
%setup -q -n parse-%{version}
chmod a-x README.rst
cp %{SOURCE1} .
%build
%python_build
@@ -49,7 +46,7 @@ cp %{SOURCE1} .
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test -v
%python_exec -m unittest discover -v
%files %{python_files}
%license LICENSE