From cda7e0f323cb40c27cc765eb6693e23c9676974f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 24 Sep 2017 10:18:15 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-permutohedron.spec | 63 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 rust-permutohedron.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d5754f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/permutohedron-0.2.2.crate diff --git a/rust-permutohedron.spec b/rust-permutohedron.spec new file mode 100644 index 0000000..c07a74f --- /dev/null +++ b/rust-permutohedron.spec @@ -0,0 +1,63 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate permutohedron + +Name: rust-%{crate} +Version: 0.2.2 +Release: 3%{?dist} +Summary: Generate permutations of sequences + +# https://github.com/bluss/permutohedron/issues/5 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/permutohedron +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 +Generate permutations of sequences. Either lexicographical order permutations, +or a minimal swaps permutation sequence implemented using Heap's algorithm. + +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 +%doc README.rst +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,custom.css} + +%changelog +* Sat Sep 23 2017 Igor Gnatenko - 0.2.2-3 +- Remove unneeded files + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.2-2 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..18d9abd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (permutohedron-0.2.2.crate) = 2e48574480aadef799655036145fda9a8a8f6ee02c726a3653562ccefb68d8cd89d06c6de81db86e788ccaa2a546912635e4a772b62b9cfb790ddcaa90d19d5d