- Swith to multibuild in order to avoid full python buildcycle
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=27
This commit is contained in:
parent
695f6465c0
commit
9b2249f70a
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 8 03:36:36 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Swith to multibuild in order to avoid full python buildcycle
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 7 13:52:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Sat Mar 7 13:52:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -17,23 +17,33 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pyfakefs
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-pyfakefs%{psuffix}
|
||||||
Version: 3.7.2
|
Version: 3.7.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Fake file system that mocks the Python file system modules
|
Summary: Fake file system that mocks the Python file system modules
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/jmcgeheeiv/pyfakefs
|
URL: https://github.com/jmcgeheeiv/pyfakefs
|
||||||
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pathlib2 >= 2.3.2}
|
|
||||||
BuildRequires: %{python_module pytest >= 2.8.6}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{pythons}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python2-scandir >= 1.8
|
|
||||||
Requires: python
|
Requires: python
|
||||||
Requires: python-pathlib2 >= 2.3.2
|
Requires: python-pathlib2 >= 2.3.2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module pathlib2 >= 2.3.2}
|
||||||
|
BuildRequires: %{python_module pytest >= 2.8.6}
|
||||||
|
BuildRequires: %{pythons}
|
||||||
|
BuildRequires: python2-scandir >= 1.8
|
||||||
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-scandir >= 1.8
|
Requires: python-scandir >= 1.8
|
||||||
%endif
|
%endif
|
||||||
@ -52,17 +62,23 @@ no modification to work with pyfakefs.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
%python_exec setup.py test
|
%python_expand PYTHONPATH=$(pwd) $python -m pyfakefs.tests.all_tests
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES* README*
|
%doc CHANGES* README*
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user