parent
96f891b6b2
commit
fbb6b2d1c5
@ -0,0 +1 @@
|
||||
/threadpool-1.7.1.crate
|
@ -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 <ttomecek@redhat.com> - 1.7.1-2
|
||||
- fix summary, single line licenses, more docs, remove CI config
|
||||
- fix rpmlint warnings
|
||||
|
||||
* Sat Jan 27 2018 Tomas Tomecek <ttomecek@redhat.com> - 1.7.1-1
|
||||
- Initial package
|
Loading…
Reference in new issue