forked from pool/python-param
- Switch to github tarball and enable tests.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
af745c9360
commit
e691cd5f2c
@@ -24,7 +24,9 @@ Summary: Declarative Python programming using Parameters
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://ioam.github.com/param/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/param/param-%{version}.tar.gz
|
||||
Source0: https://github.com/ioam/param/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -45,6 +47,7 @@ as part of other projects.
|
||||
|
||||
%prep
|
||||
%setup -q -n param-%{version}
|
||||
sed -i -e 's:version=get_setup_version("param"):version="%{version}":g' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -53,6 +56,9 @@ as part of other projects.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user