diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a1ad65 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/askama-0.12.1.crate diff --git a/.rust-askama.metadata b/.rust-askama.metadata index e69de29..87a6327 100644 --- a/.rust-askama.metadata +++ b/.rust-askama.metadata @@ -0,0 +1 @@ +bb1cd569b3787a3b44d73edb4c6772b440c93d2e SOURCES/askama-0.12.1.crate diff --git a/SOURCES/askama-0.12.0.crate b/SOURCES/askama-0.12.0.crate deleted file mode 100644 index 6f088e9..0000000 Binary files a/SOURCES/askama-0.12.0.crate and /dev/null differ diff --git a/SOURCES/askama-fix-metadata.diff b/SOURCES/askama-fix-metadata.diff deleted file mode 100644 index eee3087..0000000 --- a/SOURCES/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/SPECS/rust-askama.spec b/SPECS/rust-askama.spec index b945347..b2f17da 100644 --- a/SPECS/rust-askama.spec +++ b/SPECS/rust-askama.spec @@ -8,25 +8,22 @@ }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# 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.} @@ -60,6 +57,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 @@ -108,6 +117,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 @@ -325,7 +346,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 @@ -343,9 +364,12 @@ use the "with-warp" feature of the "%{crate}" crate. %endif %changelog -* Mon Jan 15 2024 Arkady L. Shane - 0.12.0-1 +* Mon Jan 15 2024 Arkady L. Shane - 0.12.1-1 - Rebuilt for MSVSphere 9.3 +* Sun Jan 14 2024 Fabio Valentini - 0.12.1-1 +- Update to version 0.12.1; Fixes RHBZ#2241370 + * Tue Aug 08 2023 Fabio Valentini - 0.12.0-1 - Update to version 0.12.0; Fixes RHBZ#2175662