# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate byteorder Name: rust-%{crate} Version: 1.2.3 Release: 1%{?dist} Summary: Library for reading/writing numbers in big-endian and little-endian License: Unlicense or MIT URL: https://crates.io/crates/byteorder Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} # [dev-dependencies] BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0) BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Library for reading/writing numbers in big-endian and little-endian. 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 COPYING UNLICENSE LICENSE-MIT %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/ci %changelog * Mon May 14 2018 Igor Gnatenko - 1.2.3-1 - Update to 1.2.3 * Mon Apr 02 2018 Igor Gnatenko - 1.2.2-1 - Update to 1.2.2 * Fri Feb 09 2018 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 1.2.1-3 - Rebuild for rust-packaging v5 * Sun Dec 31 2017 Igor Gnatenko - 1.2.1-2 - Bump rand to 0.4 * Thu Nov 30 2017 Igor Gnatenko - 1.2.1-1 - Update to 1.2.1 * Fri Nov 10 2017 Igor Gnatenko - 1.1.0-1 - Update to 1.1.0 * Fri Jun 16 2017 Igor Gnatenko - 1.0.0-1 - Initial package