From f1ff125e8883b6d1fd2037c26146dbc3dfaaa97a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 05:01:54 +0000 Subject: automatic import of python-balpy --- python-balpy.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 python-balpy.spec (limited to 'python-balpy.spec') diff --git a/python-balpy.spec b/python-balpy.spec new file mode 100644 index 0000000..f191f47 --- /dev/null +++ b/python-balpy.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-balpy +Version: 0.0.0a79 +Release: 1 +Summary: Balancer V2 Python API +License: GNU GPL 3 +URL: https://pypi.org/project/balpy/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/4d/00dacee6dcd3b82c34d52e5f49bb5df3ba9845d21e4b47880d4aa6c3bc52/balpy-0.0.0a79.tar.gz +BuildArch: noarch + +Requires: python3-Cython +Requires: python3-cytoolz +Requires: python3-eth-abi +Requires: python3-gql +Requires: python3-jstyleson +Requires: python3-multicaller +Requires: python3-requests +Requires: python3-web3 + +%description + + +%package -n python3-balpy +Summary: Balancer V2 Python API +Provides: python-balpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-balpy + + +%package help +Summary: Development documents and examples for balpy +Provides: python3-balpy-doc +%description help + + +%prep +%autosetup -n balpy-0.0.0a79 + +%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-balpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.0.0a79-1 +- Package Spec generated -- cgit v1.2.3