diff --git a/.gitignore b/.gitignore index c2d49a7..b418d5d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /simple_logger-1.12.1.crate /simple_logger-1.13.0.crate /simple_logger-1.16.0.crate +/simple_logger-4.2.0.crate diff --git a/rust-simple_logger.spec b/rust-simple_logger.spec index 2e35728..86d66c7 100644 --- a/rust-simple_logger.spec +++ b/rust-simple_logger.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate simple_logger Name: rust-simple_logger -Version: 1.16.0 +Version: 4.2.0 Release: %autorelease Summary: Logger that prints all messages with a readable output format License: MIT URL: https://crates.io/crates/simple_logger Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: simple_logger-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A logger that prints all messages with a readable output format.} @@ -133,7 +133,7 @@ use the "timestamps" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/simple_logger-fix-metadata-auto.diff b/simple_logger-fix-metadata-auto.diff index 9638a80..c85d865 100644 --- a/simple_logger-fix-metadata-auto.diff +++ b/simple_logger-fix-metadata-auto.diff @@ -1,12 +1,12 @@ ---- simple_logger-1.16.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ simple_logger-1.16.0/Cargo.toml 2023-08-05T22:29:40.357782+00:00 -@@ -53,9 +53,3 @@ - stderr = [] +--- simple_logger-4.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ simple_logger-4.2.0/Cargo.toml 2023-10-14T20:48:31.168047+00:00 +@@ -75,9 +75,3 @@ threads = [] timestamps = ["time"] --[target."cfg(windows)".dependencies.atty] --version = "0.2.13" -- --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["handleapi", "winbase"] + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "^0.42.0" +-features = [ +- "Win32_System_Console", +- "Win32_Foundation", +-] diff --git a/sources b/sources index 8c5829e..599d44d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (simple_logger-1.16.0.crate) = bd0636318e3c365047802d8c35cd262ed0bd0df4a2c3d2094e875c5805d982b6f337937603f597a27a3a4983c8c5f25a77a1fbb2d23692f311b0fb268f0a8f70 +SHA512 (simple_logger-4.2.0.crate) = 09025a9a04f9bb076ab6f2ff4e560ef0ad865cc38923ad8a4389bf28d8a48d82c7356bbe25b08ee624750cb3d84590ca13e93763e6eb7b9e7d54956a46caf254