You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-threadpool/rust-threadpool.spec

72 lines
1.9 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate threadpool
Name: rust-%{crate}
Version: 1.7.1
Release: 5%{?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
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* 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