14
0
forked from pool/python-stestr

- fix build for anything older than Tumbleweed by explicitly setting

utf8 locale

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stestr?expand=0&rev=26
This commit is contained in:
2019-10-30 13:18:01 +00:00
committed by Git OBS Bridge
parent 75397ed18f
commit 5d4f56c6c1
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 30 13:17:37 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- fix build for anything older than Tumbleweed by explicitly setting
utf8 locale
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 10 09:51:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Tue Sep 10 09:51:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -78,14 +78,17 @@ and has examples.
rm stestr/tests/repository/test_sql.py rm stestr/tests/repository/test_sql.py
%build %build
export LC_ALL="en_US.UTF8"
%python_build %python_build
%install %install
export LC_ALL="en_US.UTF8"
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/stestr %python_clone -a %{buildroot}%{_bindir}/stestr
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
export LC_ALL="en_US.UTF8"
# test_empty_with_pretty_out - edge case not triggered in OBS # test_empty_with_pretty_out - edge case not triggered in OBS
%{python_expand mkdir build/bin %{python_expand mkdir build/bin
for filepath in %{buildroot}/%{_bindir}/stestr*-%{$python_bin_suffix}; do for filepath in %{buildroot}/%{_bindir}/stestr*-%{$python_bin_suffix}; do