From 0bcb0209309c49e95a8df6267c7229cad4226fcfc8712b7a33282940e6e182c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 29 Jul 2020 10:41:46 +0000 Subject: [PATCH] Accepting request 823277 from home:bnavigator:branches:devel:languages:python - remove c source file from package (rpmlint error) - needs typing-extensions OBS-URL: https://build.opensuse.org/request/show/823277 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=27 --- python-yarl.changes | 6 ++++++ python-yarl.spec | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/python-yarl.changes b/python-yarl.changes index da822a5..7cda6fa 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 28 21:28:25 UTC 2020 - Benjamin Greiner + +- remove c source file from package (rpmlint error) +- needs typing-extensions + ------------------------------------------------------------------- Tue Jul 28 19:15:09 UTC 2020 - Ondřej Súkup diff --git a/python-yarl.spec b/python-yarl.spec index c455d76..b2eaf00 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -35,9 +35,11 @@ BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-idna >= 2.0 Requires: python-multidict >= 4.0 +Requires: python-typing_extensions >= 3.7.4 %python_subpackages %description @@ -52,6 +54,9 @@ export CFLAGS="%{optflags}" %install %python_install +# devel file in non-devel-package +%python_expand rm %{buildroot}%{$python_sitearch}/yarl/_quoting_c.c +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check %pytest_arch @@ -59,7 +64,7 @@ export CFLAGS="%{optflags}" %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%pycache_only %{python_sitearch}/yarl/__pycache__/* -%{python_sitearch}/* +%{python_sitearch}/yarl +%{python_sitearch}/yarl-%{version}-py*.egg-info %changelog