diff --git a/python-deltasigma.spec b/python-deltasigma.spec index 91bedb0eb7..2fec59ce23 100644 --- a/python-deltasigma.spec +++ b/python-deltasigma.spec @@ -7,7 +7,7 @@ ############ General Information ############ Name: python-deltasigma Version: 0.2 -Release: 9%{?dist} +Release: 10%{?dist} Summary: The python2-deltasigma is a package that simulate Delta Sigma modulators Group: Applications/Engineering License: BSD @@ -19,44 +19,40 @@ BuildArch: noarch BuildRequires: python2-devel python-setuptools %if 0%{?with_python3} - BuildRequires: python3-devel python3-setuptools - %endif # if with_python3 +%global _description\ +Deltasigma synthesize, simulate, scale and map.\ +It can be use to implementable topologies Delta Sigma modulators. + +%description %_description + +%package -n python2-deltasigma +Summary: %{summary} Requires: numpy Requires: python-matplotlib >= 1.1.1 Requires: scipy >= 0.11.0 Requires: Cython +%{?python_provide:%python_provide python2-deltasigma} +%description -n python2-deltasigma %_description %if 0%{?with_python3} %package -n python3-deltasigma -Summary: The python3-deltasigma is a package that simulate Delta Sigma modulators -Group: Applications/Engineering +Summary: %{summary} Requires: python3-numpy Requires: python3-matplotlib Requires: python3-scipy Requires: python3-Cython +%{?python_provide:%python_provide python3-deltasigma} -%endif # if with_python3 - - -############ Description and Python3 Global Config ############ -%description -Deltasigma synthesize, simulate, scale and map. -It can be use to implementable topologies Delta Sigma modulators. - -%if 0%{?with_python3} - -%description -n python3-deltasigma -Deltasigma synthesize, simulate, scale and map. -It can be use to implementable topologies Delta Sigma modulators. +%description -n python3-deltasigma %_description +%endif # if with_python3 -%endif # with_python3 ############ Prep ############ %prep @@ -80,12 +76,12 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' ############ Build ############ %build -%{__python2} setup.py build +%py2_build %if 0%{?with_python3} pushd %{py3dir} -%{__python3} setup.py build +%py3_build popd %endif # with_python3 @@ -97,15 +93,15 @@ popd %if 0%{?with_python3} pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} +%py3_install popd %endif # with_python3 -%{__python2} setup.py install --skip-build --root %{buildroot} +%py2_install ############ Files ############ -%files +%files -n python2-deltasigma %doc README.md ROADMAP.md CHANGES.rst %license LICENSE %{python2_sitelib}/deltasigma @@ -123,6 +119,10 @@ popd ############ Changelog ############ %changelog +* Tue Aug 8 2017 Zbigniew Jędrzejewski-Szmek - 0.2-10 +- Python 2 binary package renamed to python2-deltasigma + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild