## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec # Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate libsqlite3-sys Name: rust-%{crate} Version: 0.23.2 Release: %autorelease Summary: Native bindings to the libsqlite3 library # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/libsqlite3-sys Source: %{crates_source} # Initial patched metadata # * remove feature for bundling sqlite and sqlcipher # * drop windows- and WASM-specific features Patch0: libsqlite3-sys-fix-metadata.diff Patch1: Restrict-vcpkg-feature.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %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 LICENSE sqlcipher/LICENSE %doc README.md Upgrade.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 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 * Sat Jul 23 2022 Fedora Release Engineering 0.23.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering 0.23.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 09 2021 Fabio Valentini 0.23.2-1 - Update to version 0.23.2; Fixes RHBZ#2030144 * Fri Nov 12 2021 Robert-André Mauchin 0.23.1-1 - Update to 0.23.1 Close: rhbz#1946044 * Fri Jul 23 2021 Fedora Release Engineering - 0.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Mar 31 21:56:13 CEST 2021 Robert-André Mauchin - 0.20.1-2 - Bump to bindgen 0.57 * Fri Mar 05 2021 Fabio Valentini - 0.20.1-1 - Update to version 0.20.1. * Wed Jan 27 2021 Fedora Release Engineering - 0.18.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 27 2020 Fabio Valentini - 0.18.0-4 - Bump to bindgen 0.56. * Wed Jul 29 2020 Fedora Release Engineering - 0.18.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 30 2020 Josh Stone - 0.18.0-2 - Bump to bindgen 0.54 * Sat May 16 09:59:25 CEST 2020 Igor Raits - 0.18.0-1 - Initial package