[packages/python-debugpy] Rel 7; python3 now in python3-debugpy.spec
arekm
arekm at pld-linux.org
Sun May 4 18:14:39 CEST 2025
commit 67c122112cb529a82d82972e535e7a4eb582a5cd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 17:49:03 2025 +0200
Rel 7; python3 now in python3-debugpy.spec
python-debugpy.spec | 99 +++--------------------------------------------------
1 file changed, 4 insertions(+), 95 deletions(-)
---
diff --git a/python-debugpy.spec b/python-debugpy.spec
index 740a163..ab3ec1e 100644
--- a/python-debugpy.spec
+++ b/python-debugpy.spec
@@ -1,14 +1,11 @@
# TODO: unvendor pydevd? (then debugpy would be noarch)
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
Summary: Implementation of the Debug Adapter Protocol for Python 2
Summary(pl.UTF-8): Implementacja protokołu Debug Adapter Protocol dla Pythona 2
Name: python-debugpy
Version: 1.3.0
-Release: 6
+Release: 7
License: MIT with EPL v1.0, PSF v2, BSD parts
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/debugpy/
@@ -16,18 +13,10 @@ Source0: https://files.pythonhosted.org/packages/source/d/debugpy/debugpy-%{vers
# Source0-md5: 84900a0cbb80b172d75909b4edcbc736
URL: https://pypi.org/project/debugpy/
BuildRequires: libstdc++-devel
-%if %{with python2}
BuildRequires: python-Cython
BuildRequires: python-devel >= 1:2.7
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-Cython
-BuildRequires: python3-devel >= 1:3.5
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: unzip
@@ -40,18 +29,6 @@ debugpy is an implementation of the Debug Adapter Protocol for Python.
%description -l pl.UTF-8
debugpy to implementacja protokołu Debug Adapter Protocol dla Pythona.
-%package -n python3-debugpy
-Summary: Implementation of the Debug Adapter Protocol for Python 3
-Summary(pl.UTF-8): Implementacja protokołu Debug Adapter Protocol dla Pythona 3
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-debugpy
-debugpy is an implementation of the Debug Adapter Protocol for Python.
-
-%description -n python3-debugpy -l pl.UTF-8
-debugpy to implementacja protokołu Debug Adapter Protocol dla Pythona.
-
%prep
%setup -q -n debugpy-%{version}
@@ -67,42 +44,23 @@ cd src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac
%endif
cd ../../../../../..
-%if %{with python2}
%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install \
--install-lib=%{py_sitedir}
%py_postclean
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/debugpy/ThirdPartyNotices.txt
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.{c,cpython-*.so}
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/{.gitignore,pydevd_frame_evaluator.{c,cpython-*.so},release_mem.h}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython*.{c,so}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/{.gitignore,pydevd_frame_evaluator.c,release_mem.h}
%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/{README.txt,common,linux_and_mac/{.gitignore,attach.cpp,compile_*},winappdbg,windows}
-%endif
-
-%if %{with python3}
-%py3_install \
- --install-lib=%{py3_sitedir}
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/debugpy/ThirdPartyNotices.txt
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.{c,so}
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/{.gitignore,pydevd_frame_evaluator.c,release_mem.h}
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/{README.txt,common,linux_and_mac/{.gitignore,attach.cpp,compile_*},winappdbg,windows}
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc DESCRIPTION.md LICENSE README.md src/debugpy/ThirdPartyNotices.txt
@@ -114,7 +72,7 @@ rm -rf $RPM_BUILD_ROOT
%{py_sitedir}/debugpy/_vendored/pydevd/_pydev_runfiles
%dir %{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle
%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter
-%attr(755,root,root) %{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.so
+#%attr(755,root,root) %{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.so
%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd
%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx
%{py_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/*.py[co]
@@ -141,52 +99,3 @@ rm -rf $RPM_BUILD_ROOT
%{py_sitedir}/debugpy/server
%{py_sitedir}/debugpy/*.py[co]
%{py_sitedir}/debugpy-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-debugpy
-%defattr(644,root,root,755)
-%doc DESCRIPTION.md LICENSE README.md src/debugpy/ThirdPartyNotices.txt
-%dir %{py3_sitedir}/debugpy
-%dir %{py3_sitedir}/debugpy/_vendored
-%dir %{py3_sitedir}/debugpy/_vendored/pydevd
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydev_bundle
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydev_imps
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydev_runfiles
-%dir %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter
-%attr(755,root,root) %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.cpython-*.so
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/*.py
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_bundle/__pycache__
-%dir %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored
-%attr(755,root,root) %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.cpython-*.so
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/*.py
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/*.pyx
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_frame_eval/__pycache__
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydev_ipython
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydev_sitecustomize
-%dir %{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process
-%ifarch %{ix86} %{x8664}
-%attr(755,root,root) %{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_*.so
-%endif
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.py
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process/__pycache__
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_concurrency_analyser
-%{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_plugins
-%{py3_sitedir}/debugpy/_vendored/pydevd/*.py
-%{py3_sitedir}/debugpy/_vendored/pydevd/__pycache__
-%{py3_sitedir}/debugpy/_vendored/*.py
-%{py3_sitedir}/debugpy/_vendored/__pycache__
-%{py3_sitedir}/debugpy/adapter
-%{py3_sitedir}/debugpy/common
-%{py3_sitedir}/debugpy/launcher
-%{py3_sitedir}/debugpy/server
-%{py3_sitedir}/debugpy/*.py
-%{py3_sitedir}/debugpy/__pycache__
-%{py3_sitedir}/debugpy-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-debugpy.git/commitdiff/67c122112cb529a82d82972e535e7a4eb582a5cd
More information about the pld-cvs-commit
mailing list