From a2c2451a017f3a5d67b640ef84ce0989d0be3162a5cac50d9d5b3f440be6678d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 13 Sep 2018 13:30:39 +0000 Subject: [PATCH] - Do not distribute generic examples folder OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqpstorm?expand=0&rev=8 --- python-amqpstorm.changes | 5 +++++ python-amqpstorm.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-amqpstorm.changes b/python-amqpstorm.changes index a1d6350..8d58905 100644 --- a/python-amqpstorm.changes +++ b/python-amqpstorm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 13 13:30:19 UTC 2018 - Tomáš Chvátal + +- Do not distribute generic examples folder + ------------------------------------------------------------------- Mon Sep 10 06:56:40 UTC 2018 - Tomáš Chvátal diff --git a/python-amqpstorm.spec b/python-amqpstorm.spec index d11cd43..5da2b0e 100644 --- a/python-amqpstorm.spec +++ b/python-amqpstorm.spec @@ -56,14 +56,15 @@ export LANG="en_US.UTF8" export LANG="en_US.UTF8" %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm -%python_expand %fdupes %{buildroot}%{$python_sitelib}/examples +# remove generic named examples from sitelib +%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples %check %python_expand nosetests-%{$python_bin_suffix} amqpstorm/tests/unit %files %{python_files} %license LICENSE -%doc README.rst +%doc README.rst examples %{python_sitelib}/* %changelog