summaryrefslogtreecommitdiff
path: root/python-koalafolio.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-koalafolio.spec')
-rw-r--r--python-koalafolio.spec107
1 files changed, 107 insertions, 0 deletions
diff --git a/python-koalafolio.spec b/python-koalafolio.spec
new file mode 100644
index 0000000..2e03eb3
--- /dev/null
+++ b/python-koalafolio.spec
@@ -0,0 +1,107 @@
+%global _empty_manifest_terminate_build 0
+Name: python-koalafolio
+Version: 0.11.17
+Release: 1
+Summary: portfolio app for crypto trading and tax reporting
+License: GPL-3.0
+URL: https://github.com/2martin2/koalafolio
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/9b/b0db3cb5cad8f186112636d044063264fff1e14d77a3f3db01d0a01e1ff5/koalafolio-0.11.17.tar.gz
+BuildArch: noarch
+
+Requires: python3-base58check
+Requires: python3-bech32
+Requires: python3-coincurve
+Requires: python3-gevent
+Requires: python3-gql
+Requires: python3-krakenex
+Requires: python3-openpyxl
+Requires: python3-pandas
+Requires: python3-pillow
+Requires: python3-pycoingecko
+Requires: python3-pycryptodomex
+Requires: python3-pykrakenapi
+Requires: python3-pyqt5
+Requires: python3-pyqtchart
+Requires: python3-requests
+Requires: python3-typing-extensions
+Requires: python3-tzlocal
+Requires: python3-urllib3
+Requires: python3-web3
+Requires: python3-xlrd
+
+%description
+ - clone repo
+ - install python > 3.7
+ - install microsoft build tools https://visualstudio.microsoft.com/de/visual-cpp-build-tools/
+ - install pipenv
+ - use pipenv to install dependencies
+ - run gui_root.py
+
+%package -n python3-koalafolio
+Summary: portfolio app for crypto trading and tax reporting
+Provides: python-koalafolio
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-koalafolio
+ - clone repo
+ - install python > 3.7
+ - install microsoft build tools https://visualstudio.microsoft.com/de/visual-cpp-build-tools/
+ - install pipenv
+ - use pipenv to install dependencies
+ - run gui_root.py
+
+%package help
+Summary: Development documents and examples for koalafolio
+Provides: python3-koalafolio-doc
+%description help
+ - clone repo
+ - install python > 3.7
+ - install microsoft build tools https://visualstudio.microsoft.com/de/visual-cpp-build-tools/
+ - install pipenv
+ - use pipenv to install dependencies
+ - run gui_root.py
+
+%prep
+%autosetup -n koalafolio-0.11.17
+
+%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-koalafolio -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.11.17-1
+- Package Spec generated