python-jaraco-functools/python-jaraco-functools.spec

93 lines
2.8 KiB
RPMSpec
Raw Normal View History

2020-12-14 17:17:25 +08:00
%global _empty_manifest_terminate_build 0
2020-12-24 16:50:49 +08:00
Name: python-jaraco-functools
2022-12-01 16:15:28 +08:00
Version: 3.5.2
Release: 1
2020-12-24 16:50:49 +08:00
Summary: Functools like those found in stdlib
License: MIT
URL: https://pypi.org/project/jaraco.functools/
2022-12-01 16:15:28 +08:00
Source0: https://files.pythonhosted.org/packages/b4/ea/9abca360081de9157668fcc52765989158aaf29b4826f26fcb17852d08e6/jaraco.functools-3.5.2.tar.gz
Patch0: 0001-add-setup.py.patch
2020-12-24 16:50:49 +08:00
BuildArch: noarch
2020-12-14 17:17:25 +08:00
2020-12-24 16:50:49 +08:00
Requires: python3-more-itertools
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
Requires: python3-pytest-flake8
Requires: python3-pytest-black
Requires: python3-pytest-cov
Requires: python3-toml
2020-12-14 17:17:25 +08:00
%description
Functools like those found in stdlib
%package -n python3-jaraco-functools
2020-12-24 16:50:49 +08:00
Summary: Functools like those found in stdlib
2022-12-01 16:15:28 +08:00
Provides: python-jaraco-functools = %{version}-%{release}
2020-12-24 16:50:49 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-toml
2020-12-14 17:17:25 +08:00
%description -n python3-jaraco-functools
Functools like those found in stdlib
%package help
2020-12-24 16:50:49 +08:00
Summary: Development documents and examples for jaraco.functools
Provides: python3-jaraco-functools-doc
2020-12-14 17:17:25 +08:00
%description help
Documentation for jaraco-functools
%prep
2022-12-01 16:15:28 +08:00
%autosetup -n jaraco.functools-%{version}
%patch0
2020-12-14 17:17:25 +08:00
%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-functools -f filelist.lst
2022-12-01 16:15:28 +08:00
%dir %{python3_sitelib}/*
2020-12-14 17:17:25 +08:00
%files help -f doclist.lst
%{_docdir}/*
%changelog
2022-12-01 16:15:28 +08:00
* Thu Dec 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.5.2-1
- Update package to version 3.5.2
2022-04-02 16:20:00 +08:00
* Sat Apr 02 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 3.0.1-3
- Fix build error caused by py3.10+ wildcard
2020-12-24 16:50:49 +08:00
* Thu Dec 24 2020 zhanghua <zhanghua40@huawei.com> - 3.0.1-2
- fix random build failed
* Fri Nov 13 2020 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1
2020-12-14 17:17:25 +08:00
- Package Spec generated