diff options
Diffstat (limited to 'python-human-friendly-pedantic-timedelta.spec')
-rw-r--r-- | python-human-friendly-pedantic-timedelta.spec | 238 |
1 files changed, 238 insertions, 0 deletions
diff --git a/python-human-friendly-pedantic-timedelta.spec b/python-human-friendly-pedantic-timedelta.spec new file mode 100644 index 0000000..6e64879 --- /dev/null +++ b/python-human-friendly-pedantic-timedelta.spec @@ -0,0 +1,238 @@ +%global _empty_manifest_terminate_build 0 +Name: python-human-friendly-pedantic-timedelta +Version: 2.0.11 +Release: 1 +Summary: Human-friendly Pedantic `timedelta` +License: MIT +URL: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d2/ba/9ad60112d4659370bb574d6619cb527da57ea2121bd51332750566924a9e/human-friendly_pedantic-timedelta-2.0.11.tar.gz +BuildArch: noarch + +Requires: python3-Inflector + +%description +##################################### +Human-Friendly Pedantic ``timedelta`` +##################################### + +.. image:: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta.svg?branch=develop + :target: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Build Status + +.. image:: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta/branch/develop/graph/badge.svg + :target: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Coverage Status + +.. image:: https://readthedocs.org/projects/human-friendly-pedantic-timedelta/badge/?version=latest + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/ + :alt: Documentation Status + +.. image:: https://img.shields.io/github/release/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/releases + :alt: GitHub Release Status + +.. image:: https://img.shields.io/pypi/v/human-friendly-pedantic-timedelta.svg + :target: https://pypi.org/project/human-friendly-pedantic-timedelta/ + :alt: PyPI Release Status + +.. image:: https://img.shields.io/github/license/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/blob/release/LICENSE + :alt: License Status + +A Python ``timedelta`` wrapper which provides pedantic string formatting. + +Install with ``pip``:: + + pip3 install human-friendly_pedantic-timedelta + +For more options, read the +`installation guide +<https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/installation.html>`__. + +Simple example:: + + $ python3 + >>> from pedantic_timedelta import PedanticTimedelta + >>> PedanticTimedelta(days=0.33).time_format_scaled() + # OUTPUT + # ('7.92 hours', 3600.0, 'hour') + +| + +.. image:: https://raw.githubusercontent.com/hotoffthehamster/human-friendly_pedantic-timedelta/release/docs/assets/hfpt-logo-lrg.png + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/authors.html#graphics-shout-out + :align: center + :alt: "Penrose Hourglass" + + + + + +%package -n python3-human-friendly-pedantic-timedelta +Summary: Human-friendly Pedantic `timedelta` +Provides: python-human-friendly-pedantic-timedelta +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-human-friendly-pedantic-timedelta +##################################### +Human-Friendly Pedantic ``timedelta`` +##################################### + +.. image:: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta.svg?branch=develop + :target: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Build Status + +.. image:: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta/branch/develop/graph/badge.svg + :target: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Coverage Status + +.. image:: https://readthedocs.org/projects/human-friendly-pedantic-timedelta/badge/?version=latest + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/ + :alt: Documentation Status + +.. image:: https://img.shields.io/github/release/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/releases + :alt: GitHub Release Status + +.. image:: https://img.shields.io/pypi/v/human-friendly-pedantic-timedelta.svg + :target: https://pypi.org/project/human-friendly-pedantic-timedelta/ + :alt: PyPI Release Status + +.. image:: https://img.shields.io/github/license/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/blob/release/LICENSE + :alt: License Status + +A Python ``timedelta`` wrapper which provides pedantic string formatting. + +Install with ``pip``:: + + pip3 install human-friendly_pedantic-timedelta + +For more options, read the +`installation guide +<https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/installation.html>`__. + +Simple example:: + + $ python3 + >>> from pedantic_timedelta import PedanticTimedelta + >>> PedanticTimedelta(days=0.33).time_format_scaled() + # OUTPUT + # ('7.92 hours', 3600.0, 'hour') + +| + +.. image:: https://raw.githubusercontent.com/hotoffthehamster/human-friendly_pedantic-timedelta/release/docs/assets/hfpt-logo-lrg.png + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/authors.html#graphics-shout-out + :align: center + :alt: "Penrose Hourglass" + + + + + +%package help +Summary: Development documents and examples for human-friendly-pedantic-timedelta +Provides: python3-human-friendly-pedantic-timedelta-doc +%description help +##################################### +Human-Friendly Pedantic ``timedelta`` +##################################### + +.. image:: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta.svg?branch=develop + :target: https://travis-ci.com/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Build Status + +.. image:: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta/branch/develop/graph/badge.svg + :target: https://codecov.io/gh/hotoffthehamster/human-friendly_pedantic-timedelta + :alt: Coverage Status + +.. image:: https://readthedocs.org/projects/human-friendly-pedantic-timedelta/badge/?version=latest + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/ + :alt: Documentation Status + +.. image:: https://img.shields.io/github/release/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/releases + :alt: GitHub Release Status + +.. image:: https://img.shields.io/pypi/v/human-friendly-pedantic-timedelta.svg + :target: https://pypi.org/project/human-friendly-pedantic-timedelta/ + :alt: PyPI Release Status + +.. image:: https://img.shields.io/github/license/hotoffthehamster/human-friendly_pedantic-timedelta.svg?style=flat + :target: https://github.com/hotoffthehamster/human-friendly_pedantic-timedelta/blob/release/LICENSE + :alt: License Status + +A Python ``timedelta`` wrapper which provides pedantic string formatting. + +Install with ``pip``:: + + pip3 install human-friendly_pedantic-timedelta + +For more options, read the +`installation guide +<https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/installation.html>`__. + +Simple example:: + + $ python3 + >>> from pedantic_timedelta import PedanticTimedelta + >>> PedanticTimedelta(days=0.33).time_format_scaled() + # OUTPUT + # ('7.92 hours', 3600.0, 'hour') + +| + +.. image:: https://raw.githubusercontent.com/hotoffthehamster/human-friendly_pedantic-timedelta/release/docs/assets/hfpt-logo-lrg.png + :target: https://human-friendly-pedantic-timedelta.readthedocs.io/en/latest/authors.html#graphics-shout-out + :align: center + :alt: "Penrose Hourglass" + + + + + +%prep +%autosetup -n human-friendly-pedantic-timedelta-2.0.11 + +%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-human-friendly-pedantic-timedelta -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.11-1 +- Package Spec generated |