diff --git a/python-testscenarios.spec b/python-testscenarios.spec index ed2e2c3..8faa942 100644 --- a/python-testscenarios.spec +++ b/python-testscenarios.spec @@ -2,65 +2,58 @@ Name: python-%{pypi_name} Version: 0.5.0 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Testscenarios, a pyunit extension for dependency injection License: ASL 2.0 and BSD -URL: https://launchpad.net/testscenarios -Source0: https://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +URL: https://github.com/testing-cabal/testscenarios +Source: %pypi_source BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-fixtures -BuildRequires: python3-setuptools -BuildRequires: python3-pbr -BuildRequires: python3-testtools -%global _description\ -testscenarios provides clean dependency injection for python unittest style\ -tests. This can be used for interface testing (testing many implementations via\ -a single test suite) or for classic dependency injection (provide tests with\ -dependencies externally to the test code itself, allowing easy testing in\ -different situations). - -%description %_description - -%package -n python3-%{pypi_name} -Summary: Testscenarios, a pyunit extension for dependency injection -Requires: python3-pbr -Requires: python3-testtools - -%description -n python3-%{pypi_name} +%global _description %{expand: testscenarios provides clean dependency injection for python unittest style tests. This can be used for interface testing (testing many implementations via a single test suite) or for classic dependency injection (provide tests with dependencies externally to the test code itself, allowing easy testing in -different situations). +different situations).} + +%description %{_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} %{_description} %prep %setup -q -n %{pypi_name}-%{version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info # Remove unknown test options from setup.py sed -i '/^buffer = 1$/d' setup.cfg sed -i '/^catch = 1$/d' setup.cfg +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} %check -%{__python3} setup.py test +%{python3} setup.py test -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} %license Apache-2.0 BSD %doc GOALS HACKING NEWS README doc/ -%{python3_sitelib}/* %changelog +* Sat Apr 30 2022 Carl George - 0.5.0-25 +- Convert to pyproject macros + * Fri Jan 21 2022 Fedora Release Engineering - 0.5.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild