%global srcname sifts %bcond tests 0 Name: python-%{srcname} Version: 1.0.0 Release: 2%{?dist} Summary: Simple full text and semantic search License: MIT URL: https://pypi.org/project/sifts/ Source: %{pypi_source} BuildArch: noarch %global _description %{expand: Sifts is a simple but powerful Python package for managing and querying document collections with support for both SQLite and PostgreSQL databases.} %description %_description %py_provides python3-%{srcname} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: git %if %{with tests} BuildRequires: pytest, python3-pytest-docker %endif %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files 'sifts*' %check %if %{with tests} %pyproject_check_import %pytest %endif # Note that there is no %%files section for the unversioned python module %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Thu Jan 23 2025 Al Stone - 1.0.0-2 - Enable %check; dependencies for tests don't all have working test cases, and docker tests are done; deferring for now. * Mon Jan 20 2025 Al Stone - 1.0.0-1 - Initial pass at packaging v1.0.0