2020-11-24 17:10:35 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-jaraco-collections
|
2023-04-10 17:39:05 +08:00
|
|
|
Version: 4.1.0
|
2023-04-25 17:05:20 +08:00
|
|
|
Release: 2
|
2020-11-24 17:10:35 +08:00
|
|
|
Summary: Collection objects similar to those in stdlib by jaraco
|
|
|
|
|
License: MIT
|
2021-12-10 10:43:39 +08:00
|
|
|
URL: https://github.com/jaraco/jaraco.collections
|
2023-04-25 17:05:20 +08:00
|
|
|
SOurce0: https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco.collections-%{version}.tar.gz
|
2020-11-24 17:10:35 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Requires: python3-sphinx
|
|
|
|
|
Requires: python3-pytest
|
|
|
|
|
Requires: python3-pytest-checkdocs
|
|
|
|
|
Requires: python3-pytest-flake8
|
|
|
|
|
Requires: python3-pytest-cov
|
2021-12-10 10:43:39 +08:00
|
|
|
Requires: python3-pytest-enabler
|
|
|
|
|
Requires: python3-pytest-black
|
|
|
|
|
Requires: python3-pytest-mypy
|
2020-11-24 17:10:35 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A dictionary-like object that maps a range of values to a given value.
|
|
|
|
|
|
|
|
|
|
%package -n python3-jaraco-collections
|
|
|
|
|
Summary: Collection objects similar to those in stdlib by jaraco
|
2023-04-10 17:39:05 +08:00
|
|
|
Provides: python-jaraco-collections = %{version}-%{release}
|
2020-11-24 17:10:35 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2023-04-25 17:05:20 +08:00
|
|
|
BuildRequires: python3-pip python3-wheel python3-hatch-vcs
|
2020-11-24 17:10:35 +08:00
|
|
|
%description -n python3-jaraco-collections
|
|
|
|
|
A dictionary-like object that maps a range of values to a given value.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Development documents and examples for jaraco.collections
|
|
|
|
|
Provides: python3-jaraco-collections-doc
|
|
|
|
|
%description help
|
|
|
|
|
A dictionary-like object that maps a range of values to a given value.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-28 11:33:09 +08:00
|
|
|
%autosetup -n jaraco.collections-%{version} -p1
|
2020-11-24 17:10:35 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-04-25 17:05:20 +08:00
|
|
|
%pyproject_build
|
2020-11-24 17:10:35 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-04-25 17:05:20 +08:00
|
|
|
%pyproject_install jaraco.collections==%{version}
|
2020-11-24 17:10:35 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
|
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
|
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
|
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
|
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
|
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
2021-12-10 10:43:39 +08:00
|
|
|
%files -n python3-jaraco-collections -f filelist.lst
|
2023-04-25 17:05:20 +08:00
|
|
|
%{python3_sitelib}/*
|
2020-11-24 17:10:35 +08:00
|
|
|
|
2021-12-10 10:43:39 +08:00
|
|
|
%files help -f doclist.lst
|
2020-11-24 17:10:35 +08:00
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-04-25 17:05:20 +08:00
|
|
|
* Tue Apr 25 2023 yaoxin <yao_xin@hoperun.com> - 4.1.0-2
|
|
|
|
|
- Modify the package compilation method and remove the adaptation to setup.py
|
|
|
|
|
|
2023-04-10 17:39:05 +08:00
|
|
|
* Mon Apr 10 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.0-1
|
|
|
|
|
- Update package to version 4.1.0
|
|
|
|
|
|
2023-02-28 11:33:09 +08:00
|
|
|
* Tue Feb 28 2023 yaoxin <yaoxin30@h-partners.com> - 3.8.0-2
|
|
|
|
|
- Adaptation to setup.py and modify the patching mode to resolve installation conflicts
|
|
|
|
|
|
2022-12-16 00:05:13 +08:00
|
|
|
* Fri Dec 16 2022 lijian <lijian2@kylinos.cn> - 3.8.0-1
|
|
|
|
|
- update to upstream version 3.8.0
|
|
|
|
|
|
2022-08-30 11:00:53 +08:00
|
|
|
* Tue Aug 30 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.5.2-1
|
|
|
|
|
- Upgrade to version 3.5.2
|
|
|
|
|
|
2022-06-17 10:30:12 +08:00
|
|
|
* Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 3.5.1-1
|
|
|
|
|
- Upgrade to version 3.5.1
|
|
|
|
|
|
2021-12-10 10:43:39 +08:00
|
|
|
* Fri Nov 26 2021 liuqinfei <18138800392@163.com> - 3.4.0-1
|
|
|
|
|
- update version to 3.4.0
|
|
|
|
|
- recover some excluded files in %files python3-jaraco-collections
|
|
|
|
|
- __init__.py
|
|
|
|
|
- collections.py
|
|
|
|
|
|
2021-09-01 19:25:53 +08:00
|
|
|
* Wed Sep 1 2021 maxim.suen <maxim2010@163.com> - 3.0.0-2
|
|
|
|
|
- Add 'exclude python37*' to %file
|
|
|
|
|
|
2020-11-24 17:10:35 +08:00
|
|
|
* Mon Nov 16 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
|
|
|
- Package init
|