From 9cff8020795c1a865ddd7bb8e83cc321452bce5c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 19:38:53 +0000 Subject: automatic import of python-about-time --- .gitignore | 1 + python-about-time.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 python-about-time.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c2b5605 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/about-time-4.2.1.tar.gz diff --git a/python-about-time.spec b/python-about-time.spec new file mode 100644 index 0000000..5971da7 --- /dev/null +++ b/python-about-time.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-about-time +Version: 4.2.1 +Release: 1 +Summary: Easily measure timing and throughput of code blocks, with beautiful human friendly representations. +License: MIT +URL: https://github.com/rsalmei/about-time +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1c/3f/ccb16bdc53ebb81c1bf837c1ee4b5b0b69584fd2e4a802a2a79936691c0a/about-time-4.2.1.tar.gz +BuildArch: noarch + + +%description +Maintaining an open source project is hard and time-consuming, and I've put much ❤️ and effort into this. +If you've appreciated my work, you can back me up with a donation! Thank you 😊 +[](https://www.buymeacoffee.com/rsalmei) + +%package -n python3-about-time +Summary: Easily measure timing and throughput of code blocks, with beautiful human friendly representations. +Provides: python-about-time +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-about-time +Maintaining an open source project is hard and time-consuming, and I've put much ❤️ and effort into this. +If you've appreciated my work, you can back me up with a donation! Thank you 😊 +[](https://www.buymeacoffee.com/rsalmei) + +%package help +Summary: Development documents and examples for about-time +Provides: python3-about-time-doc +%description help +Maintaining an open source project is hard and time-consuming, and I've put much ❤️ and effort into this. +If you've appreciated my work, you can back me up with a donation! Thank you 😊 +[](https://www.buymeacoffee.com/rsalmei) + +%prep +%autosetup -n about-time-4.2.1 + +%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-about-time -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 4.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..01c6cdb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a27e20534af8e06b9a3caed289a60884 about-time-4.2.1.tar.gz -- cgit v1.2.3