summaryrefslogtreecommitdiff
path: root/python-tctl.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-tctl.spec')
-rw-r--r--python-tctl.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/python-tctl.spec b/python-tctl.spec
new file mode 100644
index 0000000..0d78656
--- /dev/null
+++ b/python-tctl.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tctl
+Version: 0.0.46
+Release: 1
+Summary: Tradologics Command-line Utility
+License: Apache 2.0
+URL: https://tradologics.com/tctl
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b8/b3/ecad41475e50be5b8c1488efad3582eed773197f9ee1dd853609dc9c0a31/tctl-0.0.46.tar.gz
+BuildArch: noarch
+
+Requires: python3-click
+Requires: python3-requests
+Requires: python3-tabulate
+Requires: python3-dotenv
+Requires: python3-stdiomask
+Requires: python3-pygments
+Requires: python3-inquirer
+Requires: python3-quantstats
+Requires: python3-PyYAML
+Requires: python3-ujson
+Requires: python3-pandas
+Requires: python3-analytics-python
+
+%description
+``tctl`` (Tradologics Controller) is Tradologics' command-line utility.
+It simplifies your development workflow by allowing you to communicate with Tradologics directly from the command-line, thus removing even more friction.
+
+%package -n python3-tctl
+Summary: Tradologics Command-line Utility
+Provides: python-tctl
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tctl
+``tctl`` (Tradologics Controller) is Tradologics' command-line utility.
+It simplifies your development workflow by allowing you to communicate with Tradologics directly from the command-line, thus removing even more friction.
+
+%package help
+Summary: Development documents and examples for tctl
+Provides: python3-tctl-doc
+%description help
+``tctl`` (Tradologics Controller) is Tradologics' command-line utility.
+It simplifies your development workflow by allowing you to communicate with Tradologics directly from the command-line, thus removing even more friction.
+
+%prep
+%autosetup -n tctl-0.0.46
+
+%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-tctl -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.46-1
+- Package Spec generated