From 0ce925f6956567984dd7213f7f6641aa7b4545b8 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jun 24 2020 05:24:53 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18fc8d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/digest-0.7.6.crate diff --git a/rust-digest0.7.spec b/rust-digest0.7.spec new file mode 100644 index 0000000..a8aee7b --- /dev/null +++ b/rust-digest0.7.spec @@ -0,0 +1,98 @@ +# Generated by rust2rpm 15 +%bcond_with check +%global debug_package %{nil} + +%global crate digest + +Name: rust-%{crate}0.7 +Version: 0.7.6 +Release: 1%{?dist} +Summary: Traits for cryptographic hash functions + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/digest +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Traits for cryptographic hash functions.} + +%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 +%{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}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages +which use "dev" feature of "%{crate}" crate. + +%files -n %{name}+dev-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 Jun 24 07:24:21 CEST 2020 Igor Raits - 0.7.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ba9315f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (digest-0.7.6.crate) = 2aed8837d9d0b2fd82f53f235e7910dba6c825a6ac7c5715e514d571de8123fdcee5be9b52b355f2328a7a8cde6367846016b2ca3b78356951f10fc0db50841e