15
0

- Use github source

- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-node-semver?expand=0&rev=3
This commit is contained in:
2017-12-25 21:55:57 +00:00
committed by Git OBS Bridge
parent d96b9cd923
commit f33edcfbfc
4 changed files with 16 additions and 6 deletions

View File

@@ -24,8 +24,9 @@ Summary: Port of node-semver
License: MIT
Group: Development/Languages/Python
Url: https://github.com/podhmo/python-semver
Source: https://files.pythonhosted.org/packages/source/n/node-semver/node-semver-%{version}.tar.gz
Source: https://github.com/podhmo/python-semver/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -36,7 +37,7 @@ BuildArch: noarch
python version of node-semver (https://github.com/isaacs/node-semver)
%prep
%setup -q -n node-semver-%{version}
%setup -q -n python-semver-%{version}
%build
%python_build
@@ -45,8 +46,11 @@ python version of node-semver (https://github.com/isaacs/node-semver)
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc README.rst
%doc LICENSE README.rst
%{python_sitelib}/*
%changelog