diff --git a/.gitignore b/.gitignore index 64431e1..6028c3c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /simple_logger-1.0.1.crate /simple_logger-1.2.0.crate /simple_logger-1.3.0.crate +/simple_logger-1.4.0.crate diff --git a/rust-simple_logger.spec b/rust-simple_logger.spec index e498038..ee50d79 100644 --- a/rust-simple_logger.spec +++ b/rust-simple_logger.spec @@ -1,18 +1,21 @@ -# Generated by rust2rpm 9 +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate simple_logger Name: rust-%{crate} -Version: 1.3.0 -Release: 2%{?dist} +Version: 1.4.0 +Release: 1%{?dist} 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 +# * No windows +Patch0: simple_logger-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -20,12 +23,6 @@ BuildArch: noarch %endif BuildRequires: rust-packaging -%if ! %{__cargo_skip_build} -BuildRequires: (crate(chrono/default) >= 0.4.6 with crate(chrono/default) < 0.5.0) -BuildRequires: (crate(colored/default) >= 1.6.0 with crate(colored/default) < 2.0.0) -BuildRequires: (crate(log/default) >= 0.4.5 with crate(log/default) < 0.5.0) -BuildRequires: (crate(log/std) >= 0.4.5 with crate(log/std) < 0.5.0) -%endif %global _description %{expand: Logger that prints all messages with a readable output format.} @@ -44,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -56,7 +53,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+colored-devel Summary: %{summary} @@ -68,12 +65,15 @@ This package contains library source intended for building other packages which use "colored" feature of "%{crate}" crate. %files -n %{name}+colored-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -86,6 +86,9 @@ which use "colored" feature of "%{crate}" crate. %endif %changelog +* Wed Jan 15 2020 Josh Stone - 1.4.0-1 +- Update to 1.4.0 + * Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/simple_logger-fix-metadata.diff b/simple_logger-fix-metadata.diff new file mode 100644 index 0000000..aa2512d --- /dev/null +++ b/simple_logger-fix-metadata.diff @@ -0,0 +1,12 @@ +--- simple_logger-1.4.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ simple_logger-1.4.0/Cargo.toml 2020-01-15T06:50:38.850531+00:00 +@@ -30,9 +30,3 @@ + + [features] + default = ["colored"] +-[target."cfg(windows)".dependencies.atty] +-version = "0.2.13" +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["handleapi", "winbase"] diff --git a/sources b/sources index 62c161b..3b44f20 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (simple_logger-1.3.0.crate) = 0bdef89a5fc1b93e1dfe0c31709eaf57a1e6562fa67e4190f4dcff4617d930bf1f4e8c480000cd97e5028dc6287612603b05ec9a7a1382c187a82544edd52b4d +SHA512 (simple_logger-1.4.0.crate) = ecf37d33c66aa1d00a7d76395ca562fa0075f24675fe4778cb3adfcd86cbafb933126fa7f4ff49ba04a65cf0eb09f34189eaad4794d531a02cd7442c565e1491