72 lines
2.2 KiB
RPMSpec
72 lines
2.2 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: python-stuf
|
|
Version: 0.9.16
|
|
Release: 1
|
|
Summary: Fancy python dictionary types
|
|
|
|
License: BSD
|
|
URL: https://bitbucket.org/lcrees/stuf
|
|
Source0: https://files.pythonhosted.org/packages/f0/d6/6779cb5874630c21845d345306f60a7a5ecd9263fa09f85df745c54e3356/stuf-0.9.16.tar.gz
|
|
Patch1: 0001-add-exclude-config-to-packages-find-options.patch
|
|
Patch2: 0002-import-Sequence-and-Mapping-from-collections.abc.patch
|
|
Patch3: 0003-fix-test-TypeError-for-no-setattr-func.patch
|
|
BuildArch: noarch
|
|
|
|
|
|
%description
|
|
A collection of Python dictionary types that support attribute-style
|
|
access. Includes *defaultdict*, *OrderedDict*, restricted, *ChainMap*,
|
|
*Counter*, and frozen implementations plus miscellaneous utilities for
|
|
writing Python software.
|
|
|
|
%package -n python3-stuf
|
|
Summary: Fancy python dictionary types
|
|
%{?python_provide:%python_provide python3-stuf}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
|
|
# test dependencies
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-pytest
|
|
|
|
%description -n python3-stuf
|
|
A collection of Python dictionary types that support attribute-style
|
|
access. Includes *defaultdict*, *OrderedDict*, restricted, *ChainMap*,
|
|
*Counter*, and frozen implementations plus miscellaneous utilities for
|
|
writing Python software.
|
|
|
|
%prep
|
|
%autosetup -p1 -n stuf-%{version}
|
|
|
|
# Remove upstreams egg info
|
|
rm -rf *.egg*
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
|
|
%{_bindir}/pytest
|
|
|
|
%files -n python3-stuf
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python3_sitelib}/stuf
|
|
%{python3_sitelib}/stuf-*.egg-info/
|
|
|
|
%changelog
|
|
* Sun Jul 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.9.16-1
|
|
- Initial packaging
|