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

97 lines
2.1 KiB

# Generated by rust2rpm 22
5 years ago
%bcond_without check
%global debug_package %{nil}
%global crate sha3
Name: rust-sha3
Version: 0.10.4
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}
ExclusiveArch: %{rust_arches}
3 years ago
BuildRequires: rust-packaging >= 21
5 years ago
%global _description %{expand:
SHA-3 (Keccak) hash function.}
%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}+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