Davide Cavalca 4 years ago
parent ab2a05a6a6
commit bb0775849b

1
.gitignore vendored

@ -0,0 +1 @@
/constant_time_eq-0.1.5.crate

@ -0,0 +1,75 @@
# Generated by rust2rpm 17
%bcond_without check
%global debug_package %{nil}
%global crate constant_time_eq
Name: rust-%{crate}
Version: 0.1.5
Release: 1%{?dist}
Summary: Compares two equal-sized byte strings in constant time
# Upstream license specification: CC0-1.0
License: CC0
URL: https://crates.io/crates/constant_time_eq
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Compares two equal-sized byte strings in constant time.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE.txt
%doc README
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%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
* Thu Jun 17 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.1.5-1
- Initial package

@ -0,0 +1 @@
SHA512 (constant_time_eq-0.1.5.crate) = a4e0155a7ad72babcfd418d832d362b3fca7333aaaf36c246b00e948983837c3c93378b86e37c5fa7626fe137e3b6d77276ccc61624a7f4ab914605905a88a01
Loading…
Cancel
Save