# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate wasmparser
Name: rust-%{crate}
Version: 0.81.0
Release: 2%{?dist}
Summary: Simple event-driven library for parsing WebAssembly binary files
# Upstream license specification: Apache-2.0 WITH LLVM-exception
License: ASL 2.0 with exceptions
URL: https://crates.io/crates/wasmparser
Source: %{crates_source}
# Exclude unnecessary file
Patch0: exclude.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Simple event-driven library for parsing WebAssembly binary files.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc examples README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+deterministic-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+deterministic-devel %{_description}
This package contains library source intended for building other packages
which use "deterministic" feature of "%{crate}" crate.
%files -n %{name}+deterministic-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.81.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Nov 28 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.81.0-1
- Update to upstream 0.81.0 (fixes rhbz#2009481)
* Wed Sep 22 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.80.1-1
- Update to upstream 0.80.1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 10:40:36 CEST 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.78.2-1
- Update to upstream 0.78.2 (rhbz#1961889)
* Sat May 15 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.78.1-1
- Update to upstream 0.78.1, add license file
* Mon May 10 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.78.0-1
- Update to upstream 0.78.0
* Sun Nov 22 17:23:36 CET 2020 Olivier Lemasle <o.lemasle@gmail.com> - 0.68.0-1
- Initial package