diff --git a/ray-2.42.1.tar.gz b/ray-2.42.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6e8d0294302d72545212424b176cfce8bd6d100c Binary files /dev/null and b/ray-2.42.1.tar.gz differ diff --git a/ray.spec b/ray.spec new file mode 100644 index 0000000000000000000000000000000000000000..1c7317429cfe76d9d222d7235dd98541715b5794 --- /dev/null +++ b/ray.spec @@ -0,0 +1,63 @@ +%global _name ray +%global _description Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads. + +Name: ray +Version: 2.42.1 +Release: 1 +Summary: Powerful engine for accelerating ML workloads. +License: (Apache-2.0 AND BSD-3-Clause) OR BSD-3-CLause +URL: https://github.com/ray-project/ray +Source0: https://gitee.com/src-openeuler/ray/raw/master/ray-%{version}.tar.gz + +BuildArch: noarch + +%description +%{_description} + +%package -n python3-%{_name} +Summary: %{summary} +Buildrequires: cmake >= 3.26 python3-pip python3-devel python3-setuptools python3-pytest +Buildrequires: python3-setuptools_scm python3-wheel python3-pytest-asyncio python3-grpcio +Buildrequires: java-11-openjdk +%{?python_provide:%python_provide python3-%{_name}} + +%description -n python3-%{_name} +%{_description} + +%package_help + +%prep +%autosetup -n %{name}-%{version} -N + +%build +cd python +%py3_build + +%install +%py3_install +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 +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 . + +%check + +%files -n python3-%{_name} -f filelist.lst + +%changelog +* Mon Mar 3 2025 renwenjie - 2.42.1-1 +- Package init