From a1ebfd6f96bdc21742ff46e26c98a7328011b993 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Nov 06 2015 15:02:37 +0000 Subject: Ship the pygal_gen.py script in python3-pygal. Several reasons for this: * It uses /usr/bin/python3 so it was creating a dep on python3 in the python2 package * It wouldn't function without manual user intervention as it needed the python3-pygal package but didn't have a dep on that. --- diff --git a/python-pygal.spec b/python-pygal.spec index 109ed2d..26cb94b 100644 --- a/python-pygal.spec +++ b/python-pygal.spec @@ -6,7 +6,7 @@ Name: python-pygal Version: 2.0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A python svg graph plotting library Group: Development/Libraries @@ -80,8 +80,14 @@ popd pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} popd +mv %{buildroot}%{_bindir}/pygal_gen.py pygal_gen.py.py3 +%endif + +%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} + +%if 0%{?with_python3} +mv pygal_gen.py.py3 %{buildroot}%{_bindir}/pygal_gen.py %endif -%{__python} setup.py install -O1 --skip-build --root=%{buildroot} %check %if 0%{?fedora} @@ -99,18 +105,30 @@ popd %files %doc README +%if !0%{?with_python3} +%{_bindir}/pygal_gen.py +%endif %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}* -%{_bindir}/pygal_gen.py %if 0%{?with_python3} %files -n python3-pygal %doc README +%if 0%{?with_python3} +%{_bindir}/pygal_gen.py +%endif %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-* %endif %changelog +* Fri Nov 6 2015 Toshio Kuratomi - 2.0.8-2 +- Ship the pygal_gen.py script in python3-pygal. Several reasons for this: + * It uses /usr/bin/python3 so it was creating a dep on python3 in the + python2 package + * It wouldn't function without manual user intervention as it needed + the python3-pygal package but didn't have a dep on that. + * Tue Oct 20 2015 Ralph Bean - 2.0.8-1 - new version