From d3fc64f2f7e1097e8fd919f30db7fe8e4fe3cb81 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 16:38:35 +0000 Subject: automatic import of python-py-moneyed --- .gitignore | 1 + python-py-moneyed.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 96 insertions(+) create mode 100644 python-py-moneyed.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0aba605 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/py-moneyed-3.0.tar.gz diff --git a/python-py-moneyed.spec b/python-py-moneyed.spec new file mode 100644 index 0000000..5a55ae3 --- /dev/null +++ b/python-py-moneyed.spec @@ -0,0 +1,94 @@ +%global _empty_manifest_terminate_build 0 +Name: python-py-moneyed +Version: 3.0 +Release: 1 +Summary: Provides Currency and Money classes for use in your Python code. +License: BSD +URL: http://github.com/py-moneyed/py-moneyed +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2c/d9/cb6f113d2b7cf930bb3963d2b84ee245c20f93f9afc2e41adece58d324ae/py-moneyed-3.0.tar.gz +BuildArch: noarch + +Requires: python3-babel +Requires: python3-typing-extensions +Requires: python3-pytest +Requires: python3-tox +Requires: python3-pytest +Requires: python3-pytest-mypy-plugins +Requires: python3-mypy + +%description +The need to represent instances of money frequently arises in software +development, particularly any financial/economics software. To address that +need, the py-moneyed package provides the classes of Money and Currency, at a +level more useful than just using Python's Decimal class, or ($DEITY forbid) the +float primitive. The package is meant to be stand-alone and used directly, or +be subclassed further. py-moneyed is BSD-licensed. + +%package -n python3-py-moneyed +Summary: Provides Currency and Money classes for use in your Python code. +Provides: python-py-moneyed +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-py-moneyed +The need to represent instances of money frequently arises in software +development, particularly any financial/economics software. To address that +need, the py-moneyed package provides the classes of Money and Currency, at a +level more useful than just using Python's Decimal class, or ($DEITY forbid) the +float primitive. The package is meant to be stand-alone and used directly, or +be subclassed further. py-moneyed is BSD-licensed. + +%package help +Summary: Development documents and examples for py-moneyed +Provides: python3-py-moneyed-doc +%description help +The need to represent instances of money frequently arises in software +development, particularly any financial/economics software. To address that +need, the py-moneyed package provides the classes of Money and Currency, at a +level more useful than just using Python's Decimal class, or ($DEITY forbid) the +float primitive. The package is meant to be stand-alone and used directly, or +be subclassed further. py-moneyed is BSD-licensed. + +%prep +%autosetup -n py-moneyed-3.0 + +%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-py-moneyed -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 3.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c45183f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +cbba7e2b31e093d25d990e8e4103f86e py-moneyed-3.0.tar.gz -- cgit v1.2.3