a6687a7
# Generated by rust2rpm 26
e39d9f3
%bcond_without check
e39d9f3
%global debug_package %{nil}
e39d9f3
e39d9f3
%global crate pem
e39d9f3
80febf9
Name:           rust-pem
a6687a7
Version:        3.0.4
a6b5313
Release:        %autorelease
e39d9f3
Summary:        Parse and encode PEM-encoded data
e39d9f3
e39d9f3
License:        MIT
e39d9f3
URL:            https://crates.io/crates/pem
e39d9f3
Source:         %{crates_source}
80febf9
# Manually created patch for downstream crate metadata changes
6bacd9e
# * drop unused, benchmark-only criterion dev-dependency
80febf9
Patch:          pem-fix-metadata.diff
e39d9f3
3432c60
BuildRequires:  cargo-rpm-macros >= 24
e39d9f3
e39d9f3
%global _description %{expand:
e39d9f3
Parse and encode PEM-encoded data.}
e39d9f3
e39d9f3
%description %{_description}
e39d9f3
e39d9f3
%package        devel
e39d9f3
Summary:        %{summary}
e39d9f3
BuildArch:      noarch
e39d9f3
e39d9f3
%description    devel %{_description}
e39d9f3
20e8595
This package contains library source intended for building other packages which
20e8595
use the "%{crate}" crate.
e39d9f3
e39d9f3
%files          devel
80febf9
%license %{crate_instdir}/LICENSE.md
80febf9
%doc %{crate_instdir}/CHANGELOG.md
80febf9
%doc %{crate_instdir}/README.md
80febf9
%{crate_instdir}/
e39d9f3
e39d9f3
%package     -n %{name}+default-devel
e39d9f3
Summary:        %{summary}
e39d9f3
BuildArch:      noarch
e39d9f3
e39d9f3
%description -n %{name}+default-devel %{_description}
e39d9f3
20e8595
This package contains library source intended for building other packages which
20e8595
use the "default" feature of the "%{crate}" crate.
e39d9f3
e39d9f3
%files       -n %{name}+default-devel
80febf9
%ghost %{crate_instdir}/Cargo.toml
80febf9
80febf9
%package     -n %{name}+serde-devel
80febf9
Summary:        %{summary}
80febf9
BuildArch:      noarch
80febf9
80febf9
%description -n %{name}+serde-devel %{_description}
80febf9
80febf9
This package contains library source intended for building other packages which
80febf9
use the "serde" feature of the "%{crate}" crate.
80febf9
80febf9
%files       -n %{name}+serde-devel
80febf9
%ghost %{crate_instdir}/Cargo.toml
e39d9f3
3432c60
%package     -n %{name}+std-devel
3432c60
Summary:        %{summary}
3432c60
BuildArch:      noarch
3432c60
3432c60
%description -n %{name}+std-devel %{_description}
3432c60
3432c60
This package contains library source intended for building other packages which
3432c60
use the "std" feature of the "%{crate}" crate.
3432c60
3432c60
%files       -n %{name}+std-devel
3432c60
%ghost %{crate_instdir}/Cargo.toml
3432c60
e39d9f3
%prep
6bacd9e
%autosetup -n %{crate}-%{version} -p1
e39d9f3
%cargo_prep
e39d9f3
e39d9f3
%generate_buildrequires
e39d9f3
%cargo_generate_buildrequires
e39d9f3
e39d9f3
%build
e39d9f3
%cargo_build
e39d9f3
e39d9f3
%install
e39d9f3
%cargo_install
e39d9f3
e39d9f3
%if %{with check}
e39d9f3
%check
e39d9f3
%cargo_test
e39d9f3
%endif
e39d9f3
e39d9f3
%changelog
a6b5313
%autochangelog