## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 27 # * resolve dependency loop with sqlx %bcond check 0 %global debug_package %{nil} %global crate sqlx-sqlite Name: rust-sqlx-sqlite Version: 0.8.6 Release: %autorelease Summary: SQLite driver implementation for SQLx License: MIT OR Apache-2.0 URL: https://crates.io/crates/sqlx-sqlite Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Relax libsqlite3 dependency # * Drop unpackaged libsqlite3 features Patch: sqlx-sqlite-fix-metadata.diff # * Gate (de)serealize interface by feature. # * The Cargo.toml is not patched to use this feature for now because there are # no users right now. # * Partially cherry-picked from: # * https://github.com/launchbadge/sqlx/commit/21598cfec607092f5322c42890b301acc570352a Patch2: rust-sqlx-sqlite-0.8.6-Gate_deserealize.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: SQLite driver implementation for SQLx. Not for direct use; see the `sqlx` crate for details.} %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 %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %{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}+any-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+any-devel %{_description} This package contains library source intended for building other packages which use the "any" feature of the "%{crate}" crate. %files -n %{name}+any-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chrono-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono-devel %{_description} This package contains library source intended for building other packages which use the "chrono" feature of the "%{crate}" crate. %files -n %{name}+chrono-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+migrate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+migrate-devel %{_description} This package contains library source intended for building other packages which use the "migrate" feature of the "%{crate}" crate. %files -n %{name}+migrate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+offline-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+offline-devel %{_description} This package contains library source intended for building other packages which use the "offline" feature of the "%{crate}" crate. %files -n %{name}+offline-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+preupdate-hook-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+preupdate-hook-devel %{_description} This package contains library source intended for building other packages which use the "preupdate-hook" feature of the "%{crate}" crate. %files -n %{name}+preupdate-hook-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+regexp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regexp-devel %{_description} This package contains library source intended for building other packages which use the "regexp" feature of the "%{crate}" crate. %files -n %{name}+regexp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unbundled-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unbundled-devel %{_description} This package contains library source intended for building other packages which use the "unbundled" feature of the "%{crate}" crate. %files -n %{name}+unbundled-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+uuid-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+uuid-devel %{_description} This package contains library source intended for building other packages which use the "uuid" feature of the "%{crate}" crate. %files -n %{name}+uuid-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check %cargo_test -a %endif %changelog ## START: Generated by rpmautospec * Fri Dec 05 2025 Cristian Le - 0.8.6-3 - Unblock epel9 update * Fri Jul 25 2025 Fedora Release Engineering - 0.8.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue May 20 2025 Cristian Le - 0.8.6-1 - Update to version 0.8.6; Fixes RHBZ#2335539 * Sun Jan 19 2025 Fedora Release Engineering - 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Sep 12 2024 Cristian Le - 0.8.2-1 - import rhbz#2279546 ## END: Generated by rpmautospec