diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d6a3f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/block-padding-0.1.0.crate diff --git a/rust-block-padding.spec b/rust-block-padding.spec new file mode 100644 index 0000000..80e45e7 --- /dev/null +++ b/rust-block-padding.spec @@ -0,0 +1,54 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate block-padding + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Padding and unpadding of messages divided into blocks + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/block-padding +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 +Padding and unpadding of messages divided into blocks. + +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-MIT LICENSE-APACHE +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sun Aug 12 2018 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..be22ede --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (block-padding-0.1.0.crate) = 2137a53ba27095ed652476f25b5ccfc594efda000257002d3dbccac436d60b75b748235454bbea2d4389fec7ef1b1e0d322184978ac7f06dafb16411ac106867