You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-bytecheck/rust-bytecheck.spec

94 lines
2.1 KiB

# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate bytecheck
Name: rust-bytecheck
Version: 0.8.0
Release: %autorelease
Summary: Memory validation framework for Rust
License: MIT
URL: https://crates.io/crates/bytecheck
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Memory validation framework for Rust.}
%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
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/example.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}+simdutf8-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+simdutf8-devel %{_description}
This package contains library source intended for building other packages which
use the "simdutf8" feature of the "%{crate}" crate.
%files -n %{name}+simdutf8-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+uuid-1-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+uuid-1-devel %{_description}
This package contains library source intended for building other packages which
use the "uuid-1" feature of the "%{crate}" crate.
%files -n %{name}+uuid-1-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog