diff --git a/langchain_openai-0.3.16.tar.gz b/langchain_openai-0.3.16.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e0ba12af42bc25166e9379a5452e19d7091777c3 Binary files /dev/null and b/langchain_openai-0.3.16.tar.gz differ diff --git a/python-langchain-openai.spec b/python-langchain-openai.spec new file mode 100644 index 0000000000000000000000000000000000000000..fdb0ece46b1a6254ccfcd8024a21700504382cd8 --- /dev/null +++ b/python-langchain-openai.spec @@ -0,0 +1,67 @@ +%global _empty_manifest_terminate_build 0 +Name: python-langchain-openai +Version: 0.3.16 +Release: 1 +Summary: An integration package connecting OpenAI and LangChain +License: MIT +URL: https://pypi.org/project/langchain-openai/ +Source0: https://files.pythonhosted.org/packages/53/fb/536562278d932c80e6a7143f46f14cc3006c0828d77c4cb6a69be112519c/langchain_openai-0.3.16.tar.gz +BuildArch: noarch + +Requires: (python3-langchain-core<1.0.0 with python3-langchain-core>=0.3.58) +Requires: (python3-openai<2.0.0 with python3-openai>=1.68.2) +Requires: (python3-tiktoken<1 with python3-tiktoken>=0.7) + +%description +This package contains the LangChain integrations for OpenAI through their `openai` SDK. + +%package -n python3-langchain-openai +Summary: An integration package connecting OpenAI and LangChain +Provides: python-langchain-openai +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pdm-backend +%description -n python3-langchain-openai +# langchain-openai + +This package contains the LangChain integrations for OpenAI through their `openai` SDK. +%prep +%autosetup -n langchain_openai-0.3.16 + +%build +%pyproject_build + +%install +%pyproject_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} +touch filelist.lst +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-langchain-openai -f filelist.lst +%{python3_sitelib}/* + +%changelog +* Sat May 10 2025 Python_Bot - 0.3.16-1 +- Package Spec generated