# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate permutohedron Name: rust-%{crate} Version: 0.2.4 Release: 2%{?dist} Summary: Generate permutations of sequences 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 %license LICENSE-APACHE LICENSE-MIT %doc README.rst %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,custom.css} %changelog * Mon Jan 08 2018 Igor Gnatenko - 0.2.4-2 - Rebuild for rust-packaging v5 * Sat Nov 11 2017 Igor Gnatenko - 0.2.4-1 - Update to 0.2.4 * Sat Oct 21 2017 Igor Gnatenko - 0.2.2-4 - Rebuild to get dependency on cargo * 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