## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name ANNarchy # Running all tests is time consuming. Allow skipping of tests. %bcond tests 1 Name: python-annarchy Version: 4.8.0.2 Release: %{autorelease} Summary: Artificial Neural Networks architect %global forgeurl https://github.com/ANNarchy/ANNarchy %global tag %{version} %forgemeta # ANNarchy/thirdparty/randutils.hpp is MIT License: GPL-2.0-or-later AND MIT URL: %forgeurl Source: %forgesource # https://github.com/ANNarchy/ANNarchy/issues/21 Patch: fix_tests.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: ANNarchy (Artificial Neural Networks architect) is a parallel and hybrid simulator for distributed rate-coded or spiking neural networks. The core of the library is written in C++ and distributed using OpenMP or CUDA. It provides an interface in Python for the definition of the networks. NOTE: Since CUDA support requires proprietary Nvidia drivers, this package only supports OpenMP and single thread.} %description %_description %package -n python3-annarchy Summary: %{summary} Requires: (flexiblas-openblas-openmp or openblas-openmp) # Also `tensorflow` and `tensorboardX` (not availabale in Fedora) Recommends: python3dist(lxml) Recommends: pandoc %description -n python3-annarchy %_description %package devel Summary: Header files for %{pypi_name} Requires: python3-annarchy = %{version}-%{release} %description devel This package provides the header files for %{pypi_name}. %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %if %{with tests} %pytest -v tests/test_openmp.py %pytest -v tests/test_single_thread.py %endif %files -n python3-annarchy -f %{pyproject_files} %doc README.md AUTHORS CHANGELOG %changelog ## START: Generated by rpmautospec * Sun Jun 02 2024 Sandro - 4.8.0.2-1 - Initial package ## END: Generated by rpmautospec