Skip to content

Commit c79a03a

Browse files
committed
initial specfile
0 parents  commit c79a03a

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# RPM build artifacts
2+
*.rpm
3+
*.src.rpm
4+
*.tar.gz
5+
*.log
6+
7+
# Build directories
8+
BUILD/
9+
BUILDROOT/
10+
RPMS/
11+
SOURCES/
12+
SPECS/
13+
SRPMS/
14+
*-build/
15+
16+
# Mock build results
17+
results_*/
18+
19+
# Editor files
20+
*~
21+
*.swp
22+
*.swo
23+
.*.sw?
24+
.vscode/
25+
.idea/

python-debugpy.spec

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

Comments
 (0)