diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:41:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:41:42 +0000 |
commit | 9ad4ed9ba90a5e0df792347e319108cf950f6d1a (patch) | |
tree | 2df52355a940d1be8adf6754590f10228267b958 /python-tctl.spec | |
parent | 84d70811b95b3a92a716167c2cd378addc9d9fe5 (diff) |
automatic import of python-tctl
Diffstat (limited to 'python-tctl.spec')
-rw-r--r-- | python-tctl.spec | 87 |
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 |