15
0

- 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
This commit is contained in:
Tomáš Chvátal
2019-02-12 08:47:58 +00:00
committed by Git OBS Bridge
parent 043245f0ad
commit b98c9f2e9b
2 changed files with 8 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 12 08:47:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Run the fdupes call properly to avoid rpmlint warnings
-------------------------------------------------------------------
Mon Feb 11 04:45:28 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -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
}