# Created by pyp2rpm-3.3.7 %global pypi_name xmldiff %global pypi_version 2.6.3 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: Creates diffs of XML files License: MIT URL: https://github.com/Shoobx/xmldiff Source0: %{pypi_name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(black) BuildRequires: python3dist(coverage) BuildRequires: python3dist(flake8) BuildRequires: python3dist(lxml) >= 3.1 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) %description xmldiff is a library and a command-line utility for making diffs out of XML. This may seem like something that doesn't need a dedicated utility, but change detection in hierarchical data is very different from change detection in flat data. XML type formats are also not only used for computer readable data, it is also often used as a format for hierarchical data that can be rendered into... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(black) Requires: python3dist(coverage) Requires: python3dist(flake8) Requires: python3dist(lxml) >= 3.1 Requires: python3dist(setuptools) %description -n python3-%{pypi_name} xmldiff is a library and a command-line utility for making diffs out of XML. This may seem like something that doesn't need a dedicated utility, but change detection in hierarchical data is very different from change detection in flat data. XML type formats are also not only used for computer readable data, it is also often used as a format for hierarchical data that can be rendered into... %package -n python-%{pypi_name}-doc Summary: xmldiff documentation %description -n python-%{pypi_name}-doc Documentation for xmldiff %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst README.txt %{_bindir}/xmldiff %{_bindir}/xmlpatch %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE.txt %changelog * Mon Oct 23 2023 Aram Minasyan - 2.6.3-1 - Initial package.