diff --git a/README.md b/README.md deleted file mode 100644 index 6510241..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-askama - -The rust-askama package \ No newline at end of file diff --git a/askama-fix-metadata.diff b/askama-fix-metadata.diff new file mode 100644 index 0000000..dfd724d --- /dev/null +++ b/askama-fix-metadata.diff @@ -0,0 +1,10 @@ +--- askama-0.11.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ askama-0.11.1/Cargo.toml 2023-04-20T17:56:39.523486+00:00 +@@ -37,7 +37,6 @@ + config = ["askama_derive/config", "askama_shared/config"] + default = ["config", "humansize", "num-traits", "urlencode"] + humansize = ["askama_shared/humansize"] +-markdown = ["askama_shared/markdown"] + mime = [] + mime_guess = [] + num-traits = ["askama_shared/num-traits"] diff --git a/rust-askama.spec b/rust-askama.spec index b04b227..17b73dd 100644 --- a/rust-askama.spec +++ b/rust-askama.spec @@ -1,20 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate askama -Name: rust-%{crate} +Name: rust-askama Version: 0.11.1 Release: %autorelease Summary: Type-safe, compiled Jinja-like templates for Rust -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/askama Source: %{crates_source} - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop unused markdown support with outdated dependencies +Patch: askama-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -73,18 +73,6 @@ 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