# Enable Python dependency generation %{?python_enable_dependency_generator} %global upstream_name pudb %global module_name pudb Name: python-pudb Version: 2017.1.4 Release: 1%{?dist} Summary: A full-screen, console-based Python debugger License: MIT URL: http://mathema.tician.de/software/pudb Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %global _description\ PuDB is a full-screen, console-based visual debugger for Python.\ \ Its goal is to provide all the niceties of modern GUI-based debuggers in a more\ lightweight and keyboard-friendly package. PuDB allows you to debug code right\ where you write and test it--in a terminal. If you've worked with the excellent\ (but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look\ familiar. %description %_description %package -n python2-%{upstream_name} Summary: %summary %{?python_provide:%python_provide python2-%{upstream_name}} %description -n python2-%{upstream_name} %_description %package -n python3-%{upstream_name} Summary: A full-screen, console-based Python debugger %{?python_provide:%python_provide python3-%{upstream_name}} %description -n python3-%{upstream_name} %_description %prep %setup -q -n %{upstream_name}-%{version} rm -rf %{module_name}.egg-info sed -i '1{\@^#! /usr/bin/env python@d}' pudb/debugger.py rm -rf %{py3dir} cp -a . %{py3dir} %build %py2_build pushd %{py3dir} %py3_build popd %install %py2_install pushd %{py3dir} %py3_install popd %files -n python2-%{upstream_name} %doc README.rst %license LICENSE %{python2_sitelib}/%{module_name} %{python2_sitelib}/%{module_name}*.egg-info %{_bindir}/pudb %files -n python3-%{upstream_name} %doc README.rst %license LICENSE %{python3_sitelib}/%{module_name} %{python3_sitelib}/%{module_name}*.egg-info %{_bindir}/pudb3 %changelog * Mon Mar 19 2018 Neal Gompa - 2017.1.4-1 - Rebase to pudb-2017.1.4 - Clean up spec * Fri Feb 09 2018 Fedora Release Engineering - 2015.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 27 2018 Iryna Shcherbina - 2015.3-9 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2015.3-8 - Python 2 binary package renamed to python2-pudb See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 2015.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2015.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2015.3-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2015.3-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 2015.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 2015.3-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Oct 14 2015 Dhiru Kholia - 2015.3-1 - update to pudb-2015.3 * Thu Jun 18 2015 Fedora Release Engineering - 2014.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2014.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 2014.1-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Sat Mar 15 2014 Dhiru Kholia - 2014.1-1 - update to pudb-2014.1 * Mon Dec 09 2013 Dhiru Kholia - 2013.5.1-1 - update to pudb-2013.5.1 * Wed Nov 13 2013 Dhiru Kholia - 2013.4-1 - update to pudb-2013.4 * Tue Sep 10 2013 Dhiru Kholia - 2013.3.6-2 - replaced {python_sitelib} with {python2_sitelib} * Fri Sep 06 2013 Dhiru Kholia - 2013.3.6-1 - update to upstream release 2013.3.6 * Fri Sep 06 2013 Dhiru Kholia - 2013.3.5-5 - replaced {__python} with {__python2} * Thu Sep 05 2013 Dhiru Kholia - 2013.3.5-4 - make layout of install section consistent with that of build section * Thu Sep 05 2013 Dhiru Kholia - 2013.3.5-3 - removed the unnecessary attr directive - fixed the location of the sed command invocation * Thu Sep 05 2013 Dhiru Kholia - 2013.3.5-2 - implemented initial fixes suggested in BZ #1004257 - removed unused EL5 support, removed invalid BuildRoot, fixed BuildRequires * Wed Sep 04 2013 Dhiru Kholia - 2013.3.5-1 - initial version