## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 # * Undeclared dependencies (workspace paths removed by cargo publish): # wasm_encoder, wast, wat %bcond check 0 %global debug_package %{nil} %global crate wasmparser Name: rust-wasmparser Version: 0.224.0 Release: %autorelease Summary: Simple event-driven library for parsing WebAssembly binary files License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT URL: https://crates.io/crates/wasmparser Source: %{crates_source} # * Upstream license files Source2: https://github.com/bytecodealliance/wasm-tools/raw/v1.215.0/LICENSE-APACHE#/LICENSE-APACHE Source3: https://github.com/bytecodealliance/wasm-tools/raw/v1.215.0/LICENSE-Apache-2.0_WITH_LLVM-exception#/LICENSE-Apache-2.0_WITH_LLVM-exception Source4: https://github.com/bytecodealliance/wasm-tools/raw/v1.215.0/LICENSE-MIT#/LICENSE-MIT # Manually created patch for downstream crate metadata changes # * Drop benchmark-only dependency 'criterion' Patch: wasmparser-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A 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 the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-Apache-2.0_WITH_LLVM-exception %license %{crate_instdir}/LICENSE-MIT %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}+component-model-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+component-model-devel %{_description} This package contains library source intended for building other packages which use the "component-model" feature of the "%{crate}" crate. %files -n %{name}+component-model-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+features-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+features-devel %{_description} This package contains library source intended for building other packages which use the "features" feature of the "%{crate}" crate. %files -n %{name}+features-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hash-collections-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hash-collections-devel %{_description} This package contains library source intended for building other packages which use the "hash-collections" feature of the "%{crate}" crate. %files -n %{name}+hash-collections-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+prefer-btree-collections-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prefer-btree-collections-devel %{_description} This package contains library source intended for building other packages which use the "prefer-btree-collections" feature of the "%{crate}" crate. %files -n %{name}+prefer-btree-collections-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-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 %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+validate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+validate-devel %{_description} This package contains library source intended for building other packages which use the "validate" feature of the "%{crate}" crate. %files -n %{name}+validate-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE2} LICENSE-APACHE cp -pav %{SOURCE3} LICENSE-Apache-2.0_WITH_LLVM-exception cp -pav %{SOURCE4} LICENSE-MIT %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Feb 01 2025 Aleksei Bavshin - 0.224.0-1 - Update to 0.224.0 * Sat Feb 01 2025 Aleksei Bavshin - 0.217.0-1 - Update to 0.217.0 * Sun Jan 19 2025 Fedora Release Engineering - 0.215.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Oct 26 2024 Aleksei Bavshin - 0.215.0-1 - Update to 0.215.0 * Sat Jul 20 2024 Fedora Release Engineering - 0.201.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Mar 20 2024 Aleksei Bavshin - 0.201.0-1 - Unretire and update to 0.201.0 (rhbz#2267098) * Sat Jan 22 2022 Fedora Release Engineering - 0.81.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 28 2021 Olivier Lemasle - 0.81.0-1 - Update to upstream 0.81.0 (fixes rhbz#2009481) * Wed Sep 22 2021 Olivier Lemasle - 0.80.1-1 - Update to upstream 0.80.1 * Fri Jul 23 2021 Fedora Release Engineering - 0.78.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 24 10:40:36 CEST 2021 Olivier Lemasle - 0.78.2-1 - Update to upstream 0.78.2 (rhbz#1961889) * Sat May 15 2021 Olivier Lemasle - 0.78.1-1 - Update to upstream 0.78.1, add license file * Mon May 10 2021 Olivier Lemasle - 0.78.0-1 - Update to upstream 0.78.0 * Sun Nov 22 17:23:36 CET 2020 Olivier Lemasle - 0.68.0-1 - Initial package ## END: Generated by rpmautospec