From 94c9b4e5b71c683dd09855bb3599757ca55b2b71 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 14:41:02 +0100 Subject: [PATCH] Update to version 0.2.1 --- .gitignore | 1 + README.md | 3 -- piper-fix-metadata.diff | 25 ++++++++++ rust-piper.spec | 104 ++++++++++++++++++++++++++++++---------- sources | 2 +- 5 files changed, 107 insertions(+), 28 deletions(-) delete mode 100644 README.md create mode 100644 piper-fix-metadata.diff diff --git a/.gitignore b/.gitignore index c062ceb..611c716 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /piper-0.1.2.crate /piper-0.1.3.crate +/piper-0.2.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index c0a1f9b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-piper - -The rust-piper package \ No newline at end of file diff --git a/piper-fix-metadata.diff b/piper-fix-metadata.diff new file mode 100644 index 0000000..271960d --- /dev/null +++ b/piper-fix-metadata.diff @@ -0,0 +1,25 @@ +--- piper-0.2.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ piper-0.2.1/Cargo.toml 2023-10-08T21:09:34.238288+00:00 +@@ -22,10 +22,6 @@ + readme = "README.md" + license = "MIT OR Apache-2.0" + repository = "https://github.com/notgull/piper" +- +-[[bench]] +-name = "pipe_comparison" +-harness = false + + [dependencies.atomic-waker] + version = "1.1.0" +@@ -58,11 +54,6 @@ + [dev-dependencies.async-io] + version = "1.13.0" + +-[dev-dependencies.criterion] +-version = "0.4.0" +-features = ["cargo_bench_support"] +-default-features = false +- + [dev-dependencies.easy-parallel] + version = "3.2.0" + diff --git a/rust-piper.spec b/rust-piper.spec index 1726846..f8e1f48 100644 --- a/rust-piper.spec +++ b/rust-piper.spec @@ -1,26 +1,22 @@ -# Generated by rust2rpm 15 -# * The tests are broken, https://github.com/stjepang/piper/issues/23 -%bcond_with check +# Generated by rust2rpm 25 +%bcond_without check %global debug_package %{nil} %global crate piper -Name: rust-%{crate} -Version: 0.1.3 +Name: rust-piper +Version: 0.2.1 Release: %autorelease Summary: Async pipes, channels, mutexes, and more -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/piper Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: piper-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Async pipes, channels, mutexes, and more.} @@ -33,13 +29,15 @@ 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-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,16 +45,74 @@ 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 + +%package -n %{name}+futures-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-io-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures-io" feature of the "%{crate}" crate. + +%files -n %{name}+futures-io-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+portable-atomic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+portable-atomic-devel %{_description} + +This package contains library source intended for building other packages which +use the "portable-atomic" feature of the "%{crate}" crate. + +%files -n %{name}+portable-atomic-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+portable-atomic-util-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+portable-atomic-util-devel %{_description} + +This package contains library source intended for building other packages which +use the "portable-atomic-util" feature of the "%{crate}" crate. + +%files -n %{name}+portable-atomic-util-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+portable_atomic_crate-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+portable_atomic_crate-devel %{_description} + +This package contains library source intended for building other packages which +use the "portable_atomic_crate" feature of the "%{crate}" crate. + +%files -n %{name}+portable_atomic_crate-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 -# Depends on smol, but without a dependency -rm -v examples/foo.rs +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index bbd58f7..e7984bb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (piper-0.1.3.crate) = 58c49eba21bd2744273b5b5c4a74a3441e47a130366bbb7aa9f69557db76c64d931aef536f375639b4479c612bceb6757aff7f44002966ef4c98f365df86ecbd +SHA512 (piper-0.2.1.crate) = 86d2195b8811bc2d30050e977925a947b175ca674e99497b7202dd8c515e09fb83e42f389ed3c6b554dc2c6480892bfd26c91fee463115ef1c710aaea858afe1