102 lines
2.9 KiB
RPMSpec
102 lines
2.9 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-path
|
|
Version: 16.6.0
|
|
Release: 1
|
|
Summary: Python module wrapper for path
|
|
License: MIT
|
|
URL: https://github.com/jaraco/path
|
|
Source0: https://files.pythonhosted.org/packages/0a/52/94faab34ea4ddff296d99d32d16a7c342f70b1cd0f1d1d65b49e2a04b7a6/path-16.6.0.tar.gz
|
|
Patch0: 0001-add-setup-file.patch
|
|
BuildArch: noarch
|
|
|
|
|
|
%description
|
|
This package implements path objects as first-class entities,
|
|
allowing common operations on files to be invoked on those path objects directly.
|
|
|
|
%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.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for path
|
|
Provides: python3-path-doc
|
|
%description help
|
|
This package implements path objects as first-class entities,
|
|
allowing common operations on files to be invoked on those path objects directly.
|
|
|
|
%prep
|
|
%autosetup -p1 -n path-%{version}
|
|
|
|
%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 .
|
|
|
|
%check
|
|
/usr/bin/pytest
|
|
|
|
%files -n python3-path -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Fri Dec 16 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 16.6.0-1
|
|
- Update package to version 16.6.0
|
|
|
|
* Tue Nov 22 2022 wangjunqi <wangjunqi@kylinos.cn> - 16.5.0-1
|
|
- Update package to version 16.5.0
|
|
|
|
* Tue Aug 09 2022 liqiuyu <liqiuyu@kylinos.cn> - 16.4.0-1
|
|
- Update to 16.4.0
|
|
|
|
* Thu Jun 30 2022 caodongxia <caodongxia@h-partners.com> - 16.3.0-1
|
|
- Update to 16.3.0
|
|
|
|
* Mon Sep 27 2021 lingsheng <lingsheng@huawei.com> - 5.2-18
|
|
- Provides python-path for compatibility
|
|
|
|
* Sat Jan 9 2021 wutao <wutao61@huawei.com> 5.2-17
|
|
- fix test failures adpating to pytest
|
|
|
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 5.2-16
|
|
- drop python2 subpackage
|
|
|
|
* Wed Mar 4 2020 zhujunhao <zhujunhao5@huawei.com> - 5.2-15
|
|
- Package init
|