diff --git a/python-pythran.changes b/python-pythran.changes index 73707f9..46b9761 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -1,7 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 28 18:47:52 UTC 2022 - Ben Greiner + +- Fix errors uncovered by staging: + * Mention python-pythran-rpmlintrc + * also make :test-py* noarch so that no debuginfo package fails + ------------------------------------------------------------------- Sun Jan 23 15:10:57 UTC 2022 - Ben Greiner - Initial specfile for 0.11 * debundling inspired by Fedora package: https://src.fedoraproject.org/rpms/pythran/blob/rawhide/f/pythran.spec -- Required by scipy 1.7 \ No newline at end of file +- Required by scipy 1.7 diff --git a/python-pythran.spec b/python-pythran.spec index b508759..475cf64 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -41,7 +41,6 @@ ExclusiveArch: x86_64 %if "%{flavor}" == "" %define psuffix %{nil} %bcond_with test -BuildArch: noarch %endif %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 @@ -52,7 +51,8 @@ Summary: Ahead of Time compiler for numeric kernels License: BSD-3-Clause URL: https://github.com/serge-sans-paille/pythran # Tests are only availble in github archive -Source: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz +Source0: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz +Source99: python-pythran-rpmlintrc BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -79,6 +79,7 @@ BuildRequires: %{python_module wheel} BuildRequires: unzip BuildRequires: gcc-c++ %endif +BuildArch: noarch %python_subpackages %description @@ -114,8 +115,8 @@ sed -i -e 's/-O0/-O1/g' -e 's/-Werror/-w/g' pythran/tests/__init__.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif -%check %if %{with test} +%check export CFLAGS="%{optflags}" # crashes the xdist workers donttest="test_operator_intersection"