python-frozenlist/python-frozenlist.spec
Matej Cepl cd2cf3ab83 Accepting request 851594 from home:jayvdb:py-submit
dep of several aio-libs projects, include aiosignal (not in d-l-py yet), and aiohttp which is already in d-l-py, and I activated most of its tests recently, but some are still broken due this and other packaging bugs.  It is also an exposed datatype of aiohttp, so this library is needed by users of the relevant part of aiohttp, and they will be expecting it pre-installed by aiohttp.

OBS-URL: https://build.opensuse.org/request/show/851594
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=1
2020-11-30 14:43:14 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package python-frozenlist
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-frozenlist
Version: 1.1.1
Release: 0
Summary: Python list-like structure which implements MutableSequence
License: Apache-2.0
URL: https://github.com/aio-libs/frozenlist
Source: https://files.pythonhosted.org/packages/source/f/frozenlist/frozenlist-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
Python list-like structure which implements collections.abc.MutableSequence.
%prep
%setup -q -n frozenlist-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%{python_expand rm %{buildroot}%{$python_sitearch}/frozenlist/_frozenlist.c
%fdupes %{buildroot}%{$python_sitearch}
}
%check
%pytest_arch
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE.txt
%{python_sitearch}/*
%changelog