diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8db4b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/byteorder-1.1.0.crate diff --git a/rust-byteorder.spec b/rust-byteorder.spec new file mode 100644 index 0000000..3c81255 --- /dev/null +++ b/rust-byteorder.spec @@ -0,0 +1,63 @@ +# 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 + +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 diff --git a/sources b/sources new file mode 100644 index 0000000..4ec3f91 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (byteorder-1.1.0.crate) = 610c77c91fa3c23699d28d78631b87e6d4c56ad9754dabfb640f9ac4a41a2925c1a44c34988654bdcd4b02a3474ddf374d98999f6d53bed68835360d288b9922