From 71056a5c964dba6d86dba728d4c5bfbd7518c584 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:56:56 +0300 Subject: [PATCH] import rust-tracing-core-0.1.33-1.el10 --- .gitignore | 1 + .rust-tracing-core.metadata | 1 + SOURCES/rust2rpm.toml | 5 + SOURCES/tracing-core-fix-metadata-auto.diff | 22 +++ SPECS/rust-tracing-core.spec | 189 ++++++++++++++++++++ 5 files changed, 218 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-tracing-core.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SOURCES/tracing-core-fix-metadata-auto.diff create mode 100644 SPECS/rust-tracing-core.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abb2a6a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tracing-core-0.1.33.crate diff --git a/.rust-tracing-core.metadata b/.rust-tracing-core.metadata new file mode 100644 index 0000000..19fecd2 --- /dev/null +++ b/.rust-tracing-core.metadata @@ -0,0 +1 @@ +5ed86544b63f19c8b5c37937a6d828a87fcf2d63 SOURCES/tracing-core-0.1.33.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..646cd28 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[tests] +skip = ["field::test::value_sets_with_fields_from_other_callsites_are_empty"] +skip-exact = true +comments = ["skip a test that fails since Rust 1.52.1 but is not reproducible upstream"] + diff --git a/SOURCES/tracing-core-fix-metadata-auto.diff b/SOURCES/tracing-core-fix-metadata-auto.diff new file mode 100644 index 0000000..750c80f --- /dev/null +++ b/SOURCES/tracing-core-fix-metadata-auto.diff @@ -0,0 +1,22 @@ +--- tracing-core-0.1.33/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tracing-core-0.1.33/Cargo.toml 2024-11-26T14:35:36.960475+00:00 +@@ -83,14 +83,8 @@ + [features] + default = [ + "std", +- "valuable?/std", + ] + std = ["once_cell"] +- +-[target."cfg(tracing_unstable)".dependencies.valuable] +-version = "0.1.0" +-optional = true +-default-features = false + + [badges.maintenance] + status = "actively-developed" +@@ -102,3 +96,4 @@ + "cfg(flaky_tests)", + "cfg(tracing_unstable)", + ] ++ diff --git a/SPECS/rust-tracing-core.spec b/SPECS/rust-tracing-core.spec new file mode 100644 index 0000000..89cf592 --- /dev/null +++ b/SPECS/rust-tracing-core.spec @@ -0,0 +1,189 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate tracing-core + +Name: rust-tracing-core +Version: 0.1.33 +Release: %autorelease +Summary: Core primitives for application-level tracing + +License: MIT +URL: https://crates.io/crates/tracing-core +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: tracing-core-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Core primitives for application-level tracing.} + +%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 +%license %{crate_instdir}/src/spin/LICENSE +%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}+once_cell-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+once_cell-devel %{_description} + +This package contains library source intended for building other packages which +use the "once_cell" feature of the "%{crate}" crate. + +%files -n %{name}+once_cell-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 +# * skip a test that fails since Rust 1.52.1 but is not reproducible upstream +%cargo_test -- -- --exact --skip field::test::value_sets_with_fields_from_other_callsites_are_empty +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.33-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Nov 26 2024 Fabio Valentini - 0.1.33-1 +- Update to version 0.1.33; Fixes RHBZ#2328815 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.32-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Oct 15 2023 Fabio Valentini - 0.1.32-1 +- Update to version 0.1.32; Fixes RHBZ#2244137 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 17 2023 Fabio Valentini - 0.1.31-1 +- Update to version 0.1.31; Fixes RHBZ#2203334 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.30-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Oct 08 2022 Fabio Valentini - 0.1.30-1 +- Update to version 0.1.30; Fixes RHBZ#2132816 + +* Fri Jul 29 2022 Fabio Valentini - 0.1.29-1 +- Update to version 0.1.29; Fixes RHBZ#2112470 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.28-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jul 15 2022 Fabio Valentini - 0.1.28-1 +- Update to version 0.1.28; Fixes RHBZ#2094565 + +* Tue May 24 2022 Fabio Valentini - 0.1.26-1 +- Update to version 0.1.26; Fixes RHBZ#2071115 + +* Thu Mar 31 2022 Fabio Valentini - 0.1.23-1 +- Update to version 0.1.23; Fixes RHBZ#2062041 + +* Sat Feb 05 2022 Fabio Valentini - 0.1.22-1 +- Update to version 0.1.22; Fixes RHBZ#2050455 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 09 2021 Fabio Valentini - 0.1.21-1 +- Update to version 0.1.21; Fixes RHBZ#2009912 + +* Fri Oct 01 2021 Fabio Valentini - 0.1.20-1 +- Update to version 0.1.20; Fixes RHBZ#2003488 + +* Sat Aug 21 2021 Fabio Valentini - 0.1.19-1 +- Update to version 0.1.19; Fixes RHBZ#1994824 + +* Fri Jul 30 2021 Fabio Valentini - 0.1.18-3 +- Skip test that fails since Rust 1.52.1 but is not reproducible upstream. + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed May 05 2021 Fabio Valentini - 0.1.18-1 +- Update to version 0.1.18. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Oct 01 2020 Fabio Valentini - 0.1.17-1 +- Update to version 0.1.17. + +* Wed Sep 09 2020 Josh Stone - 0.1.16-1 +- Update to 0.1.16 + +* Tue Aug 25 2020 Josh Stone - 0.1.15-1 +- Update to 0.1.15 + +* Thu Jul 23 2020 Josh Stone - 0.1.11-1 +- Initial package + +## END: Generated by rpmautospec