commit 30132a8743c29b52e53f521bb40d414ea0c03db5 Author: MSVSphere Packaging Team Date: Fri Dec 20 17:52:59 2024 +0300 import rust-tinyvec-1.8.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7cb20c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tinyvec-1.8.0.crate diff --git a/.rust-tinyvec.metadata b/.rust-tinyvec.metadata new file mode 100644 index 0000000..8c6e885 --- /dev/null +++ b/.rust-tinyvec.metadata @@ -0,0 +1 @@ +a6bb46e43da953b295ac07f3bd482ea381553997 SOURCES/tinyvec-1.8.0.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..035623a --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused debugger_visualizer support", + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/SOURCES/tinyvec-fix-metadata.diff b/SOURCES/tinyvec-fix-metadata.diff new file mode 100644 index 0000000..0746de8 --- /dev/null +++ b/SOURCES/tinyvec-fix-metadata.diff @@ -0,0 +1,61 @@ +--- tinyvec-1.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tinyvec-1.8.0/Cargo.toml 2024-08-09T13:09:16.202528+00:00 +@@ -77,29 +77,8 @@ + ] + + [[test]] +-name = "debugger_visualizer" +-path = "tests/debugger_visualizer.rs" +-test = false +-required-features = ["debugger_visualizer"] +- +-[[test]] + name = "arrayvec" + path = "tests/arrayvec.rs" +- +-[[bench]] +-name = "macros" +-path = "benches/macros.rs" +-harness = false +-required-features = ["alloc"] +- +-[[bench]] +-name = "smallvec" +-path = "benches/smallvec.rs" +-harness = false +-required-features = [ +- "alloc", +- "real_blackbox", +-] + + [dependencies.arbitrary] + version = "1" +@@ -114,15 +93,6 @@ + version = "0.1" + optional = true + +-[dev-dependencies.criterion] +-version = "0.3.0" +- +-[dev-dependencies.debugger_test] +-version = "0.1" +- +-[dev-dependencies.debugger_test_parser] +-version = "0.1" +- + [dev-dependencies.serde_test] + version = "1.0" + +@@ -131,12 +101,10 @@ + + [features] + alloc = ["tinyvec_macros"] +-debugger_visualizer = [] + default = [] + experimental_write_impl = [] + grab_spare_slice = [] + nightly_slice_partition_dedup = [] +-real_blackbox = ["criterion/real_blackbox"] + rustc_1_40 = [] + rustc_1_55 = [] + rustc_1_57 = ["rustc_1_55"] diff --git a/SPECS/rust-tinyvec.spec b/SPECS/rust-tinyvec.spec new file mode 100644 index 0000000..f8e7fa2 --- /dev/null +++ b/SPECS/rust-tinyvec.spec @@ -0,0 +1,306 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 tinyvec + +Name: rust-tinyvec +Version: 1.8.0 +Release: %autorelease +Summary: 100% safe vec-like data structures + +License: Zlib OR Apache-2.0 OR MIT +URL: https://crates.io/crates/tinyvec +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused debugger_visualizer support +# * drop unused, benchmark-only criterion dev-dependency +Patch: tinyvec-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +`tinyvec` provides 100% safe vec-like data structures.} + +%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.md +%license %{crate_instdir}/LICENSE-MIT.md +%license %{crate_instdir}/LICENSE-ZLIB.md +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+arbitrary-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arbitrary-devel %{_description} + +This package contains library source intended for building other packages which +use the "arbitrary" feature of the "%{crate}" crate. + +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+experimental_write_impl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+experimental_write_impl-devel %{_description} + +This package contains library source intended for building other packages which +use the "experimental_write_impl" feature of the "%{crate}" crate. + +%files -n %{name}+experimental_write_impl-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+grab_spare_slice-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+grab_spare_slice-devel %{_description} + +This package contains library source intended for building other packages which +use the "grab_spare_slice" feature of the "%{crate}" crate. + +%files -n %{name}+grab_spare_slice-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly_slice_partition_dedup-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly_slice_partition_dedup-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly_slice_partition_dedup" feature of the "%{crate}" crate. + +%files -n %{name}+nightly_slice_partition_dedup-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustc_1_40-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc_1_40-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustc_1_40" feature of the "%{crate}" crate. + +%files -n %{name}+rustc_1_40-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustc_1_55-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc_1_55-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustc_1_55" feature of the "%{crate}" crate. + +%files -n %{name}+rustc_1_55-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustc_1_57-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc_1_57-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustc_1_57" feature of the "%{crate}" crate. + +%files -n %{name}+rustc_1_57-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustc_1_61-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc_1_61-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustc_1_61" feature of the "%{crate}" crate. + +%files -n %{name}+rustc_1_61-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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 + +%package -n %{name}+tinyvec_macros-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tinyvec_macros-devel %{_description} + +This package contains library source intended for building other packages which +use the "tinyvec_macros" feature of the "%{crate}" crate. + +%files -n %{name}+tinyvec_macros-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 - 1.8.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Aug 09 2024 Fabio Valentini - 1.8.0-1 +- Update to version 1.8.0; Fixes RHBZ#2296350 + +* Sat Jul 20 2024 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jul 06 2024 Fabio Valentini - 1.7.0-1 +- Update to version 1.7.0; Fixes RHBZ#2296048 + +* Thu Jun 27 2024 Fabio Valentini - 1.6.1-1 +- Update to version 1.6.1; Fixes RHBZ#2294183 + +* Sat Jan 27 2024 Fedora Release Engineering - 1.6.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Aug 07 2023 Fabio Valentini - 1.6.0-5 +- Regenerate with rust2rpm v24 + +* Sat Jul 22 2023 Fedora Release Engineering - 1.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 1.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu May 12 2022 Fabio Valentini - 1.6.0-1 +- Update to version 1.6.0; Fixes RHBZ#2078583 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 09 2021 Fabio Valentini - 1.5.1-1 +- Update to version 1.5.1; Fixes RHBZ#2021645 + +* Mon Sep 27 2021 Fabio Valentini - 1.5.0-1 +- Update to version 1.5.0; Fixes RHBZ#2003410 + +* Wed Jul 28 2021 Fabio Valentini - 1.3.1-1 +- Update to version 1.3.1; Fixes RHBZ#1984064 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Apr 30 2021 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0. +- Fixes RHBZ#1946115 + +* Thu Mar 04 2021 Fabio Valentini - 1.1.1-1 +- Update to version 1.1.1. +- Fixes RHBZ#1920304 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 20 2020 Fabio Valentini - 1.1.0-1 +- Update to version 1.1.0. +- Fixes RHBZ#1888408 + +* Wed Oct 07 2020 Fabio Valentini - 1.0.1-1 +- Update to version 1.0.1. + +* Sat Aug 01 2020 Fedora Release Engineering - 0.3.3-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 12:39:02 CEST 2020 Igor Raits - 0.3.3-1 +- Initial package + +## END: Generated by rpmautospec