summaryrefslogtreecommitdiff
path: root/python-mlserver-mllib.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-mlserver-mllib.spec')
-rw-r--r--python-mlserver-mllib.spec122
1 files changed, 122 insertions, 0 deletions
diff --git a/python-mlserver-mllib.spec b/python-mlserver-mllib.spec
new file mode 100644
index 0000000..87a9c76
--- /dev/null
+++ b/python-mlserver-mllib.spec
@@ -0,0 +1,122 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mlserver-mllib
+Version: 1.3.2
+Release: 1
+Summary: Spark MLlib runtime for MLServer
+License: Apache 2.0
+URL: https://github.com/SeldonIO/MLServer.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/78/32/b924d0a94c0e0654390fba246bf8a776f2d542cc2b01307ef7a0c3c20231/mlserver-mllib-1.3.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-mlserver
+Requires: python3-pyspark
+
+%description
+# Spark MLlib runtime for MLServer
+
+This package provides a MLServer runtime compatible with Spark MLlib.
+
+## Usage
+
+You can install the runtime, alongside `mlserver`, as:
+
+```bash
+pip install mlserver mlserver-mllib
+```
+
+For further information on how to use MLServer with Spark MLlib, you can check
+out the [MLServer repository](https://github.com/SeldonIO/MLServer).
+
+
+
+
+%package -n python3-mlserver-mllib
+Summary: Spark MLlib runtime for MLServer
+Provides: python-mlserver-mllib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mlserver-mllib
+# Spark MLlib runtime for MLServer
+
+This package provides a MLServer runtime compatible with Spark MLlib.
+
+## Usage
+
+You can install the runtime, alongside `mlserver`, as:
+
+```bash
+pip install mlserver mlserver-mllib
+```
+
+For further information on how to use MLServer with Spark MLlib, you can check
+out the [MLServer repository](https://github.com/SeldonIO/MLServer).
+
+
+
+
+%package help
+Summary: Development documents and examples for mlserver-mllib
+Provides: python3-mlserver-mllib-doc
+%description help
+# Spark MLlib runtime for MLServer
+
+This package provides a MLServer runtime compatible with Spark MLlib.
+
+## Usage
+
+You can install the runtime, alongside `mlserver`, as:
+
+```bash
+pip install mlserver mlserver-mllib
+```
+
+For further information on how to use MLServer with Spark MLlib, you can check
+out the [MLServer repository](https://github.com/SeldonIO/MLServer).
+
+
+
+
+%prep
+%autosetup -n mlserver-mllib-1.3.2
+
+%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-mlserver-mllib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.2-1
+- Package Spec generated