15
0
forked from pool/python-calmjs
Tomáš Chvátal
2020-01-20 08:49:26 +00:00
committed by Git OBS Bridge
parent cb1655d484
commit f11c58b6cc

View File

@@ -29,15 +29,15 @@ BuildRequires: %{python_module calmjs.types}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: nodejs-common
# /SECTION
Requires: python-calmjs.parse >= 1.0.0
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
@@ -52,11 +52,11 @@ rm src/calmjs/tests/test_npm.py
rm src/calmjs/tests/test_yarn.py
%build
LANG=en_US.UTF-8
export LANG=en_US.UTF-8
%python_build
%install
LANG=en_US.UTF-8
export LANG=en_US.UTF-8
%python_install
%python_clone -a %{buildroot}%{_bindir}/calmjs
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/testing
@@ -64,12 +64,9 @@ LANG=en_US.UTF-8
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
pushd src
%if 0%{?suse_version} > 1500
%pytest -k 'not (test_setup_egg_info or test_build_calmjs_artifact)'
%else
%python_expand $python -m pytest -k 'not (test_setup_egg_info or test_build_calmjs_artifact)'
%endif
popd
%post