Blame rust-pulldown-cmark.spec

6cbf9b0
# Generated by rust2rpm 26
2d3cfec
%bcond_without check
515cd8d
515cd8d
%global crate pulldown-cmark
515cd8d
5b0b05e
Name:           rust-pulldown-cmark
46be740
Version:        0.10.3
ffd7f69
Release:        %autorelease
515cd8d
Summary:        Pull parser for CommonMark
515cd8d
515cd8d
License:        MIT
515cd8d
URL:            https://crates.io/crates/pulldown-cmark
35e7599
Source:         %{crates_source}
5b0b05e
# Manually created patch for downstream crate metadata changes
085b184
# * drop unused, benchmark-only criterion dev-dependency
5b0b05e
Patch:          pulldown-cmark-fix-metadata.diff
515cd8d
085b184
BuildRequires:  cargo-rpm-macros >= 24
515cd8d
d9abbe5
%global _description %{expand:
3202561
A pull parser for CommonMark.}
35e7599
35e7599
%description %{_description}
515cd8d
515cd8d
%package     -n %{crate}
515cd8d
Summary:        %{summary}
bc166e2
# MIT
bc166e2
# MIT OR Apache-2.0
bc166e2
# Unlicense OR MIT
afb15ec
License:        MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT)
bc166e2
# LICENSE.dependencies contains a full license breakdown
515cd8d
90d31ba
%description -n %{crate} %{_description}
515cd8d
35e7599
%files       -n %{crate}
35e7599
%license LICENSE
bc166e2
%license LICENSE.dependencies
5b0b05e
%doc README.md
35e7599
%{_bindir}/pulldown-cmark
35e7599
515cd8d
%package        devel
515cd8d
Summary:        %{summary}
515cd8d
BuildArch:      noarch
515cd8d
35e7599
%description    devel %{_description}
35e7599
5b0b05e
This package contains library source intended for building other packages which
5b0b05e
use the "%{crate}" crate.
35e7599
35e7599
%files          devel
5b0b05e
%license %{crate_instdir}/LICENSE
5b0b05e
%doc %{crate_instdir}/README.md
5b0b05e
%{crate_instdir}/
35e7599
35e7599
%package     -n %{name}+default-devel
35e7599
Summary:        %{summary}
35e7599
BuildArch:      noarch
35e7599
35e7599
%description -n %{name}+default-devel %{_description}
35e7599
5b0b05e
This package contains library source intended for building other packages which
5b0b05e
use the "default" feature of the "%{crate}" crate.
35e7599
35e7599
%files       -n %{name}+default-devel
5b0b05e
%ghost %{crate_instdir}/Cargo.toml
35e7599
d9abbe5
%package     -n %{name}+gen-tests-devel
d9abbe5
Summary:        %{summary}
d9abbe5
BuildArch:      noarch
d9abbe5
d9abbe5
%description -n %{name}+gen-tests-devel %{_description}
d9abbe5
5b0b05e
This package contains library source intended for building other packages which
5b0b05e
use the "gen-tests" feature of the "%{crate}" crate.
d9abbe5
d9abbe5
%files       -n %{name}+gen-tests-devel
5b0b05e
%ghost %{crate_instdir}/Cargo.toml
d9abbe5
35e7599
%package     -n %{name}+getopts-devel
35e7599
Summary:        %{summary}
35e7599
BuildArch:      noarch
35e7599
35e7599
%description -n %{name}+getopts-devel %{_description}
515cd8d
5b0b05e
This package contains library source intended for building other packages which
5b0b05e
use the "getopts" feature of the "%{crate}" crate.
35e7599
35e7599
%files       -n %{name}+getopts-devel
5b0b05e
%ghost %{crate_instdir}/Cargo.toml
515cd8d
6cbf9b0
%package     -n %{name}+html-devel
6cbf9b0
Summary:        %{summary}
6cbf9b0
BuildArch:      noarch
6cbf9b0
6cbf9b0
%description -n %{name}+html-devel %{_description}
6cbf9b0
6cbf9b0
This package contains library source intended for building other packages which
6cbf9b0
use the "html" feature of the "%{crate}" crate.
6cbf9b0
6cbf9b0
%files       -n %{name}+html-devel
6cbf9b0
%ghost %{crate_instdir}/Cargo.toml
6cbf9b0
6cbf9b0
%package     -n %{name}+pulldown-cmark-escape-devel
6cbf9b0
Summary:        %{summary}
6cbf9b0
BuildArch:      noarch
6cbf9b0
6cbf9b0
%description -n %{name}+pulldown-cmark-escape-devel %{_description}
6cbf9b0
6cbf9b0
This package contains library source intended for building other packages which
6cbf9b0
use the "pulldown-cmark-escape" feature of the "%{crate}" crate.
6cbf9b0
6cbf9b0
%files       -n %{name}+pulldown-cmark-escape-devel
6cbf9b0
%ghost %{crate_instdir}/Cargo.toml
6cbf9b0
bc166e2
%package     -n %{name}+serde-devel
bc166e2
Summary:        %{summary}
bc166e2
BuildArch:      noarch
bc166e2
bc166e2
%description -n %{name}+serde-devel %{_description}
bc166e2
bc166e2
This package contains library source intended for building other packages which
bc166e2
use the "serde" feature of the "%{crate}" crate.
bc166e2
bc166e2
%files       -n %{name}+serde-devel
bc166e2
%ghost %{crate_instdir}/Cargo.toml
bc166e2
d9abbe5
%package     -n %{name}+simd-devel
d9abbe5
Summary:        %{summary}
d9abbe5
BuildArch:      noarch
d9abbe5
d9abbe5
%description -n %{name}+simd-devel %{_description}
d9abbe5
5b0b05e
This package contains library source intended for building other packages which
5b0b05e
use the "simd" feature of the "%{crate}" crate.
d9abbe5
d9abbe5
%files       -n %{name}+simd-devel
5b0b05e
%ghost %{crate_instdir}/Cargo.toml
d9abbe5
515cd8d
%prep
085b184
%autosetup -n %{crate}-%{version} -p1
515cd8d
%cargo_prep
515cd8d
2d3cfec
%generate_buildrequires
085b184
%cargo_generate_buildrequires
2d3cfec
515cd8d
%build
515cd8d
%cargo_build
085b184
%{cargo_license_summary}
bc166e2
%{cargo_license} > LICENSE.dependencies
515cd8d
515cd8d
%install
515cd8d
%cargo_install
515cd8d
515cd8d
%if %{with check}
515cd8d
%check
515cd8d
%cargo_test
515cd8d
%endif
515cd8d
515cd8d
%changelog
ffd7f69
%autochangelog