diff --git a/python-falcon.changes b/python-falcon.changes index b19ac0b..5e7912a 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 22 16:25:06 UTC 2021 - Matej Cepl + +- Don't create %%{python_sitelib}/examples directory, that' just + evil. + ------------------------------------------------------------------- Wed Nov 17 12:09:52 UTC 2021 - Andreas Schneider diff --git a/python-falcon.spec b/python-falcon.spec index 959d254..27e3e4e 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -69,9 +69,7 @@ Requires: python-python-mimeparse Requires: python-six Requires(post): update-alternatives Requires(postun):update-alternatives -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Suggests: %{name}-doc -%endif BuildArch: noarch %python_subpackages @@ -96,6 +94,8 @@ sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/inspect_app.py falcon/bench chmod a-x falcon/bench/dj/manage.py # we don't want to require rapidjson just for testing rm tests/test_media_handlers.py +# Hidden files are evil +rm examples/asgilook/.coveragerc %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -111,7 +111,9 @@ popd %python_clone -a %{buildroot}%{_bindir}/falcon-bench %python_clone -a %{buildroot}%{_bindir}/falcon-inspect-app %python_clone -a %{buildroot}%{_bindir}/falcon-print-routes -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand rm -rf %{buildroot}%{$python_sitelib}/examples + %fdupes %{buildroot}%{$python_sitelib} +} %if 0%{?suse_version} >= 1550 # We do not have the following package on Leap 15.3 @@ -129,12 +131,12 @@ export LANG=en_US.UTF8 %{python_uninstall_alternative falcon-bench falocn-inspect-app falcon-print-routes} %files %{python_files} -%doc README.rst CHANGES.rst +%doc README.rst CHANGES.rst examples/ %license LICENSE %python_alternative %{_bindir}/falcon-bench %python_alternative %{_bindir}/falcon-inspect-app %python_alternative %{_bindir}/falcon-print-routes -%{python_sitelib}/* +%{python_sitelib}/falcon* %files -n %{name}-doc %doc docs/_build/html