diff --git a/.gitignore b/.gitignore index e6cf64f..04f7b80 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /tracing-core-0.1.20.crate /tracing-core-0.1.21.crate /tracing-core-0.1.22.crate +/tracing-core-0.1.23.crate diff --git a/rust-tracing-core.spec b/rust-tracing-core.spec index 0d1dab1..2531b8e 100644 --- a/rust-tracing-core.spec +++ b/rust-tracing-core.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate tracing-core Name: rust-%{crate} -Version: 0.1.22 +Version: 0.1.23 Release: %autorelease Summary: Core primitives for application-level tracing @@ -19,7 +19,7 @@ Patch0: tracing-core-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Core primitives for application-level tracing.} @@ -36,11 +36,12 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE LICENSE-lazy_static LICENSE-spin -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ -# exclude LICENSE file copies from -devel package -%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/LICENSE-* +%license %{crate_instdir}/LICENSE +%license %{crate_instdir}/src/lazy_static/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} @@ -52,7 +53,7 @@ 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}+lazy_static-devel Summary: %{summary} @@ -64,7 +65,7 @@ This package contains library source intended for building other packages which use the "lazy_static" feature of the "%{crate}" crate. %files -n %{name}+lazy_static-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -76,15 +77,11 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep -# copy LICENSE files for bundled sources: -# they are also MIT, but with different copyright statements -cp -p src/lazy_static/LICENSE LICENSE-lazy_static -cp -p src/spin/LICENSE LICENSE-spin %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 713a633..2239611 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tracing-core-0.1.22.crate) = 500e74a0a3a54599bb4614b6377d9d721635dd4ce0119697fb234725db8b60e6aecbb850d7dd311af4796e47b060832fe3be39324d484a039e9b8a08d36c3ab2 +SHA512 (tracing-core-0.1.23.crate) = c01d58dd814d0d9d71a631284c6e8fd5881e8728d79d3715f246530d474900f3b0d396b88f9358f3521e5b171ad577003ae5dd3994d66fa3e016970f6df5184f diff --git a/tracing-core-fix-metadata.diff b/tracing-core-fix-metadata.diff index 31ca28b..a6780d9 100644 --- a/tracing-core-fix-metadata.diff +++ b/tracing-core-fix-metadata.diff @@ -1,5 +1,5 @@ ---- tracing-core-0.1.22/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ tracing-core-0.1.22/Cargo.toml 2022-02-05T23:21:14.801028+00:00 +--- tracing-core-0.1.23/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tracing-core-0.1.23/Cargo.toml 2022-03-31T09:08:38.257281+00:00 @@ -31,11 +31,7 @@ optional = true