!3 Pacakge init
From: @renren247 Reviewed-by: @sinever Signed-off-by: @sinever
This commit is contained in:
commit
5e440beb88
BIN
vllm-0.6.6.post1.tar.gz
Normal file
BIN
vllm-0.6.6.post1.tar.gz
Normal file
Binary file not shown.
64
vllm.spec
Normal file
64
vllm.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
%global _name vllm
|
||||||
|
%global _description A high-throughput and memory-efficient inference and serving engine for LLMs
|
||||||
|
|
||||||
|
Name: vllm
|
||||||
|
Version: 0.6.6.post1
|
||||||
|
Release: 1
|
||||||
|
Summary: Powerful engine for LLMs
|
||||||
|
License: (Apache-2.0 AND BSD-3-Clause) OR BSD-3-CLause
|
||||||
|
URL: https://github.com/vllm-project/vllm
|
||||||
|
Source0: https://gitee.com/src-openeuler/vllm/raw/master/vllm-%{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: python3-pytorch
|
||||||
|
%{?python_provide:%python_provide python3-%{_name}}
|
||||||
|
|
||||||
|
%description -n python3-%{_name}
|
||||||
|
%{_description}
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -N
|
||||||
|
|
||||||
|
%build
|
||||||
|
export VLLM_TARGET_DEVICE=empty
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
export VLLM_TARGET_DEVICE=empty
|
||||||
|
%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
|
||||||
|
* Fri Feb 28 2025 renwenjie<renwenjie5@huawei.com> - 0.6.6.post1-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user