From 39b3d56dc8138c0ad90033a07dd0160b3bb8a430 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 29 2017 14:31:22 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..98207a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/md5-0.3.6.crate diff --git a/rust-md5.spec b/rust-md5.spec new file mode 100644 index 0000000..877441b --- /dev/null +++ b/rust-md5.spec @@ -0,0 +1,55 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate md5 + +Name: rust-%{crate} +Version: 0.3.6 +Release: 1%{?dist} +Summary: MD5 hash function + +License: ASL 2.0 or MIT +URL: https://crates.io/crates/md5 +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +The package provides the MD5 hash function. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE.md +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Nov 29 2017 Igor Gnatenko - 0.3.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6fd3b72 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (md5-0.3.6.crate) = 1dc122d95672d04f3b02f99f96a0deb192ec6c537359fef4d10b844ccf0235a714c9b7db1850f690fbf198839f5e85c091c5dff3549a21a8024919760a1f4a90