## 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 vascpy Name: python-%{pypi_name} Version: 0.1.1 Release: %{autorelease} Summary: Vasculature API %global forgeurl https://github.com/BlueBrain/%{pypi_name} %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 %pytest -v %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md AUTHORS.txt %{_bindir}/%{pypi_name} %changelog ## START: Generated by rpmautospec * Thu May 23 2024 Sandro - 0.1.1-1 - Initial package ## END: Generated by rpmautospec