python-distlib/python-distlib.spec

105 lines
3.3 KiB
RPMSpec
Raw Normal View History

2022-08-04 13:52:52 +08:00
%global _empty_manifest_terminate_build 0
Name: python-distlib
2024-01-10 18:51:12 +08:00
Version: 0.3.8
2023-07-27 16:01:33 +08:00
Release: 1
2022-08-04 13:52:52 +08:00
Summary: A library of packaging functionality
License: Python-2.0
URL: https://github.com/pypa/distlib
2024-01-10 18:51:12 +08:00
# https://pypi.org/project/distlib/#files
Source0: https://files.pythonhosted.org/packages/c4/91/e2df406fb4efacdf46871c25cde65d3c6ee5e173b7e5a4547a47bae91920/distlib-0.3.8.tar.gz
2022-08-04 13:52:52 +08:00
BuildArch: noarch
2020-06-22 11:28:55 +08:00
%description
A library of packaging functionality which is intended to be used as the
basis for third-party packaging tools.
2022-08-04 13:52:52 +08:00
%package -n python3-distlib
Summary: A library of packaging functionality
2022-12-02 15:56:29 +08:00
Provides: python-distlib = %{version}-%{release}
2022-08-04 13:52:52 +08:00
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
2022-08-04 13:52:52 +08:00
BuildRequires: python3-setuptools
2020-06-22 11:28:55 +08:00
%description -n python3-distlib
A library of packaging functionality which is intended to be used as the
basis for third-party packaging tools.
2022-08-04 13:52:52 +08:00
%package help
Summary: Development documents and examples for distlib
Provides: python3-distlib-doc
%description help
A library of packaging functionality which is intended to be used as the
basis for third-party packaging tools.
2020-06-22 11:28:55 +08:00
2022-08-04 13:52:52 +08:00
%prep
%autosetup -n distlib-%{version} -p1
2020-06-22 11:28:55 +08:00
%build
%pyproject_build
2020-06-22 11:28:55 +08:00
%install
%pyproject_install distlib==%{version}
2022-08-04 13:52:52 +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
2022-12-02 15:56:29 +08:00
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
2022-08-04 13:52:52 +08:00
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 .
2020-06-22 11:28:55 +08:00
2022-08-04 13:52:52 +08:00
%files -n python3-distlib -f filelist.lst
%dir %{python3_sitelib}/*
%{python3_sitelib}/distlib
2022-08-04 13:52:52 +08:00
%files help -f doclist.lst
%{_docdir}/*
2020-06-22 11:28:55 +08:00
%changelog
2024-01-10 18:51:12 +08:00
* Wed Jan 10 2024 zhangxianting <zhangxianting@uniontech.com> - 0.3.8-1
- Update package to version 0.3.8
2023-07-27 16:01:33 +08:00
* Thu Jul 27 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 0.3.7-1
- Update package to version 0.3.7
* Thu Apr 27 2023 caodongxia <caodongxia@h-partners.com> - 0.3.6-2
- Adapting to the pyproject.toml compilation mode
2022-12-02 15:56:29 +08:00
* Fri Dec 02 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.3.6-1
- Update package to version 0.3.6
2022-08-04 13:52:52 +08:00
* Thu Aug 04 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.3.5-1
- update to 0.3.5
2021-12-09 08:39:01 +00:00
* Thu Dec 09 2021 shixuantong <shixuantong@huawei.com> - 0.3.4-1
- update version to 0.3.4
2021-11-27 09:52:34 +08:00
* Sat Nov 27 2021 shixuantong <shixuantong@huawei.com> - 0.3.1-2
- fix build fail for python3-3.10.0
2020-08-07 15:47:10 +08:00
* Fri Aug 7 2020 shixuantong <shixuantong@huawei.com> - 0.3.1-1
- update to 0.3.1
2020-06-22 11:28:55 +08:00
* Fri Jun 5 2020 chengzihan <chengzihan2@huawei.com> - 0.3.0-2
- Package init