From a3178df6a67b18c45b82e204ec147efc37aa7009 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mar 18 2020 10:19:46 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f23f01 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base64-0.11.0.crate diff --git a/rust-base64-0.11.spec b/rust-base64-0.11.spec new file mode 100644 index 0000000..2844dea --- /dev/null +++ b/rust-base64-0.11.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate base64 + +Name: rust-%{crate}-0.11 +Version: 0.11.0 +Release: 1%{?dist} +Summary: Encodes and decodes base64 as bytes or utf8 + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/base64 +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Encodes and decodes base64 as bytes or utf8.} + +%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-MIT LICENSE-APACHE +%doc README.md RELEASE-NOTES.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 "default" feature of "%{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 "alloc" feature of "%{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 "std" feature of "%{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 +* Wed Mar 18 11:19:07 CET 2020 Igor Raits - 0.11.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..374ab02 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base64-0.11.0.crate) = 31b5f56d4907a5e4ae40e92ef1629a446126525186f5236afc2475829bf2e5e067554db200a18f7b3ab741d0cc9c01e20612e77cc0cbc1bc2a4a8d11c0fdbf33