已合并
!1 add python-langchain #3
ShineBurWang创建于 2025年6月11日
!1 add python-langchain #3
已合并
ShineBurWang创建于 2025年6月11日
共 2 个文件变更+88-0
Binary files do not support preview
@@ -0,0 +1,88 @@
1+%global _empty_manifest_terminate_build 0
2+Name: python-langchain
3+Version: 0.3.25
4+Release: 1
5+Summary: Building applications with LLMs through composability
6+License: MIT
7+URL: https://pypi.org/project/langchain/
8+Source0: https://files.pythonhosted.org/packages/fc/f9/a256609096a9fc7a1b3a6300a97000091efabdf21555a97988f93d4d9258/langchain-0.3.25.tar.gz
9+BuildArch: noarch
10+ 
11+Requires: (python3-langchain-core<1.0.0 with python3-langchain-core>=0.3.58)
12+Requires: (python3-langchain-text-splitters<1.0.0 with python3-langchain-text-splitters>=0.3.8)
13+Requires: (python3-langsmith<0.4 with python3-langsmith>=0.1.17)
14+Requires: (python3-pydantic<3.0.0 with python3-pydantic>=2.7.4)
15+Requires: (python3-SQLAlchemy<3 with python3-SQLAlchemy>=1.4)
16+Requires: (python3-requests<3 with python3-requests>=2)
17+Requires: (python3-PyYAML>=5.3)
18+Requires: (python3-async-timeout<5.0.0 with python3-async-timeout>=4.0.0)
19+Requires: (python3-langchain-community)
20+Requires: (python3-langchain-anthropic)
21+Requires: (python3-langchain-openai)
22+Requires: (python3-langchain-azure-ai)
23+Requires: (python3-langchain-cohere)
24+Requires: (python3-langchain-google-vertexai)
25+Requires: (python3-langchain-google-genai)
26+Requires: (python3-langchain-fireworks)
27+Requires: (python3-langchain-ollama)
28+Requires: (python3-langchain-together)
29+Requires: (python3-langchain-mistralai)
30+Requires: (python3-langchain-huggingface)
31+Requires: (python3-langchain-groq)
32+Requires: (python3-langchain-aws)
33+Requires: (python3-langchain-deepseek)
34+Requires: (python3-langchain-xai)
35+Requires: (python3-langchain-perplexity)
36+ 
37+%description
38+Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
39+ 
40+%package -n python3-langchain
41+Summary: Building applications with LLMs through composability
42+Provides: python-langchain
43+BuildRequires: python3-devel
44+BuildRequires: python3-setuptools
45+BuildRequires: python3-pip
46+BuildRequires: python3-wheel
47+BuildRequires: python-pdm-backend
48+%description -n python3-langchain
49+Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
50+ 
51+%prep
52+%autosetup -n langchain-0.3.25
53+ 
54+%build
55+%pyproject_build
56+ 
57+%install
58+%pyproject_install
59+install -d -m755 %{buildroot}/%{_pkgdocdir}
60+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
61+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
62+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
63+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
64+pushd %{buildroot}
65+touch filelist.lst
66+if [ -d usr/lib64 ]; then
67+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
68+fi
69+if [ -d usr/bin ]; then
70+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
71+fi
72+if [ -d usr/sbin ]; then
73+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
74+fi
75+touch doclist.lst
76+if [ -d usr/share/man ]; then
77+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
78+fi
79+popd
80+mv %{buildroot}/filelist.lst .
81+mv %{buildroot}/doclist.lst .
82+ 
83+%files -n python3-langchain -f filelist.lst
84+%{python3_sitelib}/*
85+ 
86+%changelog
87+* Sat May 10 2025 Python_Bot <Python_Bot@openeuler.org> - 0.3.25-1
88+- Package Spec generated