83 lines
2.4 KiB
RPMSpec
83 lines
2.4 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package python-ase
|
||
|
|
#
|
||
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||
|
|
#
|
||
|
|
# 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-ase
|
||
|
|
Version: 3.26.0
|
||
|
|
Release: 0
|
||
|
|
Summary: Atomic Simulation Environment
|
||
|
|
License: LGPL-2.1-or-later
|
||
|
|
URL: https://wiki.fysik.dtu.dk/ase
|
||
|
|
Source: https://files.pythonhosted.org/packages/source/a/ase/ase-%{version}.tar.gz
|
||
|
|
BuildRequires: %{python_module base >= 3.9}
|
||
|
|
BuildRequires: %{python_module pip}
|
||
|
|
BuildRequires: %{python_module setuptools}
|
||
|
|
BuildRequires: %{python_module wheel}
|
||
|
|
BuildRequires: python-rpm-macros
|
||
|
|
# SECTION test requirements
|
||
|
|
BuildRequires: %{python_module matplotlib >= 3.3.4}
|
||
|
|
BuildRequires: %{python_module numpy >= 1.19.5}
|
||
|
|
BuildRequires: %{python_module pytest >= 7}
|
||
|
|
BuildRequires: %{python_module pytest-xdist >= 2.1}
|
||
|
|
BuildRequires: %{python_module scipy >= 1.6.0}
|
||
|
|
BuildRequires: %{python_module tk}
|
||
|
|
# /SECTION
|
||
|
|
BuildRequires: fdupes
|
||
|
|
Requires: python-matplotlib >= 3.3.4
|
||
|
|
Requires: python-numpy >= 1.19.5
|
||
|
|
Requires: python-scipy >= 1.6.0
|
||
|
|
Requires(post): update-alternatives
|
||
|
|
Requires(postun): update-alternatives
|
||
|
|
BuildArch: noarch
|
||
|
|
%python_subpackages
|
||
|
|
|
||
|
|
%description
|
||
|
|
Atomic Simulation Environment
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -p1 -n ase-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%pyproject_wheel
|
||
|
|
|
||
|
|
%install
|
||
|
|
%pyproject_install
|
||
|
|
%python_clone -a %{buildroot}%{_bindir}/ase
|
||
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
|
||
|
|
%check
|
||
|
|
# No scipy CODATA
|
||
|
|
donttest="test_units"
|
||
|
|
# Broken with current release, remove on upgrade
|
||
|
|
donttest+=" or test_pw_input_write_nested_flat or test_fix_scaled"
|
||
|
|
%pytest -k "not ($donttest)"
|
||
|
|
|
||
|
|
%post
|
||
|
|
%python_install_alternative ase
|
||
|
|
|
||
|
|
%postun
|
||
|
|
%python_uninstall_alternative ase
|
||
|
|
|
||
|
|
%files %{python_files}
|
||
|
|
%doc CHANGELOG.rst README.rst
|
||
|
|
%license COPYING COPYING.LESSER LICENSE
|
||
|
|
%python_alternative %{_bindir}/ase
|
||
|
|
%{python_sitelib}/ase
|
||
|
|
%{python_sitelib}/ase-%{version}.dist-info
|
||
|
|
|
||
|
|
%changelog
|