## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate async-openai Name: rust-async-openai Version: 0.32.4 Release: %autorelease Summary: Rust library for OpenAI License: MIT URL: https://crates.io/crates/async-openai Source: %{crates_source} Source1: https://raw.githubusercontent.com/64bit/async-openai/refs/tags/async-openai-v%{version}/LICENSE # Automatically generated patch to strip dependencies and normalize metadata Patch: async-openai-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust library for OpenAI.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+_api-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_api-devel %{_description} This package contains library source intended for building other packages which use the "_api" feature of the "%{crate}" crate. %files -n %{name}+_api-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+administration-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+administration-devel %{_description} This package contains library source intended for building other packages which use the "administration" feature of the "%{crate}" crate. %files -n %{name}+administration-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+administration-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+administration-types-devel %{_description} This package contains library source intended for building other packages which use the "administration-types" feature of the "%{crate}" crate. %files -n %{name}+administration-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+assistant-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assistant-devel %{_description} This package contains library source intended for building other packages which use the "assistant" feature of the "%{crate}" crate. %files -n %{name}+assistant-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+assistant-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assistant-types-devel %{_description} This package contains library source intended for building other packages which use the "assistant-types" feature of the "%{crate}" crate. %files -n %{name}+assistant-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+audio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+audio-devel %{_description} This package contains library source intended for building other packages which use the "audio" feature of the "%{crate}" crate. %files -n %{name}+audio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+audio-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+audio-types-devel %{_description} This package contains library source intended for building other packages which use the "audio-types" feature of the "%{crate}" crate. %files -n %{name}+audio-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+batch-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+batch-devel %{_description} This package contains library source intended for building other packages which use the "batch" feature of the "%{crate}" crate. %files -n %{name}+batch-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+batch-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+batch-types-devel %{_description} This package contains library source intended for building other packages which use the "batch-types" feature of the "%{crate}" crate. %files -n %{name}+batch-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+byot-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+byot-devel %{_description} This package contains library source intended for building other packages which use the "byot" feature of the "%{crate}" crate. %files -n %{name}+byot-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chat-completion-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chat-completion-devel %{_description} This package contains library source intended for building other packages which use the "chat-completion" feature of the "%{crate}" crate. %files -n %{name}+chat-completion-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chat-completion-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chat-completion-types-devel %{_description} This package contains library source intended for building other packages which use the "chat-completion-types" feature of the "%{crate}" crate. %files -n %{name}+chat-completion-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chatkit-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chatkit-devel %{_description} This package contains library source intended for building other packages which use the "chatkit" feature of the "%{crate}" crate. %files -n %{name}+chatkit-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chatkit-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chatkit-types-devel %{_description} This package contains library source intended for building other packages which use the "chatkit-types" feature of the "%{crate}" crate. %files -n %{name}+chatkit-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+completion-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+completion-types-devel %{_description} This package contains library source intended for building other packages which use the "completion-types" feature of the "%{crate}" crate. %files -n %{name}+completion-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+completions-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+completions-devel %{_description} This package contains library source intended for building other packages which use the "completions" feature of the "%{crate}" crate. %files -n %{name}+completions-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+container-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+container-devel %{_description} This package contains library source intended for building other packages which use the "container" feature of the "%{crate}" crate. %files -n %{name}+container-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+container-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+container-types-devel %{_description} This package contains library source intended for building other packages which use the "container-types" feature of the "%{crate}" crate. %files -n %{name}+container-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+embedding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+embedding-devel %{_description} This package contains library source intended for building other packages which use the "embedding" feature of the "%{crate}" crate. %files -n %{name}+embedding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+embedding-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+embedding-types-devel %{_description} This package contains library source intended for building other packages which use the "embedding-types" feature of the "%{crate}" crate. %files -n %{name}+embedding-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+eval-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+eval-types-devel %{_description} This package contains library source intended for building other packages which use the "eval-types" feature of the "%{crate}" crate. %files -n %{name}+eval-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+evals-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+evals-devel %{_description} This package contains library source intended for building other packages which use the "evals" feature of the "%{crate}" crate. %files -n %{name}+evals-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+file-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+file-devel %{_description} This package contains library source intended for building other packages which use the "file" feature of the "%{crate}" crate. %files -n %{name}+file-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+file-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+file-types-devel %{_description} This package contains library source intended for building other packages which use the "file-types" feature of the "%{crate}" crate. %files -n %{name}+file-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+finetuning-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+finetuning-devel %{_description} This package contains library source intended for building other packages which use the "finetuning" feature of the "%{crate}" crate. %files -n %{name}+finetuning-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+finetuning-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+finetuning-types-devel %{_description} This package contains library source intended for building other packages which use the "finetuning-types" feature of the "%{crate}" crate. %files -n %{name}+finetuning-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full-devel %{_description} This package contains library source intended for building other packages which use the "full" feature of the "%{crate}" crate. %files -n %{name}+full-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+grader-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+grader-devel %{_description} This package contains library source intended for building other packages which use the "grader" feature of the "%{crate}" crate. %files -n %{name}+grader-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+grader-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+grader-types-devel %{_description} This package contains library source intended for building other packages which use the "grader-types" feature of the "%{crate}" crate. %files -n %{name}+grader-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-devel %{_description} This package contains library source intended for building other packages which use the "image" feature of the "%{crate}" crate. %files -n %{name}+image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-types-devel %{_description} This package contains library source intended for building other packages which use the "image-types" feature of the "%{crate}" crate. %files -n %{name}+image-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+model-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+model-devel %{_description} This package contains library source intended for building other packages which use the "model" feature of the "%{crate}" crate. %files -n %{name}+model-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+model-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+model-types-devel %{_description} This package contains library source intended for building other packages which use the "model-types" feature of the "%{crate}" crate. %files -n %{name}+model-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+moderation-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+moderation-devel %{_description} This package contains library source intended for building other packages which use the "moderation" feature of the "%{crate}" crate. %files -n %{name}+moderation-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+moderation-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+moderation-types-devel %{_description} This package contains library source intended for building other packages which use the "moderation-types" feature of the "%{crate}" crate. %files -n %{name}+moderation-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+native-tls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-tls-devel %{_description} This package contains library source intended for building other packages which use the "native-tls" feature of the "%{crate}" crate. %files -n %{name}+native-tls-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+native-tls-vendored-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-tls-vendored-devel %{_description} This package contains library source intended for building other packages which use the "native-tls-vendored" feature of the "%{crate}" crate. %files -n %{name}+native-tls-vendored-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+realtime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+realtime-devel %{_description} This package contains library source intended for building other packages which use the "realtime" feature of the "%{crate}" crate. %files -n %{name}+realtime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+realtime-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+realtime-types-devel %{_description} This package contains library source intended for building other packages which use the "realtime-types" feature of the "%{crate}" crate. %files -n %{name}+realtime-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+response-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+response-types-devel %{_description} This package contains library source intended for building other packages which use the "response-types" feature of the "%{crate}" crate. %files -n %{name}+response-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+responses-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+responses-devel %{_description} This package contains library source intended for building other packages which use the "responses" feature of the "%{crate}" crate. %files -n %{name}+responses-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-devel %{_description} This package contains library source intended for building other packages which use the "rustls" feature of the "%{crate}" crate. %files -n %{name}+rustls-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-webpki-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-webpki-roots-devel %{_description} This package contains library source intended for building other packages which use the "rustls-webpki-roots" feature of the "%{crate}" crate. %files -n %{name}+rustls-webpki-roots-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+types-devel %{_description} This package contains library source intended for building other packages which use the "types" feature of the "%{crate}" crate. %files -n %{name}+types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+upload-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+upload-devel %{_description} This package contains library source intended for building other packages which use the "upload" feature of the "%{crate}" crate. %files -n %{name}+upload-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+upload-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+upload-types-devel %{_description} This package contains library source intended for building other packages which use the "upload-types" feature of the "%{crate}" crate. %files -n %{name}+upload-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vectorstore-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vectorstore-devel %{_description} This package contains library source intended for building other packages which use the "vectorstore" feature of the "%{crate}" crate. %files -n %{name}+vectorstore-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vectorstore-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vectorstore-types-devel %{_description} This package contains library source intended for building other packages which use the "vectorstore-types" feature of the "%{crate}" crate. %files -n %{name}+vectorstore-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+video-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+video-devel %{_description} This package contains library source intended for building other packages which use the "video" feature of the "%{crate}" crate. %files -n %{name}+video-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+video-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+video-types-devel %{_description} This package contains library source intended for building other packages which use the "video-types" feature of the "%{crate}" crate. %files -n %{name}+video-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+webhook-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+webhook-devel %{_description} This package contains library source intended for building other packages which use the "webhook" feature of the "%{crate}" crate. %files -n %{name}+webhook-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+webhook-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+webhook-types-devel %{_description} This package contains library source intended for building other packages which use the "webhook-types" feature of the "%{crate}" crate. %files -n %{name}+webhook-types-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Tue Jan 27 2026 John Doe - 0.32.4-1 - Uncommitted changes ## END: Generated by rpmautospec