File python-gvar.spec of Package python-gvar

#
# spec file for package python-gvar
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-gvar
Version:        13.1.7
Release:        0
Summary:        Utilities for manipulating correlated Gaussian random variables
License:        GPL-3.0-only
URL:            https://github.com/gplepage/gvar
Source:         https://files.pythonhosted.org/packages/source/g/gvar/gvar-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module Cython >= 3.0}
BuildRequires:  %{python_module numpy >= 2.0}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools >= 39.2.0}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module numpy >= 2.0}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module scipy >= 1.11}
# /SECTION
BuildRequires:  fdupes
Requires:       python-numpy >= 2.0
Requires:       python-scipy >= 1.11
%python_subpackages

%description
Utilities for manipulating correlated Gaussian random variables.

%prep
%autosetup -p1 -n gvar-%{version}

%build
export CFLAGS="%{optflags} -Wno-incompatible-pointer-types"
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}

%check
%pytest_arch

%files %{python_files}
%doc CHANGES.txt README.rst
%license LICENSE.txt LICENSE.txt
%{python_sitearch}/gvar
%{python_sitearch}/gvar-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by