# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: Suyun # # SPDX-License-Identifier: MulanPSL-2.0 %global srcname annotated_types Name: python-%{srcname} Version: 0.7.0 Release: %autorelease Summary: Reusable constraint types to use with typing License: MIT URL: https://github.com/annotated-types/annotated-types #!RemoteAsset Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildSystem: pyproject BuildOption(install): %{srcname} BuildRequires: pyproject-rpm-macros BuildRequires: pkgconfig(python3) BuildRequires: python3dist(hatchling) BuildRequires: python3dist(pip) Provides: python3-%{srcname} %python_provide python3-%{srcname} %description This package provides metadata objects which can be used to represent common constraints such as upper and lower bounds on scalar values and collection sizes, a Predicate marker for runtime checks, and descriptions of how we intend these metadata to be interpreted. In some cases, we also note alternative representations which do not require this package. %generate_buildrequires %pyproject_buildrequires %files -f %{pyproject_files} %doc README.md %license LICENSE %changelog %{?autochangelog}