diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b37b642 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pulldown-cmark-0.8.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index c885fa8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pulldown-cmark0.8 - -The rust-pulldown-cmark0.8 package diff --git a/pulldown-cmark-fix-metadata.diff b/pulldown-cmark-fix-metadata.diff new file mode 100644 index 0000000..9d23d98 --- /dev/null +++ b/pulldown-cmark-fix-metadata.diff @@ -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" diff --git a/rust-pulldown-cmark0.8.spec b/rust-pulldown-cmark0.8.spec new file mode 100644 index 0000000..a0635f3 --- /dev/null +++ b/rust-pulldown-cmark0.8.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..8fabe14 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pulldown-cmark-0.8.0.crate) = 396ade131c0a74cdfb8454e137e41c21f0b81b7cce654ba6ae9ceb132ba0fa0a467a190e6dd69cd7d59a267efbe83f008c9c8a5c9db47665aabc31a4bb9cb967