summaryrefslogtreecommitdiff
path: root/python-indicoio.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 15:03:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 15:03:38 +0000
commit2d1abe0e9fcfad41216dd3f27aab31a96548d04f (patch)
treed108e957170240df879a6dd00010ed4c324cec4f /python-indicoio.spec
parentc7e1d9ebdcfc82f88560c778b57769b952c796ae (diff)
automatic import of python-indicoioopeneuler20.03
Diffstat (limited to 'python-indicoio.spec')
-rw-r--r--python-indicoio.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/python-indicoio.spec b/python-indicoio.spec
new file mode 100644
index 0000000..14b5345
--- /dev/null
+++ b/python-indicoio.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-IndicoIo
+Version: 1.4.1
+Release: 1
+Summary: A Python Wrapper for indico. Use pre-built state of the art machine learning algorithms with a single line of code.
+License: MIT License (See LICENSE)
+URL: https://github.com/IndicoDataSolutions/indicoio-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/25/2f/ca5898efa371333130e648159cacc721562dca030ff444e01a3a71d557e3/IndicoIo-1.4.1.tar.gz
+BuildArch: noarch
+
+
+%description
+A wrapper for the `indico API <http://indico.io>`__.
+The indico API is free to use, and no training data is required.
+
+%package -n python3-IndicoIo
+Summary: A Python Wrapper for indico. Use pre-built state of the art machine learning algorithms with a single line of code.
+Provides: python-IndicoIo
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-IndicoIo
+A wrapper for the `indico API <http://indico.io>`__.
+The indico API is free to use, and no training data is required.
+
+%package help
+Summary: Development documents and examples for IndicoIo
+Provides: python3-IndicoIo-doc
+%description help
+A wrapper for the `indico API <http://indico.io>`__.
+The indico API is free to use, and no training data is required.
+
+%prep
+%autosetup -n IndicoIo-1.4.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-IndicoIo -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.1-1
+- Package Spec generated