diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..836876f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/generic-array-0.11.1.crate diff --git a/rust-generic-array.spec b/rust-generic-array.spec new file mode 100644 index 0000000..08151c9 --- /dev/null +++ b/rust-generic-array.spec @@ -0,0 +1,62 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate generic-array + +Name: rust-%{crate} +Version: 0.11.1 +Release: 1%{?dist} +Summary: Generic types implementing functionality of arrays + +License: MIT +URL: https://crates.io/crates/generic-array +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +BuildRequires: (crate(typenum) >= 1.9.0 with crate(typenum) < 2.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Generic types implementing functionality of arrays. + +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 +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sun Aug 12 2018 Igor Gnatenko - 0.11.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..518b4c9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (generic-array-0.11.1.crate) = 497948f00277f3ca43d8a6eba1dcc0689b73cf54a466064b8482be6636b5b2f36be787a2394610fb3e380e22d1a96a1eedd5e7569bafa94ecc10f16927dc9dbf