diff --git a/.gitignore b/.gitignore index 848146a..2fb132f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /askama-0.11.0.crate /askama-0.11.1.crate /askama-0.12.0.crate +/askama-0.12.1.crate diff --git a/askama-fix-metadata.diff b/askama-fix-metadata.diff deleted file mode 100644 index eee3087..0000000 --- a/askama-fix-metadata.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- askama-0.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ askama-0.12.0/Cargo.toml 2023-08-06T12:50:32.836608+00:00 -@@ -44,11 +44,6 @@ - [dependencies.askama_escape] - version = "0.10.3" - --[dependencies.comrak] --version = "0.16" --optional = true --default-features = false -- - [dependencies.dep_humansize] - version = "2" - optional = true -@@ -88,10 +83,6 @@ - "askama_derive/humansize", - "dep_humansize", - ] --markdown = [ -- "askama_derive/markdown", -- "comrak", --] - mime = [] - mime_guess = [] - num-traits = [ diff --git a/rust-askama.spec b/rust-askama.spec index da5ef11..a214813 100644 --- a/rust-askama.spec +++ b/rust-askama.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate askama Name: rust-askama -Version: 0.12.0 +Version: 0.12.1 Release: %autorelease Summary: Type-safe, compiled Jinja-like templates for Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/askama Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * drop unused markdown support with outdated dependencies -Patch: askama-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Type-safe, compiled Jinja-like templates for Rust.} @@ -50,6 +47,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+comrak-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+comrak-devel %{_description} + +This package contains library source intended for building other packages which +use the "comrak" feature of the "%{crate}" crate. + +%files -n %{name}+comrak-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+config-devel Summary: %{summary} BuildArch: noarch @@ -98,6 +107,18 @@ use the "humansize" feature of the "%{crate}" crate. %files -n %{name}+humansize-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+markdown-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+markdown-devel %{_description} + +This package contains library source intended for building other packages which +use the "markdown" feature of the "%{crate}" crate. + +%files -n %{name}+markdown-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+mime-devel Summary: %{summary} BuildArch: noarch @@ -315,7 +336,7 @@ use the "with-warp" 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/sources b/sources index 3edec7d..3e62942 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (askama-0.12.0.crate) = 8703a9091bd0145c12b724b116452be45ea8730fb05eba375af321345105105fb1486511e3cec82c494fae8771b12632caf5a01e3722a730cda6f81033c470e5 +SHA512 (askama-0.12.1.crate) = b719134fe73080e8360f35ff4ddeb3039ed1c4d20861cd3cae40e20832fcf8b12eb8b04ad82ea49d5c5f5ae6fbb29180aeae7e41be5f72ab97e9abfd60cceb4b