From 93708e475b54de4b168a24ed806963cbaf0aa15b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 17:25:41 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-num_cpus.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-num_cpus.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dd6c49 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num_cpus-1.7.0.crate diff --git a/rust-num_cpus.spec b/rust-num_cpus.spec new file mode 100644 index 0000000..d49c05d --- /dev/null +++ b/rust-num_cpus.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate num_cpus + +Name: rust-%{crate} +Version: 1.7.0 +Release: 1%{?dist} +Summary: Get the number of CPUs on a machine + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/num_cpus +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(libc) >= 0.2.26 with crate(libc) < 0.3.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Get the number of CPUs on a machine. + +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 +%doc README.md CHANGELOG.md CONTRIBUTING.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Nov 04 2017 Igor Gnatenko - 1.7.0-1 +- Update to 1.7.0 + +* Sun Jun 25 2017 Igor Gnatenko - 1.6.2-1 +- Update to 1.6.2 + +* Wed Jun 14 2017 Igor Gnatenko - 1.5.1-1 +- Update to 1.5.1 + +* Wed Jun 14 2017 Igor Gnatenko - 1.3.0-2 +- Port to use rust-packaging + +* Wed Mar 01 2017 Igor Gnatenko - 1.3.0-1 +- Update to 1.3.0 + +* Fri Feb 24 2017 Igor Gnatenko - 1.2.1-2 +- Use rich dependencies + +* Sun Feb 12 2017 Igor Gnatenko - 1.2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e1be0e6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num_cpus-1.7.0.crate) = 467500989a9b1fab4922c4db049a735a6fb7ac07cb92be2ce2bbf6e0c2ad4e3be5e1af33bdf2b9d160cab5ee5a4f292addea1180d5c2a940abd85f8e624d37e0