diff options
| author | Ondřej Pohořelský <opohorel@redhat.com> | 2020-09-30 12:38:18 +0200 |
|---|---|---|
| committer | Ondřej Pohořelský <opohorel@redhat.com> | 2020-09-30 12:38:18 +0200 |
| commit | 3d17ce0d6b32412c12cb2a28b5b16ecbf3c80eb2 (patch) | |
| tree | 21b9fedaf8a2c7abd8ff863e298bedab0cd49c82 /python-patiencediff.spec | |
| parent | ccfd9c334749a1cdb94a2b616fefbd4e256df607 (diff) | |
| download | python-patiencediff-3d17ce0d6b32412c12cb2a28b5b16ecbf3c80eb2.tar.gz python-patiencediff-3d17ce0d6b32412c12cb2a28b5b16ecbf3c80eb2.tar.xz python-patiencediff-3d17ce0d6b32412c12cb2a28b5b16ecbf3c80eb2.zip | |
Python-patiencediff import
Diffstat (limited to 'python-patiencediff.spec')
| -rw-r--r-- | python-patiencediff.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/python-patiencediff.spec b/python-patiencediff.spec new file mode 100644 index 0000000..c8b9975 --- /dev/null +++ b/python-patiencediff.spec @@ -0,0 +1,54 @@ +%global pypi_name patiencediff +Name: python-%{pypi_name} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Python implementation of the patiencediff algorithm + +License: GNU GPLv2 or later +URL: https://www.breezy-vcs.org/ +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: gcc + +%global _description %{expand: +This package contains the implementation of the patiencediff algorithm, as +first described by Bram Cohen. Like Python's difflib, this module provides +both a convience unified_diff function for the generation of unified diffs of +text files as well as a SequenceMatcher that can be used on arbitrary +lists. Patiencediff provides a good balance of performance, nice output for +humans, and implementation simplicity.} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license COPYING +%doc README.rst +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Tue Sep 15 2020 Ondřej Pohořelský <opohorel@redhat.com> - 0.2.0-1 +- Initial package. |
