|
| 1 | +%global pypi_name debugpy |
| 2 | +%global pypi_version 1.8.20 |
| 3 | + |
| 4 | +Name: python-%{pypi_name} |
| 5 | +Version: %{pypi_version} |
| 6 | +Release: 1%{?dist} |
| 7 | +Summary: An implementation of the Debug Adapter Protocol for Python |
| 8 | + |
| 9 | +License: MIT |
| 10 | +URL: https://github.com/microsoft/debugpy |
| 11 | +Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
| 12 | + |
| 13 | +BuildRequires: python3-devel |
| 14 | +BuildRequires: pyproject-rpm-macros |
| 15 | +BuildRequires: python3-pip |
| 16 | +BuildRequires: python3-setuptools |
| 17 | +BuildRequires: python3-wheel |
| 18 | +BuildRequires: gcc |
| 19 | +BuildRequires: gcc-c++ |
| 20 | + |
| 21 | +# For building Cython extensions |
| 22 | +BuildRequires: python3-cython |
| 23 | + |
| 24 | +%description |
| 25 | +debugpy is an implementation of the Debug Adapter Protocol for Python 3. |
| 26 | +It enables debugging Python applications through a standardized protocol, |
| 27 | +allowing various IDEs and editors to connect and control execution. |
| 28 | + |
| 29 | +%package -n python3-%{pypi_name} |
| 30 | +Summary: %{summary} |
| 31 | +%{?python_provide:%python_provide python3-%{pypi_name}} |
| 32 | + |
| 33 | +%description -n python3-%{pypi_name} |
| 34 | +debugpy is an implementation of the Debug Adapter Protocol for Python 3. |
| 35 | +It enables debugging Python applications through a standardized protocol, |
| 36 | +allowing various IDEs and editors to connect and control execution. |
| 37 | + |
| 38 | +%prep |
| 39 | +%autosetup -n %{pypi_name}-%{version} |
| 40 | + |
| 41 | +%build |
| 42 | +%pyproject_wheel |
| 43 | + |
| 44 | +%install |
| 45 | +%pyproject_install |
| 46 | +%pyproject_save_files %{pypi_name} |
| 47 | + |
| 48 | +%files -n python3-%{pypi_name} -f %{pyproject_files} |
| 49 | +%doc README.md |
| 50 | +%{_bindir}/debugpy |
| 51 | +%{_bindir}/debugpy-adapter |
| 52 | + |
| 53 | +%changelog |
| 54 | +* Thu Mar 26 2026 Bruno <bciconel@redhat.com> - 1.8.20-1 |
| 55 | +- Initial package for Fedora, CentOS Stream, and EPEL |
0 commit comments