From bd80881954485350c84f591fecf1ebc6b807a7852797dc518a48d7e70c652969 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 25 Oct 2022 05:24:51 +0000 Subject: [PATCH] - Also remove the conditional definition of python_module. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flasgger?expand=0&rev=10 --- python-flasgger.changes | 1 + python-flasgger.spec | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-flasgger.changes b/python-flasgger.changes index 105ea63..2eb65f5 100644 --- a/python-flasgger.changes +++ b/python-flasgger.changes @@ -2,6 +2,7 @@ Sun Oct 23 10:03:15 UTC 2022 - John Vandenberg - Re-activate test suite +- Also remove the conditional definition of python_module. ------------------------------------------------------------------- Thu Apr 28 07:23:15 UTC 2022 - Markéta Machová diff --git a/python-flasgger.spec b/python-flasgger.spec index 08d2d5c..019381c 100644 --- a/python-flasgger.spec +++ b/python-flasgger.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flasgger Version: 0.9.5 Release: 0 @@ -51,15 +50,20 @@ Flasgger is a Flask extension to extract OpenAPI=Specification from all Flask vi %prep %setup -q -n flasgger-%{version} + # Examples directory is not included in PyPI release rm tests/test_examples.py +find . -name .DS_Store -print -delete + %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand chmod -x %{buildroot}%{$python_sitelib}/flasgger/ui2/static/lang/*.js +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest tests/