%global _empty_manifest_terminate_build 0 Name: python-multitimer Version: 0.3 Release: 1 Summary: A pure-python periodic timer that can be started multiple times License: MIT URL: https://pypi.org/project/multitimer/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/2a/0094d6a6cdf9f72de1c853d10d668d9148ed3ea2280fdcaf2755882b1dee/multitimer-0.3.zip BuildArch: noarch %description ### 0.3, 2020-11-27 * Add a .join() method to wait for a timer that has been stopped to complete its final iteration. (Thanks, @pakal!) * Remove _ontimeout_ and _params_ arguments (deprecated in 0.2) * Properly pass args to RepeatingTimer * Fix error if .stop() called before .start() ### 0.2, 2019-01-17 * Replace time.clock() calls with time.perf_counter(), as [time.clock is deprecated since python 3.3](https://docs.python.org/3/library/time.html#time.clock) and doesn't provide consistent behavior across different platforms. * Replace _ontimeout_ with _function_, and _params_ with _args_ and _kwargs_, to match the `threading.Timer` API. _ontimeout_ and _params_ are deprecated and will be removed in v0.3. * Add lots of code comments to better explain how the module works. ### 0.1, 2018-02-15 * Initial release %package -n python3-multitimer Summary: A pure-python periodic timer that can be started multiple times Provides: python-multitimer BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-multitimer ### 0.3, 2020-11-27 * Add a .join() method to wait for a timer that has been stopped to complete its final iteration. (Thanks, @pakal!) * Remove _ontimeout_ and _params_ arguments (deprecated in 0.2) * Properly pass args to RepeatingTimer * Fix error if .stop() called before .start() ### 0.2, 2019-01-17 * Replace time.clock() calls with time.perf_counter(), as [time.clock is deprecated since python 3.3](https://docs.python.org/3/library/time.html#time.clock) and doesn't provide consistent behavior across different platforms. * Replace _ontimeout_ with _function_, and _params_ with _args_ and _kwargs_, to match the `threading.Timer` API. _ontimeout_ and _params_ are deprecated and will be removed in v0.3. * Add lots of code comments to better explain how the module works. ### 0.1, 2018-02-15 * Initial release %package help Summary: Development documents and examples for multitimer Provides: python3-multitimer-doc %description help ### 0.3, 2020-11-27 * Add a .join() method to wait for a timer that has been stopped to complete its final iteration. (Thanks, @pakal!) * Remove _ontimeout_ and _params_ arguments (deprecated in 0.2) * Properly pass args to RepeatingTimer * Fix error if .stop() called before .start() ### 0.2, 2019-01-17 * Replace time.clock() calls with time.perf_counter(), as [time.clock is deprecated since python 3.3](https://docs.python.org/3/library/time.html#time.clock) and doesn't provide consistent behavior across different platforms. * Replace _ontimeout_ with _function_, and _params_ with _args_ and _kwargs_, to match the `threading.Timer` API. _ontimeout_ and _params_ are deprecated and will be removed in v0.3. * Add lots of code comments to better explain how the module works. ### 0.1, 2018-02-15 * Initial release %prep %autosetup -n multitimer-0.3 %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-multitimer -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 0.3-1 - Package Spec generated