diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5f6d96 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/indexmap-0.4.1.crate diff --git a/rust-indexmap.spec b/rust-indexmap.spec new file mode 100644 index 0000000..f37c768 --- /dev/null +++ b/rust-indexmap.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate indexmap + +Name: rust-%{crate} +Version: 0.4.1 +Release: 1%{?dist} +Summary: Hash table with consistent order and fast iteration + +License: ASL 2.0 or MIT +URL: https://crates.io/crates/indexmap +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) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(fnv) >= 1.0.0 with crate(fnv) < 2.0.0) +BuildRequires: (crate(itertools) >= 0.7.0 with crate(itertools) < 0.8.0) +BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) +BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0) +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) +BuildRequires: (crate(serde_test) >= 1.0.5 with crate(serde_test) < 2.0.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A hash table with consistent order and fast iteration. + +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-APACHE LICENSE-MIT +%doc README.rst +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Mar 10 2018 Igor Gnatenko - 0.4.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..03769c8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (indexmap-0.4.1.crate) = 3d2a4656be12c5a11342a8e458d7e18c4d543f51e30d55751bb4db22a4780353c20fa7572952da16ada7a5d12407fd521037d0e83f32b21fe850f26b8a96ff11