# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate byteorder Name: rust-%{crate} Version: 1.1.0 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 # https://github.com/BurntSushi/byteorder/pull/104 Patch0: 0001-Fix-prop_ext_-u-int_-native_endian-on-BE-targets.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} # [dev-dependencies] BuildRequires: (crate(quickcheck) >= 0.4.0 with crate(quickcheck) < 0.5.0) BuildRequires: (crate(rand) >= 0.3.0 with crate(rand) < 0.4.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}/ %changelog * 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