15
0
forked from pool/python-calmjs

Accepting request 765716 from devel:languages:python

- fix build in SLE-15: set en_US.UTF-8 encoding
- %check the package

OBS-URL: https://build.opensuse.org/request/show/765716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs?expand=0&rev=2
This commit is contained in:
2020-01-20 21:54:14 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 14 15:04:12 UTC 2020 - pgajdos@suse.com
- fix build in SLE-15: set en_US.UTF-8 encoding
- %check the package
-------------------------------------------------------------------
Mon Jan 6 15:32:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -34,6 +34,10 @@ Requires: python-calmjs.types
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: nodejs-common
# /SECTION
%python_subpackages
%description
@@ -48,9 +52,11 @@ rm src/calmjs/tests/test_npm.py
rm src/calmjs/tests/test_yarn.py
%build
export LANG=en_US.UTF-8
%python_build
%install
export LANG=en_US.UTF-8
%python_install
%python_clone -a %{buildroot}%{_bindir}/calmjs
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/testing
@@ -58,14 +64,10 @@ rm src/calmjs/tests/test_yarn.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
#export LANG=en_US.UTF8
#%%{python_expand #first link the stuff for the weird layout
#ln -s %{$python_sitelib}/calmjs/types src/calmjs/
#ln -s %{$python_sitelib}/calmjs/parse src/calmjs/
#pushd src
#$python -m unittest calmjs.tests.make_suite -v
#popd
#}
export LANG=en_US.UTF-8
pushd src
%pytest -k 'not (test_setup_egg_info or test_build_calmjs_artifact)'
popd
%post
%python_install_alternative calmjs