python-path/python-path.spec

92 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

2022-11-22 10:15:06 +08:00
%global _empty_manifest_terminate_build 0
Name: python-path
Version: 16.9.0
2023-07-27 14:55:43 +08:00
Release: 1
2022-11-22 10:15:06 +08:00
Summary: Python module wrapper for path
License: MIT
URL: https://github.com/jaraco/path
Source0: https://files.pythonhosted.org/packages/source/p/path/path-%{version}.tar.gz
2022-11-22 10:15:06 +08:00
BuildArch: noarch
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
BuildRequires: python3-more-itertools
2020-03-04 18:31:57 +08:00
%description
This package implements path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
2022-11-22 10:15:06 +08:00
%package -n python3-path
Summary: Python module wrapper for path
Provides: python-path = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BUildRequires: python3-setuptools_scm
%description -n python3-path
This package implements path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
2020-03-04 18:31:57 +08:00
2022-11-22 10:15:06 +08:00
%package help
Summary: Development documents and examples for path
Provides: python3-path-doc
%description help
This package implements path objects as first-class entities,
2020-03-04 18:31:57 +08:00
allowing common operations on files to be invoked on those path objects directly.
%prep
2022-12-16 15:10:47 +08:00
%autosetup -p1 -n path-%{version}
2020-03-04 18:31:57 +08:00
%build
%pyproject_build
2020-03-04 18:31:57 +08:00
2022-11-22 10:15:06 +08:00
%install
%pyproject_install path==%{version}
2022-11-22 10:15:06 +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
2020-03-04 18:31:57 +08:00
%check
2022-07-01 17:56:06 +08:00
/usr/bin/pytest
2020-03-04 18:31:57 +08:00
%files -n python3-path
%{python3_sitelib}/path*
2020-03-04 18:31:57 +08:00
%files help
2022-11-22 10:15:06 +08:00
%{_docdir}/*
2020-03-04 18:31:57 +08:00
%changelog
* Tue Feb 06 2024 xu_ping <707078654@qq.com> - 16.9.0-1
- Update package to version 16.9.0
2023-07-27 14:55:43 +08:00
* Thu Jul 27 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 16.7.1-1
- Update package to version 16.7.1
* Wed Apr 26 2023 xu_ping <707078654@qq.com> - 16.6.0-2
- Adapting to the pyproject.toml compilation mode
2022-12-16 15:10:47 +08:00
* Fri Dec 16 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 16.6.0-1
- Update package to version 16.6.0
2022-11-22 10:15:06 +08:00
* Tue Nov 22 2022 wangjunqi <wangjunqi@kylinos.cn> - 16.5.0-1
- Update package to version 16.5.0
2022-08-09 16:14:18 +08:00
* Tue Aug 09 2022 liqiuyu <liqiuyu@kylinos.cn> - 16.4.0-1
- Update to 16.4.0
2022-07-01 17:56:06 +08:00
* Thu Jun 30 2022 caodongxia <caodongxia@h-partners.com> - 16.3.0-1
- Update to 16.3.0
2021-09-27 15:52:04 +08:00
* Mon Sep 27 2021 lingsheng <lingsheng@huawei.com> - 5.2-18
- Provides python-path for compatibility
2021-01-11 19:17:45 +08:00
* Sat Jan 9 2021 wutao <wutao61@huawei.com> 5.2-17
- fix test failures adpating to pytest
2020-10-29 11:49:25 +08:00
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 5.2-16
- drop python2 subpackage
2020-03-04 18:31:57 +08:00
* Wed Mar 4 2020 zhujunhao <zhujunhao5@huawei.com> - 5.2-15
- Package init