Compare commits

...

6 Commits

Author SHA1 Message Date
Fabio Valentini 2e2bcc2599
Backport patch to fix invalid code block attributes in docstrings
5 months ago
Fedora Release Engineering 06552bfc81 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
6 months ago
Fedora Release Engineering e6ea8e0be1 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
12 months ago
Fedora Release Engineering c0a2a030f1 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2 years ago
Fabio Valentini 7d68b6d6ed
Regenerate with rust2rpm v24
2 years ago
Fedora Release Engineering 694e49104e Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2 years ago

@ -0,0 +1,65 @@
From 9a0a0449e55ac9beb274c4a5a6452dcf9eda4c6c Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Thu, 8 Aug 2024 17:28:23 +0200
Subject: [PATCH] Fix invalid code block attributes in docstrings
---
src/lib.rs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index 6a77266..bed2641 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -36,18 +36,18 @@
//!
//! Assumes the binary is `main`:
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=error ./main
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
//! ```
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=info ./main
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
//! [2017-11-09T02:12:24Z INFO main] the answer was: 12
//! ```
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=debug ./main
//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
@@ -56,7 +56,7 @@
//!
//! You can also set the log level on a per module basis:
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=main=info ./main
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
//! [2017-11-09T02:12:24Z INFO main] the answer was: 12
@@ -64,7 +64,7 @@
//!
//! And enable all logging:
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=main ./main
//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
@@ -74,7 +74,7 @@
//! If the binary name contains hyphens, you will need to replace
//! them with underscores:
//!
-//! ```{.bash}
+//! ```console
//! $ RUST_LOG=my_app ./my-app
//! [2017-11-09T02:12:24Z DEBUG my_app] this is a debug message
//! [2017-11-09T02:12:24Z ERROR my_app] this is printed by default
--
2.46.0

@ -1,29 +1,27 @@
# Generated by rust2rpm 18 # Generated by rust2rpm 24
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate env_logger %global crate env_logger
Name: rust-%{crate}0.8 Name: rust-env_logger0.8
Version: 0.8.4 Version: 0.8.4
Release: %autorelease Release: %autorelease
Summary: Logging implementation configured via an environment variable Summary: Logging implementation configured via an environment variable
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT OR Apache-2.0
URL: https://crates.io/crates/env_logger URL: https://crates.io/crates/env_logger
Source: %{crates_source} Source: %{crates_source}
# * backported patch to fix invalid code block attributes in docstrings:
# https://github.com/rust-cli/env_logger/commit/b020d97
Patch: 0001-Fix-invalid-code-block-attributes-in-docstrings.patch
ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand: %global _description %{expand:
Logging implementation for `log` which is configured via an environment A logging implementation for `log` which is configured via an
variable.} environment variable.}
%description %{_description} %description %{_description}
@ -33,13 +31,15 @@ BuildArch: noarch
%description devel %{_description} %description devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%license LICENSE-MIT LICENSE-APACHE %license %{crate_instdir}/LICENSE-APACHE
%doc README.md CHANGELOG.md %license %{crate_instdir}/LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -47,11 +47,11 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description} %description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "default" feature of "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+atty-devel %package -n %{name}+atty-devel
Summary: %{summary} Summary: %{summary}
@ -59,11 +59,11 @@ BuildArch: noarch
%description -n %{name}+atty-devel %{_description} %description -n %{name}+atty-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "atty" feature of "%{crate}" crate. use the "atty" feature of the "%{crate}" crate.
%files -n %{name}+atty-devel %files -n %{name}+atty-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+humantime-devel %package -n %{name}+humantime-devel
Summary: %{summary} Summary: %{summary}
@ -71,11 +71,11 @@ BuildArch: noarch
%description -n %{name}+humantime-devel %{_description} %description -n %{name}+humantime-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "humantime" feature of "%{crate}" crate. use the "humantime" feature of the "%{crate}" crate.
%files -n %{name}+humantime-devel %files -n %{name}+humantime-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+regex-devel %package -n %{name}+regex-devel
Summary: %{summary} Summary: %{summary}
@ -83,11 +83,11 @@ BuildArch: noarch
%description -n %{name}+regex-devel %{_description} %description -n %{name}+regex-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "regex" feature of "%{crate}" crate. use the "regex" feature of the "%{crate}" crate.
%files -n %{name}+regex-devel %files -n %{name}+regex-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+termcolor-devel %package -n %{name}+termcolor-devel
Summary: %{summary} Summary: %{summary}
@ -95,11 +95,11 @@ BuildArch: noarch
%description -n %{name}+termcolor-devel %{_description} %description -n %{name}+termcolor-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "termcolor" feature of "%{crate}" crate. use the "termcolor" feature of the "%{crate}" crate.
%files -n %{name}+termcolor-devel %files -n %{name}+termcolor-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1

Loading…
Cancel
Save