# Generated by rust2rpm 27 # * tests require a running DBus session %bcond check 0 %global debug_package %{nil} %global crate secret-service Name: rust-secret-service Version: 5.0.0 Release: %autorelease Summary: Library to interface with Secret Service API License: MIT OR Apache-2.0 URL: https://crates.io/crates/secret-service Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove test-with dev-dependency; it is not packaged, it has unpackaged # dependencies of its own, and we can work around the need for it. Patch: secret-service-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Library to interface with Secret Service API.} %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 %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/NOTES_ON_PORT.md %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}+crypto-openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crypto-openssl-devel %{_description} This package contains library source intended for building other packages which use the "crypto-openssl" feature of the "%{crate}" crate. %files -n %{name}+crypto-openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crypto-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crypto-rust-devel %{_description} This package contains library source intended for building other packages which use the "crypto-rust" feature of the "%{crate}" crate. %files -n %{name}+crypto-rust-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt-async-io-crypto-openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt-async-io-crypto-openssl-devel %{_description} This package contains library source intended for building other packages which use the "rt-async-io-crypto-openssl" feature of the "%{crate}" crate. %files -n %{name}+rt-async-io-crypto-openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt-async-io-crypto-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt-async-io-crypto-rust-devel %{_description} This package contains library source intended for building other packages which use the "rt-async-io-crypto-rust" feature of the "%{crate}" crate. %files -n %{name}+rt-async-io-crypto-rust-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt-tokio-crypto-openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt-tokio-crypto-openssl-devel %{_description} This package contains library source intended for building other packages which use the "rt-tokio-crypto-openssl" feature of the "%{crate}" crate. %files -n %{name}+rt-tokio-crypto-openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt-tokio-crypto-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt-tokio-crypto-rust-devel %{_description} This package contains library source intended for building other packages which use the "rt-tokio-crypto-rust" feature of the "%{crate}" crate. %files -n %{name}+rt-tokio-crypto-rust-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # The test-with dev-dependency is used only to check for the GITHUB_ACTIONS # environment variable. Patch that out so that we can drop the dependency. sed -r -i 's@^([[:blank:]]*)(#\[test_with::)@\1//\2@' \ src/blocking/mod.rs src/lib.rs %generate_buildrequires %cargo_generate_buildrequires -f rt-tokio-crypto-rust %build %cargo_build -f rt-tokio-crypto-rust %install %cargo_install -f rt-tokio-crypto-rust %if %{with check} %check %cargo_test -f rt-tokio-crypto-rust %endif %changelog %autochangelog