forked from pool/python-fann2
Accepting request 827287 from home:jayvdb:py-submit
- Remove %bcond_without test and note upstream issue that no test suite exists - Tidy spec OBS-URL: https://build.opensuse.org/request/show/827287 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fann2?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 17 09:21:07 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove %bcond_without test and note upstream issue that no test
|
||||
suite exists
|
||||
- Tidy spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 4 11:33:33 UTC 2018 - alarrosa@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-fann2
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,32 +12,26 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-fann2
|
||||
Version: 1.1.2
|
||||
Release: 0
|
||||
License: LGPL-2.1
|
||||
Summary: Fast Artificial Neural Network Library (fann) bindings
|
||||
Url: https://github.com/FutureLinkCorporation/fann2
|
||||
License: LGPL-2.1-only
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/FutureLinkCorporation/fann2
|
||||
Source: https://files.pythonhosted.org/packages/source/f/fann2/fann2-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(fann)
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose > 1.3.0}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: unzip
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: swig
|
||||
BuildRequires: pkgconfig(fann)
|
||||
|
||||
%python_subpackages
|
||||
|
||||
@@ -63,14 +57,12 @@ export CFLAGS="%{optflags}"
|
||||
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann2_wrap.cxx
|
||||
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann_cpp_subclass.h
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
#%%check - no tests exist upstream
|
||||
# https://github.com/FutureLinkCorporation/fann2/issues/30
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user