diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..525c4ff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num-traits-0.1.40.crate diff --git a/rust-num-traits.spec b/rust-num-traits.spec new file mode 100644 index 0000000..add7ec4 --- /dev/null +++ b/rust-num-traits.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate num-traits + +Name: rust-%{crate} +Version: 0.1.40 +Release: 1%{?dist} +Summary: Numeric traits for generic mathematics + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/num-traits +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 +Numeric traits for generic mathematics. + +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-MIT LICENSE-APACHE +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Nov 04 2017 Igor Gnatenko - 0.1.40-1 +- Update to 0.1.40 + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.39-1 +- Update to 0.1.39 + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.37-2 +- Port to use rust-packaging + +* Mon Feb 27 2017 Igor Gnatenko - 0.1.37-1 +- Update to 0.1.37 + +* Sun Feb 26 2017 Igor Gnatenko - 0.1.36-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..35d289d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num-traits-0.1.40.crate) = 3675fd14064b877e65bb3f9479e5d1486a932901e2ddadee54b4913577067ad9d1bc9544663cfd13116405fde9059032824d6228b3b987b91b3edf80c8e669b6