diff --git a/python-actdiag.spec b/python-actdiag.spec index f3cd044d06..a479ddf28b 100644 --- a/python-actdiag.spec +++ b/python-actdiag.spec @@ -6,7 +6,7 @@ Name: python-%{srcname} Version: 0.5.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: actdiag generates activity-diagram images from text License: ASL 2.0 @@ -36,20 +36,24 @@ BuildRequires: python3-pillow BuildRequires: python3-reportlab BuildRequires: python3-setuptools -Requires: python-blockdiag - -%description +%global _description\ %(cat %{SOURCE1}) +%description %_description + +%package -n python2-%{srcname} +Summary: %summary +Requires: python-blockdiag +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} %_description %package -n python3-%{srcname} Summary: %{summary} Requires: python3-blockdiag - -%description -n python3-%{srcname} -%(cat %{SOURCE1}) +%description -n python3-%{srcname} %_description This package installs the %{srcname} module for Python 3. @@ -62,7 +66,7 @@ rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|' +find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|' %build @@ -92,7 +96,7 @@ pushd %{py3dir} popd -%files +%files -n python2-%{srcname} %doc LICENSE %{_bindir}/%{srcname} %{_mandir}/man1/%{srcname}.1* @@ -101,7 +105,7 @@ popd %files -n python3-%{srcname} -%{_pkgdocdir} +%doc LICENSE %{_bindir}/%{srcname}-%{python3_version} %{_mandir}/man1/%{srcname}-%{python3_version}.1* %{python3_sitelib}/__pycache__/* @@ -110,6 +114,10 @@ popd %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.5.4-6 +- Python 2 binary package renamed to python2-actdiag + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.5.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild