forked from pool/python-itemadapter
- Switch to multibuild
- Fix the sitelib/sitearch and all the dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
47f03804ec
commit
14bd353e97
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 8 06:54:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to multibuild
|
||||||
|
- Fix the sitelib/sitearch and all the dependencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 7 23:30:56 UTC 2020 - Jacob W <jacob@jacobwinski.com>
|
Tue Jul 7 23:30:56 UTC 2020 - Jacob W <jacob@jacobwinski.com>
|
||||||
|
|
||||||
|
@@ -18,24 +18,31 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-itemadapter
|
Name: python-itemadapter%{psuffix}
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Wrapper for data container objects
|
Summary: Wrapper for data container objects
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/scrapy/itemadapter
|
URL: https://github.com/scrapy/itemadapter
|
||||||
Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz#/itemadapter-%{version}.tar.gz
|
Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz#/itemadapter-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module Scrapy >= 2.2.0}
|
|
||||||
BuildRequires: %{python_module attrs}
|
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module setuptools >= 40.5.0}
|
BuildRequires: %{python_module setuptools >= 40.5.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(libffi)
|
|
||||||
Requires: python-attrs
|
Requires: python-attrs
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module Scrapy >= 2.0}
|
||||||
|
BuildRequires: %{python_module attrs}
|
||||||
|
BuildRequires: %{python_module pytest >= 5.4}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -47,20 +54,25 @@ manner, regardless of their underlying implementation.
|
|||||||
%setup -q -n itemadapter-%{version}
|
%setup -q -n itemadapter-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/itemadapter
|
%{python_sitelib}/itemadapter
|
||||||
%{python_sitelib}/itemadapter-%{version}-py*.egg-info
|
%{python_sitelib}/itemadapter-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user