From dc65f24118340a12d63b71c740efb28a9013db1a Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:08:55 +0300 Subject: [PATCH] import rust-concurrent-queue-2.5.0-2.el10 --- .gitignore | 1 + .rust-concurrent-queue.metadata | 1 + .../concurrent-queue-fix-metadata-auto.diff | 12 ++ SOURCES/concurrent-queue-fix-metadata.diff | 25 +++ SPECS/rust-concurrent-queue.spec | 167 ++++++++++++++++++ 5 files changed, 206 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-concurrent-queue.metadata create mode 100644 SOURCES/concurrent-queue-fix-metadata-auto.diff create mode 100644 SOURCES/concurrent-queue-fix-metadata.diff create mode 100644 SPECS/rust-concurrent-queue.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f238381 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/concurrent-queue-2.5.0.crate diff --git a/.rust-concurrent-queue.metadata b/.rust-concurrent-queue.metadata new file mode 100644 index 0000000..ae5f1bd --- /dev/null +++ b/.rust-concurrent-queue.metadata @@ -0,0 +1 @@ +c487c24f3a875e7e8123474a1d64d6a22c188fcc SOURCES/concurrent-queue-2.5.0.crate diff --git a/SOURCES/concurrent-queue-fix-metadata-auto.diff b/SOURCES/concurrent-queue-fix-metadata-auto.diff new file mode 100644 index 0000000..f15ce50 --- /dev/null +++ b/SOURCES/concurrent-queue-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- concurrent-queue-2.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ concurrent-queue-2.5.0/Cargo.toml 2024-05-08T18:20:35.824696+00:00 +@@ -64,9 +64,3 @@ + default = ["std"] + std = [] + +-[target."cfg(loom)".dependencies.loom] +-version = "0.7" +-optional = true +- +-[target."cfg(target_family = \"wasm\")".dev-dependencies.wasm-bindgen-test] +-version = "0.3" diff --git a/SOURCES/concurrent-queue-fix-metadata.diff b/SOURCES/concurrent-queue-fix-metadata.diff new file mode 100644 index 0000000..2d3ac9b --- /dev/null +++ b/SOURCES/concurrent-queue-fix-metadata.diff @@ -0,0 +1,25 @@ +--- concurrent-queue-2.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ concurrent-queue-2.5.0/Cargo.toml 2024-05-08T18:20:46.719744+00:00 +@@ -36,10 +36,6 @@ + [lib] + bench = false + +-[[bench]] +-name = "bench" +-harness = false +- + [dependencies.crossbeam-utils] + version = "0.8.11" + default-features = false +@@ -47,11 +43,6 @@ + [dependencies.portable-atomic] + version = "1" + optional = true +-default-features = false +- +-[dev-dependencies.criterion] +-version = "0.5" +-features = ["cargo_bench_support"] + default-features = false + + [dev-dependencies.easy-parallel] diff --git a/SPECS/rust-concurrent-queue.spec b/SPECS/rust-concurrent-queue.spec new file mode 100644 index 0000000..9b306a4 --- /dev/null +++ b/SPECS/rust-concurrent-queue.spec @@ -0,0 +1,167 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate concurrent-queue + +Name: rust-concurrent-queue +Version: 2.5.0 +Release: %autorelease +Summary: Concurrent multi-producer multi-consumer queue + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/concurrent-queue +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: concurrent-queue-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: concurrent-queue-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Concurrent multi-producer multi-consumer queue.} + +%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}/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}+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}+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} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 2.5.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed May 08 2024 Fabio Valentini - 2.5.0-1 +- Update to version 2.5.0; Fixes RHBZ#2277376 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 11 2024 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0; Fixes RHBZ#2252585 + +* Tue Sep 26 2023 Fabio Valentini - 2.3.0-1 +- Update to version 2.3.0; Fixes RHBZ#2240656 + +* Fri Jul 21 2023 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Apr 15 2023 Fabio Valentini - 2.2.0-1 +- Update to version 2.2.0; Fixes RHBZ#2185271 + +* Sat Jan 28 2023 Fabio Valentini - 2.1.0-1 +- Update to version 2.1.0; Fixes RHBZ#2161060 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Dec 04 2022 Fabio Valentini - 2.0.0-1 +- Update to version 2.0.0; Fixes RHBZ#2141178 + +* Wed Jul 27 2022 Fabio Valentini - 1.2.4-1 +- Update to version 1.2.4; Fixes RHBZ#2111313 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jul 18 2022 Fabio Valentini - 1.2.3-2 +- Skip test suite on s390x (failures when compiled with LLVM 13) + +* Mon Jul 18 2022 Fabio Valentini - 1.2.3-1 +- Update to version 1.2.3; Fixes RHBZ#2107905 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 06 2021 Fabio Valentini - 1.2.2-1 +- Initial package + +## END: Generated by rpmautospec