Accepting request 757117 from home:StefanBruens:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/757117 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=31
This commit is contained in:
parent
da4866685c
commit
60e3e866fe
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 14 22:15:42 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Use _multibuild for tests to reduce the build dependencies
|
||||||
|
and simplify bootstrap for e.g. rpmlint.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 14 11:40:28 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
Mon Oct 14 11:40:28 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-construct
|
# spec file for package python
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,14 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-construct
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%bcond_without test
|
||||||
|
%define psuffix -test
|
||||||
|
%else
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-construct%{?psuffix}
|
||||||
Version: 2.9.45
|
Version: 2.9.45
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A declarative parser/builder for binary data
|
Summary: A declarative parser/builder for binary data
|
||||||
@ -25,14 +32,16 @@ License: MIT
|
|||||||
URL: https://github.com/construct/construct
|
URL: https://github.com/construct/construct
|
||||||
Source: https://github.com/construct/construct/archive/v%{version}.tar.gz
|
Source: https://github.com/construct/construct/archive/v%{version}.tar.gz
|
||||||
Patch0: split_debug.patch
|
Patch0: split_debug.patch
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module arrow}
|
BuildRequires: %{python_module arrow}
|
||||||
BuildRequires: %{python_module pytest-benchmark}
|
BuildRequires: %{python_module pytest-benchmark}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: python2-enum34
|
BuildRequires: python2-enum34
|
||||||
|
%endif
|
||||||
Requires: python-arrow
|
Requires: python-arrow
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -58,19 +67,27 @@ rm -rf tests/gallery
|
|||||||
rm -rf tests/deprecated_gallery
|
rm -rf tests/deprecated_gallery
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{without test}
|
||||||
%python_build
|
%python_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{without test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{without test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/construct
|
%{python_sitelib}/construct
|
||||||
%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user