%?python_enable_dependency_generator %global srcname conda-content-trust %global pkgname conda_content_trust Name: python-%{srcname} Version: 0.1.3 Release: 1%{?dist} Summary: Signing and verification tools for conda License: BSD-3-Clause URL: https://github.com/conda/%{srcname} Source0: https://github.com/conda/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: Based on The Update Framework (TUF), conda-content-trust is intended to ensure that when users in the conda ecosystem obtain a package or data about that package, they can know whether or not it is trustworthy (e.g. originally comes from a reliable source and has not been tampered with). A basic library and basic CLI are included to provide signing, verification, and trust delegation functionality. This exists as an alteration of TUF because of the very particular needs of the conda ecosystem. (Developers are encouraged to just use TUF whenever possible!) This tool is general purpose. It is currently used in conda 4.10.1+ to verify package metadata signatures when they are available.} %description %{_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-cryptography BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-pytest %description -n python%{python3_pkgversion}-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} # do not run coverage in pytest sed -i -E '/--(no-)?cov/d' setup.cfg %build %py3_build %install %py3_install %check %{pytest} -v tests %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{_bindir}/conda-content-trust %{python3_sitelib}/%{pkgname}-*.egg-info/ %{python3_sitelib}/%{pkgname}/ %changelog * Mon Jul 17 2023 Orion Poplawski - 0.1.3-1 - Initial Fedora package