%global srcname ufl %global pypi_name fenics-ufl Name: python-%{pypi_name} Version: 2026.1.0 Release: %autorelease Summary: Unified Form Language for finite element variational forms License: LGPL-3.0-or-later URL: https://github.com/FEniCS/ufl Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: UFL (Unified Form Language) is a domain specific language for declaration of finite element discretizations of variational forms. More precisely, it defines a flexible interface for choosing finite element spaces and defining expressions for weak forms in a notation close to mathematical notation. UFL is part of the FEniCSx project and is shared with the Firedrake project.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l ufl %check %pyproject_check_import %pytest test/ -q %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md ChangeLog.md AUTHORS %changelog %autochangelog