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.
81 lines
2.0 KiB
81 lines
2.0 KiB
5 years ago
|
# Generated by rust2rpm 13
|
||
|
%bcond_without check
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
%global crate async-task
|
||
|
|
||
|
Name: rust-%{crate}
|
||
|
Version: 1.0.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Task abstraction for building executors
|
||
|
|
||
|
# Upstream license specification: Apache-2.0/MIT
|
||
|
License: ASL 2.0 or MIT
|
||
|
URL: https://crates.io/crates/async-task
|
||
|
Source: %{crates_source}
|
||
|
# Initial patched metadata
|
||
|
# * Update dependencies, https://github.com/async-rs/async-task/commit/68ab7bfd21775b216b32c2ea6acaa946a8bff14a
|
||
|
Patch0: async-task-fix-metadata.diff
|
||
|
# https://github.com/async-rs/async-task/commit/226b2529314d5a4c3e6c8d4620926abb4508751a
|
||
|
Patch0001: 0001-Remove-async_await-feature-gates-4.patch
|
||
|
|
||
|
ExclusiveArch: %{rust_arches}
|
||
|
%if %{__cargo_skip_build}
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
BuildRequires: rust-packaging
|
||
|
|
||
|
%global _description %{expand:
|
||
|
Task abstraction for building executors.}
|
||
|
|
||
|
%description %{_description}
|
||
|
|
||
|
%package devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "%{crate}" crate.
|
||
|
|
||
|
%files devel
|
||
|
%license LICENSE-MIT LICENSE-APACHE
|
||
|
%doc README.md CHANGELOG.md
|
||
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||
|
|
||
|
%package -n %{name}+default-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+default-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "default" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+default-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||
|
%cargo_prep
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%cargo_generate_buildrequires
|
||
|
|
||
|
%build
|
||
|
%cargo_build
|
||
|
|
||
|
%install
|
||
|
%cargo_install
|
||
|
|
||
|
%if %{with check}
|
||
|
%check
|
||
|
%cargo_test
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Fri Dec 20 16:20:09 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-1
|
||
|
- Initial package
|