%global debug_package %{nil} # Global variables for github repository %global commit0 1ab9ef13ea27825c1d1aad0296466a1d590925a5 %global gittag0 master %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: FoxDot Version: 0.7.16 Release: 1%{?dist} Epoch: 1 Summary: FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. License: Creative Commons Attribution-ShareAlike 4.0 International Public License URL: https://github.com/Qirky/FoxDot Source0: https://github.com/Qirky/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildRequires: python3-devel python2-devel BuildRequires: supercollider-devel BuildRequires: python3-setuptools %description FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. It also comes with its own IDE, which means it can be used straight out of the box; all you need is Python and SuperCollider and you're ready to go! %package -n python2-foxdot Summary: FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. Requires: supercollider %description -n python2-foxdot FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. It also comes with its own IDE, which means it can be used straight out of the box; all you need is Python and SuperCollider and you're ready to go! %package -n python3-foxdot Requires: supercollider Summary: FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. %{?python_provide:%python_provide python3-foxdot} %description -n python3-foxdot FoxDot is a Python programming environment that provides a fast and user-friendly abstraction to SuperCollider. It also comes with its own IDE, which means it can be used straight out of the box; all you need is Python and SuperCollider and you're ready to go! %prep %setup -qn %{name}-%{commit0} rm -rf %{py3dir} cp -a . %{py3dir} %build %set_build_flags pushd %{py3dir} %{__python3} setup.py build popd %{__python2} setup.py build %install # first install python3 so the binaries are overwritten by the python2 ones pushd %{py3dir} %{__python3} setup.py install --root %{buildroot} mv %{buildroot}%{_bindir}/FoxDot %{buildroot}%{_bindir}/FoxDot3 pushd %{buildroot}%{_bindir} &> /dev/null popd &> /dev/null popd %{__python2} setup.py install --root %{buildroot} mv %{buildroot}%{_bindir}/FoxDot %{buildroot}%{_bindir}/FoxDot2 pushd %{buildroot}%{_bindir} &> /dev/null %files -n python3-foxdot %doc LICENSE MANIFEST README.md changelog %{python3_sitelib}/%{name}/__pycache__/* %{_bindir}/%{name}3 %dir %{python3_sitelib}/%{name} %{python3_sitelib}/%{name}/*.py %{python3_sitelib}/%{name}/demo %{python3_sitelib}/%{name}/lib %{python3_sitelib}/%{name}/osc %{python3_sitelib}/%{name}/snd %{python3_sitelib}/%{name}/rec/.null %{python3_sitelib}/%{name}-*.egg-info %files -n python2-foxdot %doc LICENSE MANIFEST README.md changelog %{_bindir}/%{name}2 %dir %{python2_sitelib}/%{name} %{python2_sitelib}/%{name}/*.py %{python2_sitelib}/%{name}/*.pyc %{python2_sitelib}/%{name}/*.pyo %{python2_sitelib}/%{name}/demo %{python2_sitelib}/%{name}/lib %{python2_sitelib}/%{name}/osc %{python2_sitelib}/%{name}/snd %{python2_sitelib}/%{name}/rec/.null %{python2_sitelib}/%{name}-*.egg-info %changelog * Wed Jun 5 2019 Yann Collette 0.7.16-1 - update to 0.7.16 * Tue Jun 4 2019 Yann Collette 0.7.1-1 - initial release of the spec file