From 1e5b96616cd73cd7a0716964a45582cc2563deb6 Mon Sep 17 00:00:00 2001 From: blinxen Date: Fri, 5 Apr 2024 16:48:44 +0200 Subject: [PATCH] Initial package (rhbz#2273626) --- .gitignore | 2 + README.md | 3 -- rust-pulldown-cmark-escape.spec | 71 +++++++++++++++++++++++++++++++++ sources | 2 + 4 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-pulldown-cmark-escape.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f7115e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/LICENSE +/pulldown-cmark-escape-0.10.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index cc72c89..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pulldown-cmark-escape - -The rust-pulldown-cmark-escape package diff --git a/rust-pulldown-cmark-escape.spec b/rust-pulldown-cmark-escape.spec new file mode 100644 index 0000000..9301a61 --- /dev/null +++ b/rust-pulldown-cmark-escape.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate pulldown-cmark-escape + +Name: rust-pulldown-cmark-escape +Version: 0.10.0 +Release: %autorelease +Summary: Escape library for HTML created in the pulldown-cmark project + +License: MIT +URL: https://crates.io/crates/pulldown-cmark-escape +Source: %{crates_source} +# https://github.com/pulldown-cmark/pulldown-cmark/pull/875 +Source1: https://raw.githubusercontent.com/pulldown-cmark/pulldown-cmark/v0.10.0/LICENSE + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +An escape library for HTML created in the pulldown-cmark project.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +cp -pav %{SOURCE1} . +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..708b392 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (LICENSE) = 2a7f502b5f359414baa9e5ce26af8c58de6044f61a2efa6b5afe75044e42fc869b5ec4dcb6a7770fac0e0835b93ad644e24ed45db056aa1b8a5842c10d46b0b5 +SHA512 (pulldown-cmark-escape-0.10.0.crate) = 282bf294d525f0b7550ef33fd8ca8604c62d4175b083f241a4524e377ab26d9f578ff2f52e0bf33e371fdfd0f93adf0d14d0e3171c412046f17bcb91826d25ea