4c7921a
# Generated by rust2rpm 24
a109482
%bcond_without check
9f91170
%global debug_package %{nil}
9f91170
9f91170
%global crate adler32
9f91170
3c94d73
Name:           rust-adler32
953dcb9
Version:        1.2.0
86a7e0e
Release:        %autorelease
9f91170
Summary:        Minimal Adler32 implementation for Rust
9f91170
3c94d73
License:        Zlib
9f91170
URL:            https://crates.io/crates/adler32
a109482
Source:         %{crates_source}
3c94d73
# Automatically generated patch to strip foreign dependencies
3c94d73
Patch:          adler32-fix-metadata-auto.diff
3c94d73
# Manually created patch for downstream crate metadata changes
3c94d73
# * drop WASM-specific dev-dependencies
3c94d73
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
4c7921a
# * remove dependencies on compiler internals
3c94d73
Patch:          adler32-fix-metadata.diff
9f91170
3c94d73
BuildRequires:  rust-packaging >= 21
9f91170
a109482
%global _description %{expand:
a109482
Minimal Adler32 implementation for Rust.}
c05b9c9
c05b9c9
%description %{_description}
9f91170
9f91170
%package        devel
9f91170
Summary:        %{summary}
9f91170
BuildArch:      noarch
9f91170
c05b9c9
%description    devel %{_description}
c05b9c9
3c94d73
This package contains library source intended for building other packages which
3c94d73
use the "%{crate}" crate.
c05b9c9
c05b9c9
%files          devel
3c94d73
%license %{crate_instdir}/LICENSE
3c94d73
%doc %{crate_instdir}/README.md
3c94d73
%{crate_instdir}/
c05b9c9
c05b9c9
%package     -n %{name}+default-devel
c05b9c9
Summary:        %{summary}
c05b9c9
BuildArch:      noarch
c05b9c9
c05b9c9
%description -n %{name}+default-devel %{_description}
9f91170
3c94d73
This package contains library source intended for building other packages which
3c94d73
use the "default" feature of the "%{crate}" crate.
c05b9c9
c05b9c9
%files       -n %{name}+default-devel
3c94d73
%ghost %{crate_instdir}/Cargo.toml
6ce7b87
6ce7b87
%package     -n %{name}+std-devel
6ce7b87
Summary:        %{summary}
6ce7b87
BuildArch:      noarch
6ce7b87
6ce7b87
%description -n %{name}+std-devel %{_description}
6ce7b87
3c94d73
This package contains library source intended for building other packages which
3c94d73
use the "std" feature of the "%{crate}" crate.
6ce7b87
6ce7b87
%files       -n %{name}+std-devel
3c94d73
%ghost %{crate_instdir}/Cargo.toml
9f91170
9f91170
%prep
a109482
%autosetup -n %{crate}-%{version_no_tilde} -p1
9f91170
%cargo_prep
9f91170
a109482
%generate_buildrequires
a109482
%cargo_generate_buildrequires
a109482
9f91170
%build
9f91170
%cargo_build
9f91170
9f91170
%install
9f91170
%cargo_install
9f91170
9f91170
%if %{with check}
9f91170
%check
9f91170
%cargo_test
9f91170
%endif
9f91170
9f91170
%changelog
86a7e0e
%autochangelog