%global pypi_name hydra %global with_tests 1 Name: python-%{pypi_name} Version: 1.3.8 Release: 1%{?dist} Summary: A framework to elegantly configure complex applications License: MIT URL: https://github.com/hydra-ecosystem/%{pypi_name} Source0: %url/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz # For Fedora specific java locations Patch0: hydra-system-antlr4.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: antlr4 BuildRequires: java-headless BuildRequires: python3dist(antlr4-python3-runtime) # For check %if 0%{?with_tests} BuildRequires: python3-pytest %endif %global _description %{expand: Hydra is a framework for elegantly configuring complex applications. } %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} sed -i 's/antlr4-python3-runtime==4.9.*/antlr4-python3-runtime>=4.9/' requirements/requirements.txt %generate_buildrequires %if 0%{?with_tests} %pyproject_buildrequires -r %else %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %if 0%{?with_tests} %check %pyproject_check_import %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog * Sun Nov 01 2026 Peter Robinson - 1.3.8-1 - Update to 1.3.8, minor spec updates * Thu Sep 24 2026 Peter Robinson - 1.3.7-1 - Update to 1.3.7, update URL, drop redundent dep * Wed Oct 29 2025 Peter Robinson - 1.3.2-1 - Initial package