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

89 lines
2.0 KiB

3 years ago
# Generated by rust2rpm 21
5 years ago
%bcond_without check
%global debug_package %{nil}
%global crate sha3
Name: rust-%{crate}
3 years ago
Version: 0.10.1
Release: 2%{?dist}
5 years ago
Summary: SHA-3 (Keccak) hash function
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
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}+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
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
%autochangelog