# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate cradle Name: rust-%{crate} Version: 0.2.2 Release: %autorelease Summary: Execute child processes with ease # Upstream license specification: CC0-1.0 License: CC0 URL: https://crates.io/crates/cradle Source: %{crates_source} # Initial patched metadata # - Relax bitflags (only forced to keep compatibility with old rustc) # - Bump gag to 1, https://github.com/soenkehahn/cradle/pull/212 Patch0: cradle-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Execute child processes with ease.} %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 %doc %{crate_instdir}/README.md %doc %{crate_instdir}/README.php %{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}+executable-path-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+executable-path-devel %{_description} This package contains library source intended for building other packages which use the "executable-path" feature of the "%{crate}" crate. %files -n %{name}+executable-path-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gag-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gag-devel %{_description} This package contains library source intended for building other packages which use the "gag" feature of the "%{crate}" crate. %files -n %{name}+gag-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nix-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nix-devel %{_description} This package contains library source intended for building other packages which use the "nix" feature of the "%{crate}" crate. %files -n %{name}+nix-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test_executables-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test_executables-devel %{_description} This package contains library source intended for building other packages which use the "test_executables" feature of the "%{crate}" crate. %files -n %{name}+test_executables-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a echo 'vim-common' %build %cargo_build -a %install %cargo_install -a # We don't actually need this rm -rfv %{buildroot}%{_bindir}/context_integration_tests \ %{buildroot}%{_bindir}/test_executables_helper \ %{buildroot}%{_bindir}/test_executables_panic %if %{with check} %check # https://github.com/Stebalien/gag-rs/blob/master/README.md # * work around IO redirection in test harnesses with --nocapture # * skip a test that tries to read files that are not present in published # crates %cargo_test -a -- -- --nocapture --skip memory_test %endif %changelog %autochangelog