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