From fbb6b2d1c518c1f7d16ddc4b8e737c043af92f10 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 5 Feb 2018 13:58:36 +0100 Subject: [PATCH] initial build Signed-off-by: Tomas Tomecek --- .gitignore | 1 + rust-threadpool.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 rust-threadpool.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d7e36d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/threadpool-1.7.1.crate diff --git a/rust-threadpool.spec b/rust-threadpool.spec new file mode 100644 index 0000000..c32603c --- /dev/null +++ b/rust-threadpool.spec @@ -0,0 +1,62 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate threadpool + +Name: rust-%{crate} +Version: 1.7.1 +Release: 2%{?dist} +Summary: Thread pool for running a number of jobs on a fixed set of worker threads + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/threadpool/ +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(num_cpus) >= 1.6.0 with crate(num_cpus) < 2.0.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A thread pool for running a number of jobs on a fixed set of worker threads. + +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 CHANGES.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Thu Feb 01 2018 Tomas Tomecek - 1.7.1-2 +- fix summary, single line licenses, more docs, remove CI config +- fix rpmlint warnings + +* Sat Jan 27 2018 Tomas Tomecek - 1.7.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2f0e38d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (threadpool-1.7.1.crate) = e46733ea55a27a32868596562bbaf1e50508dea58359006cabd160b06cec4854c97b5d253cdcb8bfd60c7b3a33e496bec4159d0621efaa3cdcbc77255be4f275