From b98c9f2e9bae5279e89618043492ee8f68c47b75e7c8d3c53a7da8f52dd7305d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 12 Feb 2019 08:47:58 +0000 Subject: [PATCH] - Run the fdupes call properly to avoid rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bashate?expand=0&rev=2 --- python-bashate.changes | 5 +++++ python-bashate.spec | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/python-bashate.changes b/python-bashate.changes index 0c54d9f..5a16435 100644 --- a/python-bashate.changes +++ b/python-bashate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 12 08:47:40 UTC 2019 - Tomáš Chvátal + +- Run the fdupes call properly to avoid rpmlint warnings + ------------------------------------------------------------------- Mon Feb 11 04:45:28 UTC 2019 - John Vandenberg diff --git a/python-bashate.spec b/python-bashate.spec index 047dafc..eef5e43 100644 --- a/python-bashate.spec +++ b/python-bashate.spec @@ -32,14 +32,13 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testrepository} BuildRequires: %{python_module testscenarios} BuildRequires: %{python_module testtools} +BuildRequires: fdupes BuildRequires: python-argparse Requires: python-Babel >= 0.9.6 BuildArch: noarch %ifpython2 -# This is not python2-argparse because Leap 42.3 has python-argparse Requires: python-argparse %endif - %python_subpackages %description @@ -67,13 +66,10 @@ and will continue to evolve over time. rm -rf %{buildroot}%{$python_sitelib}/bashate/tests sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py } +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# The tests are failing when building both Python 2 & 3 -# See test failures in test runner python-testrepository -# and https://build.opensuse.org/request/show/673188 -%{python_expand # -rm -rf .testrepository +%{python_expand rm -rf .testrepository PYTHON=$python $python %{_bindir}/testr init PYTHON=$python $python %{_bindir}/testr run }