| |
@@ -3,7 +3,7 @@
|
| |
|
| |
Name: python-%{modname}
|
| |
Version: 0.7.3
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Python library to parse and interact with unified diffs (patches)
|
| |
License: MIT
|
| |
URL: http://github.com/matiasb/python-unidiff
|
| |
@@ -14,7 +14,17 @@
|
| |
Patch1: 0001-use-setuptools-console_scripts-for-usr-bin-unidiff.patch
|
| |
|
| |
%description
|
| |
- python-unidiff is a Python library to parse and interact with unified diffs
|
| |
+ python-unidiff is a Python library to parse and interact with unified diffs
|
| |
+ (patches).
|
| |
+
|
| |
+ %package -n python2-%{modname}
|
| |
+ %{?python_provide:%python_provide python2-%{modname}}
|
| |
+ Summary: %{summary}
|
| |
+ BuildRequires: python2-devel
|
| |
+ BuildRequires: python2-setuptools
|
| |
+
|
| |
+ %description -n python2-%{modname}
|
| |
+ python-unidiff is a Python library to parse and interact with unified diffs
|
| |
(patches).
|
| |
|
| |
%package -n python%{python3_pkgversion}-%{modname}
|
| |
@@ -24,7 +34,7 @@
|
| |
BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
|
| |
%description -n python%{python3_pkgversion}-%{modname}
|
| |
- python-unidiff is a Python library to parse and interact with unified diffs
|
| |
+ python-unidiff is a Python library to parse and interact with unified diffs
|
| |
(patches).
|
| |
|
| |
%prep
|
| |
@@ -32,14 +42,23 @@
|
| |
rm -r unidiff.egg-info
|
| |
|
| |
%build
|
| |
+ %py2_build
|
| |
%py3_build
|
| |
|
| |
%install
|
| |
+ %py2_install
|
| |
%py3_install
|
| |
|
| |
%check
|
| |
+ PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m unittest discover -s tests/
|
| |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m unittest discover -s tests/
|
| |
|
| |
+ %files -n python2-%{modname}
|
| |
+ %license LICENSE
|
| |
+ %doc README.rst HISTORY
|
| |
+ %{python2_sitelib}/%{modname}
|
| |
+ %{python2_sitelib}/%{modname}*.egg-info
|
| |
+
|
| |
%files -n python%{python3_pkgversion}-%{modname}
|
| |
%license LICENSE
|
| |
%doc README.rst HISTORY
|
| |
@@ -48,6 +67,9 @@
|
| |
%{python3_sitelib}/%{modname}*.egg-info
|
| |
|
| |
%changelog
|
| |
+ * Thu Jan 26 2023 Carl George <carl@george.computer> - 0.7.3-2
|
| |
+ - Restore python2 subpackage, resolves rhbz#2087918
|
| |
+
|
| |
* Fri May 06 2022 Matej Focko <mfocko@redhat.com> - 0.7.3-1
|
| |
- New upstream release 0.7.3
|
| |
|
| |