commit a9fc68362540e1476c40897018278764172cf2ee Author: MSVSphere Packaging Team Date: Fri Dec 20 17:57:06 2024 +0300 import rust-tracing-log-0.2.0-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..707c4dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tracing-log-0.2.0.crate diff --git a/.rust-tracing-log.metadata b/.rust-tracing-log.metadata new file mode 100644 index 0000000..67bf431 --- /dev/null +++ b/.rust-tracing-log.metadata @@ -0,0 +1 @@ +d36ec902779f13716e53c19199067bf77403368a SOURCES/tracing-log-0.2.0.crate diff --git a/SOURCES/tracing-log-fix-metadata.diff b/SOURCES/tracing-log-fix-metadata.diff new file mode 100644 index 0000000..7556d83 --- /dev/null +++ b/SOURCES/tracing-log-fix-metadata.diff @@ -0,0 +1,44 @@ +--- tracing-log-0.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tracing-log-0.2.0/Cargo.toml 2023-12-28T17:00:25.954897+00:00 +@@ -39,30 +39,14 @@ + "docsrs", + ] + +-[[bench]] +-name = "logging" +-harness = false +- +-[dependencies.ahash] +-version = "0.7.6" +-optional = true +- + [dependencies.log] + version = "0.4.17" +- +-[dependencies.lru] +-version = "0.7.7" +-optional = true + + [dependencies.once_cell] + version = "1.13.0" + + [dependencies.tracing-core] + version = "0.1.28" +- +-[dev-dependencies.criterion] +-version = "0.3.6" +-default-features = false + + [dev-dependencies.tracing] + version = "0.1.35" +@@ -72,10 +56,6 @@ + "log-tracer", + "std", + ] +-interest-cache = [ +- "lru", +- "ahash", +-] + log-tracer = [] + std = ["log/std"] + diff --git a/SPECS/rust-tracing-log.spec b/SPECS/rust-tracing-log.spec new file mode 100644 index 0000000..0c18bfd --- /dev/null +++ b/SPECS/rust-tracing-log.spec @@ -0,0 +1,137 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate tracing-log + +Name: rust-tracing-log +Version: 0.2.0 +Release: %autorelease +Summary: Compatibility between tracing and the log crate + +License: MIT +URL: https://crates.io/crates/tracing-log +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +# * drop unused, optional interest-cache feature +Patch: tracing-log-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Provides compatibility between `tracing` and the `log` crate.} + +%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 +%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}+log-tracer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+log-tracer-devel %{_description} + +This package contains library source intended for building other packages which +use the "log-tracer" feature of the "%{crate}" crate. + +%files -n %{name}+log-tracer-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 - 0.2.0-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 31 2023 Fabio Valentini - 0.2.0-1 +- Update to version 0.2.0; Fixes RHBZ#2246194 + +* Tue Oct 24 2023 Fabio Valentini - 0.1.4-1 +- Update to version 0.1.4; Fixes RHBZ#2245712 + +* Mon Aug 07 2023 Fabio Valentini - 0.1.3-5 +- Regenerate with rust2rpm v24 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu May 05 2022 Fabio Valentini - 0.1.3-1 +- Initial import (#2051037) +## END: Generated by rpmautospec