Initial import (#2031162)

epel9
Fabio Valentini 3 years ago
parent c58c41cd5d
commit 09cb683a3a
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

4
.gitignore vendored

@ -0,0 +1,4 @@
/results_*/
/*.src.rpm
/base64ct-1.3.0.crate

@ -1,3 +0,0 @@
# rust-base64ct
The rust-base64ct package

@ -0,0 +1,97 @@
# Generated by rust2rpm 20
%bcond_without check
%global debug_package %{nil}
%global crate base64ct
Name: rust-%{crate}
Version: 1.3.0
Release: %autorelease
Summary: Pure Rust, constant-time implementation of Base64 (RFC 4648)
# Upstream license specification: Apache-2.0 OR MIT
License: ASL 2.0 or MIT
URL: https://crates.io/crates/base64ct
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
Pure Rust implementation of Base64 (RFC 4648) which avoids any usages of data-
dependent branches/LUTs and thereby provides portable "best effort" constant-
time operation and embedded-friendly no_std support.}
%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 LICENSE-APACHE LICENSE-MIT
%doc CHANGELOG.md README.md
%{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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages which
use the "alloc" feature of the "%{crate}" crate.
%files -n %{name}+alloc-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%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.
%files -n %{name}+std-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
%autochangelog

@ -0,0 +1 @@
SHA512 (base64ct-1.3.0.crate) = 514f1e0f8594a8ee911fa277789a602ba59ebe6631f5315c00d3cbf82f411c3095be3c46a83e07f2c65a68cc4c68ca8ebf81dc2d27a631e4d637dfd1a834bd53
Loading…
Cancel
Save