%define name mock %define version 5.1.0 %define release 1 Summary: Rolling backport of unittest.mock for all Pythons Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.gz License: UNKNOWN Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Testing Cabal Url: http://mock.readthedocs.org/en/latest/ BuildRequires: python3-devel, python3-setuptools, python3-pbr %description mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. %package -n python3-%{name} Summary: Python 3 module of Rolling backport of unittest.mock for all Pythons %description -n python3-%{name} mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. %prep %autosetup -n %{name}-%{version} %build %py3_build %install %py3_install rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt rm -rf %{buildroot}/usr/share/doc/%{name}/ %clean rm -rf %{buildroot} %files -n python3-%{name} %license LICENSE.txt %{python3_sitelib}/mock %{python3_sitelib}/mock*.egg-info %changelog * Sun Mar 3 2024 log2timeline development team 5.1.0-1 - Auto-generated