File rust-wit-component.spec of Package rust-wit-component
Patch1: fix_2024100657177990.diff
BuildRequires: crate(anyhow) crate(bitflags) crate(indexmap) crate(log) crate(serde) crate(serde_derive) crate(serde_json) crate(wasm-encoder) crate(wasm-metadata) crate(wasmparser) crate(wit-parser)
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate wit-component
Name: rust-wit-component
Version: 0.202.0
Release: 1%{?dist}
Summary: Tooling for working with *.wit and component files together
License: Apache-2.0 WITH LLVM-exception
URL: https://crates.io/crates/wit-component
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Tooling for working with `*.wit` and component files together.}
%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
# FIXME: no license files detected
%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}+dummy-module-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dummy-module-devel %{_description}
This package contains library source intended for building other packages which
use the "dummy-module" feature of the "%{crate}" crate.
%files -n %{name}+dummy-module-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+semver-check-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+semver-check-devel %{_description}
This package contains library source intended for building other packages which
use the "semver-check" feature of the "%{crate}" crate.
%files -n %{name}+semver-check-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+wat-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wat-devel %{_description}
This package contains library source intended for building other packages which
use the "wat" feature of the "%{crate}" crate.
%files -n %{name}+wat-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%endif
%changelog
* Tue Apr 09 2024 u <u> - 0.202.0-1
- Initial package