summaryrefslogtreecommitdiff
path: root/python-arky.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-arky.spec')
-rw-r--r--python-arky.spec106
1 files changed, 106 insertions, 0 deletions
diff --git a/python-arky.spec b/python-arky.spec
new file mode 100644
index 0000000..f521f34
--- /dev/null
+++ b/python-arky.spec
@@ -0,0 +1,106 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Arky
+Version: 1.3.1
+Release: 1
+Summary: Python API bridging DPOS blockchains
+License: Copyright 2016-2017 Toons, Copyright 2017 ARK, MIT licence
+URL: https://github.com/ArkEcosystem/arky
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9a/14/5ca02e9fa196da91eb222ca9172506a90649e732294a8da984f64798ba00/Arky-1.3.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-base58
+Requires: python3-docopt
+Requires: python3-ecdsa
+Requires: python3-ledgerblue
+Requires: python3-pynacl
+Requires: python3-pytz
+Requires: python3-requests
+
+%description
+Ubuntu / OSX
+^^^^^^^^^^^^
+>From development version
+``sudo -H pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+If you work with ``python3``
+``sudo -H pip3 install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+Windows
+^^^^^^^
+>From development version
+``pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+
+%package -n python3-Arky
+Summary: Python API bridging DPOS blockchains
+Provides: python-Arky
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Arky
+Ubuntu / OSX
+^^^^^^^^^^^^
+>From development version
+``sudo -H pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+If you work with ``python3``
+``sudo -H pip3 install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+Windows
+^^^^^^^
+>From development version
+``pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+
+%package help
+Summary: Development documents and examples for Arky
+Provides: python3-Arky-doc
+%description help
+Ubuntu / OSX
+^^^^^^^^^^^^
+>From development version
+``sudo -H pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+If you work with ``python3``
+``sudo -H pip3 install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+Windows
+^^^^^^^
+>From development version
+``pip install https://github.com/ArkEcosystem/arky/archive/aip11.zip``
+
+%prep
+%autosetup -n Arky-1.3.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-Arky -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1
+- Package Spec generated