diff options
Diffstat (limited to 'python-iotile-analytics-core.spec')
-rw-r--r-- | python-iotile-analytics-core.spec | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/python-iotile-analytics-core.spec b/python-iotile-analytics-core.spec new file mode 100644 index 0000000..77c24e7 --- /dev/null +++ b/python-iotile-analytics-core.spec @@ -0,0 +1,112 @@ +%global _empty_manifest_terminate_build 0 +Name: python-iotile-analytics-core +Version: 0.6.1 +Release: 1 +Summary: A data science bridge for iotile.cloud +License: LGPLv3 +URL: https://github.com/iotile/typedargs +Source0: https://mirrors.aliyun.com/pypi/web/packages/7a/5a/989fd2eeced18f45cb68fa3b1895de309ff1139805d1769ecc997f1206f2/iotile-analytics-core-0.6.1.tar.gz +BuildArch: noarch + +Requires: python3-future +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-scipy +Requires: python3-typedargs +Requires: python3-iotile-cloud +Requires: python3-tqdm + +%description +IOTile Analytics Core provides classes for pulling data from iotile.cloud into +a standard data science environment. In particular it natively maps data into +numpy and pandas as appropriate and provides functions to select data. It +works well with a Jupyter Notebook based analysis environment, through the +functionality can be used in any python environment. +The IOTile Analytics package is broken into multiple parts of which +iotile-analytics-core is one. You should install the additional parts that you need for +your use cases. +Installation: +``` +pip install -U iotile_analytics-core +``` + +%package -n python3-iotile-analytics-core +Summary: A data science bridge for iotile.cloud +Provides: python-iotile-analytics-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-iotile-analytics-core +IOTile Analytics Core provides classes for pulling data from iotile.cloud into +a standard data science environment. In particular it natively maps data into +numpy and pandas as appropriate and provides functions to select data. It +works well with a Jupyter Notebook based analysis environment, through the +functionality can be used in any python environment. +The IOTile Analytics package is broken into multiple parts of which +iotile-analytics-core is one. You should install the additional parts that you need for +your use cases. +Installation: +``` +pip install -U iotile_analytics-core +``` + +%package help +Summary: Development documents and examples for iotile-analytics-core +Provides: python3-iotile-analytics-core-doc +%description help +IOTile Analytics Core provides classes for pulling data from iotile.cloud into +a standard data science environment. In particular it natively maps data into +numpy and pandas as appropriate and provides functions to select data. It +works well with a Jupyter Notebook based analysis environment, through the +functionality can be used in any python environment. +The IOTile Analytics package is broken into multiple parts of which +iotile-analytics-core is one. You should install the additional parts that you need for +your use cases. +Installation: +``` +pip install -U iotile_analytics-core +``` + +%prep +%autosetup -n iotile-analytics-core-0.6.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-iotile-analytics-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1 +- Package Spec generated |