diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-13 15:28:00 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-13 15:28:00 -0700 |
commit | 3ed9c94d1ebcaffa4dee53f2e2e48795d2d580b0 (patch) | |
tree | fe472a27de302425b0aa98439cc18f3e12b19449 | |
parent | cb4f3fa32fc6a606ab01cfda9087e685da73587c (diff) | |
download | specs-3ed9c94d1ebcaffa4dee53f2e2e48795d2d580b0.tar.gz specs-3ed9c94d1ebcaffa4dee53f2e2e48795d2d580b0.tar.xz specs-3ed9c94d1ebcaffa4dee53f2e2e48795d2d580b0.zip |
+ rbw dep: base32
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | rust/rust-rbw/rust-base32.spec | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/rust/rust-rbw/rust-base32.spec b/rust/rust-rbw/rust-base32.spec new file mode 100644 index 0000000..4fac777 --- /dev/null +++ b/rust/rust-rbw/rust-base32.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 21 +# needs quickcheck 0.7, incompatible with 1.0 +%bcond_with check +%global debug_package %{nil} + +%global crate base32 + +Name: rust-%{crate} +Version: 0.4.0 +Release: %autorelease +Summary: Base32 encoder/decoder for Rust + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/base32 +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Base32 encoder/decoder for Rust.} + +%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 %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/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 |