From bfb6cb27ad121520050b9b78e1d7ca125edfbe5e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 6 Aug 2023 00:30:47 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- rust-simple_logger.spec | 38 +++++++++---------- ...ff => simple_logger-fix-metadata-auto.diff | 2 +- 3 files changed, 18 insertions(+), 25 deletions(-) delete mode 100644 README.md rename simple_logger-fix-metadata.diff => simple_logger-fix-metadata-auto.diff (82%) diff --git a/README.md b/README.md deleted file mode 100644 index cbeb087..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-simple_logger - -The rust-simple_logger package \ No newline at end of file diff --git a/rust-simple_logger.spec b/rust-simple_logger.spec index 1427bfc..2e35728 100644 --- a/rust-simple_logger.spec +++ b/rust-simple_logger.spec @@ -1,28 +1,24 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate simple_logger -Name: rust-%{crate} +Name: rust-simple_logger Version: 1.16.0 Release: %autorelease Summary: Logger that prints all messages with a readable output format -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/simple_logger Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: simple_logger-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: simple_logger-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Logger that prints all messages with a readable output format.} +A logger that prints all messages with a readable output format.} %description %{_description} @@ -36,9 +32,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +46,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}+colored-devel Summary: %{summary} @@ -62,7 +58,7 @@ This package contains library source intended for building other packages which use the "colored" feature of the "%{crate}" crate. %files -n %{name}+colored-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+colors-devel Summary: %{summary} @@ -74,7 +70,7 @@ This package contains library source intended for building other packages which use the "colors" feature of the "%{crate}" crate. %files -n %{name}+colors-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nightly-devel Summary: %{summary} @@ -86,7 +82,7 @@ This package contains library source intended for building other packages which use the "nightly" feature of the "%{crate}" crate. %files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stderr-devel Summary: %{summary} @@ -98,7 +94,7 @@ This package contains library source intended for building other packages which use the "stderr" feature of the "%{crate}" crate. %files -n %{name}+stderr-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+threads-devel Summary: %{summary} @@ -110,7 +106,7 @@ This package contains library source intended for building other packages which use the "threads" feature of the "%{crate}" crate. %files -n %{name}+threads-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} @@ -122,7 +118,7 @@ This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+timestamps-devel Summary: %{summary} @@ -134,7 +130,7 @@ This package contains library source intended for building other packages which use the "timestamps" feature of the "%{crate}" crate. %files -n %{name}+timestamps-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/simple_logger-fix-metadata.diff b/simple_logger-fix-metadata-auto.diff similarity index 82% rename from simple_logger-fix-metadata.diff rename to simple_logger-fix-metadata-auto.diff index bd01b41..9638a80 100644 --- a/simple_logger-fix-metadata.diff +++ b/simple_logger-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- simple_logger-1.16.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ simple_logger-1.16.0/Cargo.toml 2021-12-15T13:31:41.048500+00:00 ++++ simple_logger-1.16.0/Cargo.toml 2023-08-05T22:29:40.357782+00:00 @@ -53,9 +53,3 @@ stderr = [] threads = []