# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate libsqlite3-sys Name: rust-libsqlite3-sys Version: 0.23.2 Release: %autorelease Summary: Native bindings to the libsqlite3 library License: MIT URL: https://crates.io/crates/libsqlite3-sys Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * bump bindgen from 0.59 to 0.63 # * remove feature for bundling sqlite and sqlcipher # * drop windows- and WASM-specific features Patch: libsqlite3-sys-fix-metadata.diff Patch: Restrict-vcpkg-feature.patch BuildRequires: rust-packaging >= 21 %global _description %{expand: Native bindings to the libsqlite3 library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(sqlite3) >= 3.7.16 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md %doc %{crate_instdir}/Upgrade.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}+bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bindgen-devel %{_description} This package contains library source intended for building other packages which use the "bindgen" feature of the "%{crate}" crate. %files -n %{name}+bindgen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+buildtime_bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+buildtime_bindgen-devel %{_description} This package contains library source intended for building other packages which use the "buildtime_bindgen" feature of the "%{crate}" crate. %files -n %{name}+buildtime_bindgen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cc-devel %{_description} This package contains library source intended for building other packages which use the "cc" feature of the "%{crate}" crate. %files -n %{name}+cc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+in_gecko-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+in_gecko-devel %{_description} This package contains library source intended for building other packages which use the "in_gecko" feature of the "%{crate}" crate. %files -n %{name}+in_gecko-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+min_sqlite_version_3_6_23-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+min_sqlite_version_3_6_23-devel %{_description} This package contains library source intended for building other packages which use the "min_sqlite_version_3_6_23" feature of the "%{crate}" crate. %files -n %{name}+min_sqlite_version_3_6_23-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+min_sqlite_version_3_6_8-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+min_sqlite_version_3_6_8-devel %{_description} This package contains library source intended for building other packages which use the "min_sqlite_version_3_6_8" feature of the "%{crate}" crate. %files -n %{name}+min_sqlite_version_3_6_8-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+min_sqlite_version_3_7_16-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+min_sqlite_version_3_7_16-devel %{_description} This package contains library source intended for building other packages which use the "min_sqlite_version_3_7_16" feature of the "%{crate}" crate. %files -n %{name}+min_sqlite_version_3_7_16-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+min_sqlite_version_3_7_7-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+min_sqlite_version_3_7_7-devel %{_description} This package contains library source intended for building other packages which use the "min_sqlite_version_3_7_7" feature of the "%{crate}" crate. %files -n %{name}+min_sqlite_version_3_7_7-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+openssl-sys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-sys-devel %{_description} This package contains library source intended for building other packages which use the "openssl-sys" feature of the "%{crate}" crate. %files -n %{name}+openssl-sys-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pkg-config-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pkg-config-devel %{_description} This package contains library source intended for building other packages which use the "pkg-config" feature of the "%{crate}" crate. %files -n %{name}+pkg-config-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}+session-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+session-devel %{_description} This package contains library source intended for building other packages which use the "session" feature of the "%{crate}" crate. %files -n %{name}+session-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sqlcipher-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(sqlcipher) %description -n %{name}+sqlcipher-devel %{_description} This package contains library source intended for building other packages which use the "sqlcipher" feature of the "%{crate}" crate. %files -n %{name}+sqlcipher-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unlock_notify-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unlock_notify-devel %{_description} This package contains library source intended for building other packages which use the "unlock_notify" feature of the "%{crate}" crate. %files -n %{name}+unlock_notify-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with-asan-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-asan-devel %{_description} This package contains library source intended for building other packages which use the "with-asan" feature of the "%{crate}" crate. %files -n %{name}+with-asan-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 # * remove bundled copies of sqlite and sqlcipher rm -vr bindgen-bindings sqlite3 sqlcipher upgrade.sh %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'pkgconfig(sqlcipher)' echo 'pkgconfig(sqlite3) >= 3.7.16' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog