From 6bbc2a92ca19ca3e44a87db28da1289a7a993356 Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Fri, 31 Jul 2026 00:20:33 -0300 Subject: [PATCH] remove both C++ and Cython source files --- python-cartopy.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-cartopy.spec b/python-cartopy.spec index 28c8cbc..b1fadb0 100644 --- a/python-cartopy.spec +++ b/python-cartopy.spec @@ -90,16 +90,18 @@ export FORCE_CYTHON=1 SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %install %pyproject_install -# Remove C++ source files installed into site-packages +# Remove C++ and Cython source files installed into site-packages find %{buildroot}%{python3_sitearch}/cartopy/ -name "*.cpp" -delete +find %{buildroot}%{python3_sitearch}/cartopy/ -name "*.pyx" -delete # Fix shebang in non-executable script sed -i -e '/^#!/d' %{buildroot}%{python3_sitearch}/cartopy/feature/download/__main__.py %pyproject_save_files -l %{srcname} -# Remove deleted C++ source files from pyproject_files list +# Remove deleted C++ and Cython source files from pyproject_files list sed -i '/trace\.cpp/d' %{pyproject_files} +sed -i '/trace\.pyx/d' %{pyproject_files} mkdir -p %{buildroot}%{_datadir}/cartopy/shapefiles/natural_earth/ for theme in physical cultural; do