From a576e99872ab3c93f2eeefb522cdf259fd01bb05 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Dec 10 2021 16:00:42 +0000 Subject: Do package Cython sources (.pyx,.pxd,.pxi) Upstream points out that these are useful for tracebacks. We also no longer have to exclude C sources (.c, .h), as upstream now takes care of that. --- diff --git a/python-asyncpg.spec b/python-asyncpg.spec index 6986caa..f8c08e1 100644 --- a/python-asyncpg.spec +++ b/python-asyncpg.spec @@ -129,23 +129,6 @@ k="${k-}${k+ and }not TestFlake8" %files -n python3-asyncpg -f %{pyproject_files} -# The Cython implementation files (.pyx) and Cython-generated C sources (.c) -# are included in the installed package. These are definitely not needed. -%exclude %{python3_sitearch}/asyncpg/*/*.pyx -%exclude %{python3_sitearch}/asyncpg/*/*/*.pyx -%exclude %{python3_sitearch}/asyncpg/*/*.c -%exclude %{python3_sitearch}/asyncpg/*/*/*.c - -# The C header files (.h) and Cython definition and include files (.pxd and -# .pxi) would be needed to compile Cython extension code using the internal -# APIs of the package. The upstream documentation does not indicate that this -# is an intended use, so we do not ship them. If we did, we would need to put -# them in a new subpackage called python3-asyncpg-devel. -%exclude %{python3_sitearch}/asyncpg/*/*.pxd -%exclude %{python3_sitearch}/asyncpg/*/*/*.pxd -%exclude %{python3_sitearch}/asyncpg/*/*.pxi -%exclude %{python3_sitearch}/asyncpg/*/*.h -%exclude %{python3_sitearch}/asyncpg/*/*/*.h %files doc