Initial package (rhbz#2273626)

epel10
blinxen 10 months ago
parent 392c54e6f1
commit 1e5b96616c

2
.gitignore vendored

@ -0,0 +1,2 @@
/LICENSE
/pulldown-cmark-escape-0.10.0.crate

@ -1,3 +0,0 @@
# rust-pulldown-cmark-escape
The rust-pulldown-cmark-escape package

@ -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

@ -0,0 +1,2 @@
SHA512 (LICENSE) = 2a7f502b5f359414baa9e5ce26af8c58de6044f61a2efa6b5afe75044e42fc869b5ec4dcb6a7770fac0e0835b93ad644e24ed45db056aa1b8a5842c10d46b0b5
SHA512 (pulldown-cmark-escape-0.10.0.crate) = 282bf294d525f0b7550ef33fd8ca8604c62d4175b083f241a4524e377ab26d9f578ff2f52e0bf33e371fdfd0f93adf0d14d0e3171c412046f17bcb91826d25ea
Loading…
Cancel
Save