python-jaraco-classes/python-jaraco-classes.spec

104 lines
3.0 KiB
RPMSpec
Raw Normal View History

2020-12-14 17:16:00 +08:00
%global _empty_manifest_terminate_build 0
Name: python-jaraco-classes
2022-10-08 15:41:11 +08:00
Version: 3.2.3
Release: 2
2020-12-14 17:16:00 +08:00
Summary: Utility functions for Python class constructs
2022-10-08 15:41:11 +08:00
License: MIT
URL: https://github.com/jaraco/jaraco.classes
Source0: https://files.pythonhosted.org/packages/bf/02/a956c9bfd2dfe60b30c065ed8e28df7fcf72b292b861dca97e951c145ef6/jaraco.classes-3.2.3.tar.gz
Patch0: 0001-add-setup.py.patch
2020-12-14 17:16:00 +08:00
BuildArch: noarch
2022-10-08 15:41:11 +08:00
Recommends: %{name}-help = %{version}-%{release}
2022-05-31 17:55:07 +08:00
2020-12-14 17:16:00 +08:00
Requires: python3-more-itertools
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
2022-10-08 15:41:11 +08:00
Requires: python3-flake8
2020-12-14 17:16:00 +08:00
Requires: python3-pytest-flake8
Requires: python3-pytest-cov
2022-10-08 15:41:11 +08:00
Requires: python3-pytest-enabler
Requires: python3-pytest-black
Requires: python3-pytest-mypy
2020-12-14 17:16:00 +08:00
%description
Utility functions for Python class constructs.
%package -n python3-jaraco-classes
Summary: Utility functions for Python class constructs
Provides: python-jaraco-classes
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm >= 1.15
2022-10-08 15:41:11 +08:00
BuildRequires: python3-sphinx
BuildRequires: python3-pytest
2020-12-14 17:16:00 +08:00
%description -n python3-jaraco-classes
Utility functions for Python class constructs.
%package help
Summary: Development documents and examples for jaraco.classes
Provides: python3-jaraco-classes-doc
%description help
Documentation for jaraco-classes
%prep
2022-10-08 15:41:11 +08:00
%autosetup -n jaraco.classes-%{version}
%patch0
2020-12-14 17:16:00 +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-classes
%{python3_sitelib}/b*
%exclude %{python3_sitelib}/b/__pycache__/
%{python3_sitelib}/jaraco/classes
%{python3_sitelib}/jaraco.classes-*-py%{python3_version}.egg-info/
2020-12-14 17:16:00 +08:00
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Feb 24 2023 yaoxin <yaoxin30@h-partners.com> - 3.2.3-2
- Fix installation conflicts between python3-jaraco-classes and python-jaraco-collections
2022-10-08 15:41:11 +08:00
* Sat Oct 08 2022 guozhengxin <guozhengxin@kylinos.cn> - 3.2.3-1
- Upgrade package to version 3.2.3
2022-05-31 17:55:07 +08:00
* Tue May 31 2022 houyingchao <houyingchao@h-partners.com> - 3.2.1-1
- Upgrade to 3.2.1
2022-06-16 06:15:09 +00:00
* Tue Jan 05 2021 lingsheng <lingsheng@huawei.com> - 3.1.0-2
- Add buildrequire python3-setuptools_scm
* Fri Nov 13 2020 Python_Bot <Python_Bot@openeuler.org> - 3.1.0-1
2020-12-14 17:16:00 +08:00
- Package init