Name: python-unittest-xml-reporting Version: 4.0.0 Release: %autorelease Summary: unittest-based test runner with Ant/JUnit like XML reporting. License: BSD-2-Clause URL: http://github.com/xmlrunner/unittest-xml-reporting/tree/master/ Source: %{pypi_source unittest_xml_reporting} BuildArch: noarch BuildRequires: python3-devel # tests BuildRequires: python3dist(django) BuildRequires: python3dist(pytest) # docs BuildRequires: make BuildRequires: python3dist(docutils) BuildRequires: python3dist(sphinx) BuildRequires: texinfo %global _description %{expand: A unittest test runner that can save test results to XML files in xUnit format. The files can be consumed by a wide range of tools, such as build systems, IDEs and continuous integration servers.} %description %_description %package -n python3-unittest-xml-reporting Summary: %{summary} %description -n python3-unittest-xml-reporting %_description %prep %autosetup -p1 -n unittest_xml_reporting-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel pushd docs make texinfo pushd _build pushd texinfo ls makeinfo --docbook unittest-xml-reporting.texi popd popd popd %install %pyproject_install %pyproject_save_files -l xmlrunner mkdir -p %{buildroot}%{_datadir}/help/en/python-unittest-xml-reporting install -m644 docs/_build/texinfo/unittest-xml-reporting.xml %{buildroot}%{_datadir}/help/en/python-unittest-xml-reporting/ %check %pyproject_check_import %pytest %files -n python3-unittest-xml-reporting -f %{pyproject_files} %doc README.md %dir %{_datadir}/help/en/ %{_datadir}/help/en/python-unittest-xml-reporting/ %changelog %autochangelog