diff --git a/ahkab.spec b/ahkab.spec index 80e127875e..fa46beb828 100644 --- a/ahkab.spec +++ b/ahkab.spec @@ -7,7 +7,7 @@ ############ General Information ############ Name: ahkab Version: 0.18 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A SPICE-like electronic circuit simulator written in Python Group: Applications/Engineering License: GPLv2 @@ -24,9 +24,6 @@ BuildRequires: python3-devel python3-setuptools %endif # if with_python3 -Requires: sympy python-matplotlib numpy -Requires: python >= 2.6 - %if 0%{?with_python3} %package -n python3-ahkab @@ -39,10 +36,23 @@ Requires: python3-numpy %endif # if with_python3 ############ Description and Python3 Global Config ############ -%description -A SPICE-like electronic circuit simulator written in Python. +%global _description\ +A SPICE-like electronic circuit simulator written in Python.\ It can be used to do AC analysis, DC sweep, Transient analysis and more. +%description %_description + +%package -n python2-ahkab +Summary: %summary +Requires: sympy python-matplotlib numpy +Requires: python >= 2.6 +%{?python_provide:%python_provide python2-ahkab} +# Remove before F30 +Provides: ahkab = %{version}-%{release} +Obsoletes: ahkab < %{version}-%{release} + +%description -n python2-ahkab %_description + %if 0%{?with_python3} %description -n python3-ahkab @@ -93,7 +103,7 @@ popd %{__python2} setup.py install --skip-build --root %{buildroot} ############ Files ############ -%files +%files -n python2-ahkab %doc README.md COPYING %{python2_sitelib}/ahkab/ %{python2_sitelib}/ahkab-*.egg-info @@ -110,6 +120,10 @@ popd ############ Changelog ############ %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.18-9 +- Python 2 binary package renamed to python2-ahkab + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Wed Jul 26 2017 Fedora Release Engineering - 0.18-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild