## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 vascpy Name: python-%{pypi_name} Version: 0.1.2 Release: %{autorelease} Summary: Vasculature API %global forgeurl https://github.com/BlueBrain/%{pypi_name} %global tag v%{version} %forgemeta License: Apache-2.0 URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: vascpy is a python library for reading, writing, and manipulating large-scale vasculature graphs. There are two alternative graph representations available: a section-centered and an edge-centered one. It supports the following respective formats: - H5 Morphology - SONATA node population of edges The vascpy library provides two classes: `PointVasculature` and `SectionVasculature` that allow for reading and writing edge-centered and section-centered datasets respectively, as well as converting between them.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %pyproject_extras_subpkg -n python3-%{pypi_name} all %prep %forgeautosetup -p1 # `python-igraph` has been renamed to just `igraph` # https://pypi.org/project/python-igraph/ # https://pypi.org/project/igraph/ sed -i 's/python-igraph/igraph/' setup.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -x all %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check # Test fails on s390x %ifarch s390x k="${k-}${k+ and }not test_convert__sonata_morphology_cycle" %endif %pytest -v ${k+-k } "${k-}" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md AUTHORS.txt %{_bindir}/%{pypi_name} %changelog ## START: Generated by rpmautospec * Fri Nov 22 2024 Sandro - 0.1.2-1 - Package import ## END: Generated by rpmautospec