97 lines
2.8 KiB
RPMSpec
97 lines
2.8 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-jaraco-collections
|
|
Version: 3.5.2
|
|
Release: 1
|
|
Summary: Collection objects similar to those in stdlib by jaraco
|
|
License: MIT
|
|
URL: https://github.com/jaraco/jaraco.collections
|
|
Source0: https://github.com/jaraco/jaraco.collections/archive/refs/tags/v3.5.2.tar.gz
|
|
Patch0: 0001-add-setup-file.patch
|
|
BuildArch: noarch
|
|
|
|
Requires: python3-sphinx
|
|
Requires: python3-pytest
|
|
Requires: python3-pytest-checkdocs
|
|
Requires: python3-pytest-flake8
|
|
Requires: python3-pytest-cov
|
|
Requires: python3-pytest-enabler
|
|
Requires: python3-pytest-black
|
|
Requires: python3-pytest-mypy
|
|
|
|
%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
|
|
Provides: python-jaraco-collections
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
%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
|
|
%autosetup -n jaraco.collections-3.5.2
|
|
%patch0
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
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 .
|
|
|
|
%files -n python3-jaraco-collections -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Tue Aug 30 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.5.2-1
|
|
- Upgrade to version 3.5.2
|
|
|
|
* Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 3.5.1-1
|
|
- Upgrade to version 3.5.1
|
|
|
|
* 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
|
|
|
|
* Wed Sep 1 2021 maxim.suen <maxim2010@163.com> - 3.0.0-2
|
|
- Add 'exclude python37*' to %file
|
|
|
|
* Mon Nov 16 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package init
|