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-sha3/rust-sha3.spec

121 lines
2.9 KiB

# Generated by rust2rpm 24
5 years ago
%bcond_without check
%global debug_package %{nil}
%global crate sha3
Name: rust-sha3
Version: 0.10.8
Release: %autorelease
5 years ago
Summary: SHA-3 (Keccak) hash function
License: MIT OR Apache-2.0
5 years ago
URL: https://crates.io/crates/sha3
Source: %{crates_source}
3 years ago
BuildRequires: rust-packaging >= 21
5 years ago
%global _description %{expand:
Pure Rust implementation of SHA-3, a family of Keccak-based hash
functions including the SHAKE family of eXtendable-Output Functions
(XOFs), as well as the accelerated variant TurboSHAKE.}
5 years ago
%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.
5 years ago
%files devel
3 years ago
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
5 years ago
%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.
5 years ago
%files -n %{name}+default-devel
3 years ago
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+asm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+asm-devel %{_description}
This package contains library source intended for building other packages which
use the "asm" feature of the "%{crate}" crate.
%files -n %{name}+asm-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+oid-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+oid-devel %{_description}
This package contains library source intended for building other packages which
use the "oid" feature of the "%{crate}" crate.
%files -n %{name}+oid-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+reset-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+reset-devel %{_description}
This package contains library source intended for building other packages which
use the "reset" feature of the "%{crate}" crate.
%files -n %{name}+reset-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%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.
5 years ago
%files -n %{name}+std-devel
3 years ago
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%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
%autochangelog