Initial import (pulldown-cmark 0.8 compat package)

epel9
Fabio Valentini 2 years ago
parent 1294c60550
commit 953354b87f
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/pulldown-cmark-0.8.0.crate

@ -1,3 +0,0 @@
# rust-pulldown-cmark0.8
The rust-pulldown-cmark0.8 package

@ -0,0 +1,24 @@
--- pulldown-cmark-0.8.0/Cargo.toml 2020-09-01T15:23:36+00:00
+++ pulldown-cmark-0.8.0/Cargo.toml 2022-12-14T15:08:59.396075+00:00
@@ -23,11 +23,7 @@
categories = ["text-processing"]
license = "MIT"
repository = "https://github.com/raphlinus/pulldown-cmark"
-
-[[bin]]
-name = "pulldown-cmark"
-doc = false
-required-features = ["getopts"]
+autobins = false
[[bench]]
name = "html_rendering"
@@ -44,8 +40,6 @@
[dependencies.unicase]
version = "2.6"
-[dev-dependencies.criterion]
-version = "0.3"
[dev-dependencies.html5ever]
version = "0.25"

@ -0,0 +1,109 @@
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate pulldown-cmark
Name: rust-pulldown-cmark0.8
Version: 0.8.0
Release: %autorelease
Summary: Pull parser for CommonMark
License: MIT
URL: https://crates.io/crates/pulldown-cmark
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop pulldown-cmark binary from compat package
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch: pulldown-cmark-fix-metadata.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Pull parser for CommonMark.}
%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}/CONTRIBUTING.md
%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
%package -n %{name}+gen-tests-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+gen-tests-devel %{_description}
This package contains library source intended for building other packages which
use the "gen-tests" feature of the "%{crate}" crate.
%files -n %{name}+gen-tests-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+getopts-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+getopts-devel %{_description}
This package contains library source intended for building other packages which
use the "getopts" feature of the "%{crate}" crate.
%files -n %{name}+getopts-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+simd-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+simd-devel %{_description}
This package contains library source intended for building other packages which
use the "simd" feature of the "%{crate}" crate.
%files -n %{name}+simd-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%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 @@
SHA512 (pulldown-cmark-0.8.0.crate) = 396ade131c0a74cdfb8454e137e41c21f0b81b7cce654ba6ae9ceb132ba0fa0a467a190e6dd69cd7d59a267efbe83f008c9c8a5c9db47665aabc31a4bb9cb967
Loading…
Cancel
Save