diff --git a/.gitignore b/.gitignore index b800dbd..a800b85 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /duct-0.13.3.crate /duct-0.13.4.crate /duct-0.13.5.crate +/duct-0.13.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index ca98c1d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-duct - -The rust-duct package \ No newline at end of file diff --git a/duct-fix-metadata.diff b/duct-fix-metadata.diff new file mode 100644 index 0000000..ad8a2c7 --- /dev/null +++ b/duct-fix-metadata.diff @@ -0,0 +1,10 @@ +--- duct-0.13.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ duct-0.13.6/Cargo.toml 2023-05-17T11:06:45.960536+00:00 +@@ -26,6 +26,7 @@ + ] + license = "MIT" + repository = "https://github.com/oconnor663/duct.rs" ++autobins = false + + [dependencies.once_cell] + version = "1.0.1" diff --git a/rust-duct.spec b/rust-duct.spec index 72826d4..be5de48 100644 --- a/rust-duct.spec +++ b/rust-duct.spec @@ -1,31 +1,26 @@ -# Generated by rust2rpm 16 -%bcond_without check +# Generated by rust2rpm 24 +# * helper binaries for tests are not built +%bcond_with check %global debug_package %{nil} -# https://github.com/oconnor663/duct.rs/issues/73 -%global __cargo_is_bin() false - %global crate duct -Name: rust-%{crate} -Version: 0.13.5 +Name: rust-duct +Version: 0.13.6 Release: %autorelease Summary: Library for running child processes -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/duct Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * prevent test binaries from being built and shipped +Patch: duct-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Library for running child processes.} +A library for running child processes.} %description %{_description} @@ -35,13 +30,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +44,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -61,9 +56,6 @@ which use "default" feature of "%{crate}" crate. %generate_buildrequires %cargo_generate_buildrequires -%if %{with check} -echo '/usr/bin/python3' -%endif %build %cargo_build diff --git a/sources b/sources index bef8b76..6c9d14c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (duct-0.13.5.crate) = 5b8442d956f7eb1186235ac61018255590cb5a3178af90bd97b7610857959e35462e6a013e6aa9941916888e99d7d07c9a3553a8109284d9df03183ead507d89 +SHA512 (duct-0.13.6.crate) = bf6a69fc2eda5dbf79dd785eea131d5c9ee38ffa3c99e7ffb9fcd47ef0beae8b3e5e75ef78172e54ef076531a38c4598880694a7b93573ffeffd3861e7776369