diff --git a/.gitignore b/.gitignore index 55668a4..005ec69 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /pretty_env_logger-0.2.2.crate /pretty_env_logger-0.2.3.crate /pretty_env_logger-0.2.4.crate +/pretty_env_logger-0.2.5.crate diff --git a/rust-pretty_env_logger.spec b/rust-pretty_env_logger.spec index 586ff79..ab0800d 100644 --- a/rust-pretty_env_logger.spec +++ b/rust-pretty_env_logger.spec @@ -5,10 +5,11 @@ %global crate pretty_env_logger Name: rust-%{crate} -Version: 0.2.4 -Release: 2%{?dist} +Version: 0.2.5 +Release: 1%{?dist} Summary: Visually pretty env_logger +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/pretty_env_logger Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -16,23 +17,42 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(ansi_term) >= 0.11.0 with crate(ansi_term) < 0.12.0) -BuildRequires: (crate(env_logger) >= 0.5.0 with crate(env_logger) < 0.6.0) -BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) +BuildRequires: (crate(ansi_term/default) >= 0.11.0 with crate(ansi_term/default) < 0.12.0) +BuildRequires: (crate(chrono/default) >= 0.4.4 with crate(chrono/default) < 0.5.0) +BuildRequires: (crate(env_logger/default) >= 0.5.0 with crate(env_logger/default) < 0.6.0) +BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) -%description -%{summary}. +%global _description \ +a visually pretty env_logger + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A visually pretty env_logger. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +# https://github.com/seanmonstar/pretty-env-logger/pull/13 +#doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -49,13 +69,11 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -# https://github.com/seanmonstar/pretty-env-logger/pull/13 -#doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Nov 09 2018 Josh Stone - 0.2.5-1 +- Update to 0.2.5 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index ff36a35..b0e071b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pretty_env_logger-0.2.4.crate) = 551ac1326756fcbe34c660c1eb8d3599bd8d6133ecd8251709349faab2b6def8cad043f23b307b7076e040a9543dd3500117075039728e91366fde050b122571 +SHA512 (pretty_env_logger-0.2.5.crate) = 0420cc68d00dee26023eeddd6d26d0efccc31302dc3108f037a1e7d054fa0086fac2afe85e70cb23bc5b43c7ed2296b278fc08d58bf79037b0175757ef5d457c