From a88207dfec5cdb2e568a45be473b22e2f1c65b15 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 13 Feb 2020 22:56:07 +0100 Subject: [PATCH] package unretirement --- rust-futures-timer.spec | 53 ++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/rust-futures-timer.spec b/rust-futures-timer.spec index f7dee50..0e0dcec 100644 --- a/rust-futures-timer.spec +++ b/rust-futures-timer.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} @@ -6,36 +6,59 @@ Name: rust-%{crate} Version: 0.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Timeouts and intervals for futures +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/futures-timer -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(futures) >= 0.1.0 with crate(futures) < 0.2.0) -%description -%{summary}. +%global _description %{expand: +Timeouts and intervals for futures.} + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Timeouts and intervals for futures. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.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 %{crate} from crates.io. +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} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -47,12 +70,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Mon Feb 10 2020 Fabio Valentini - 0.1.1-3 +- Package unretirement + * Sat Feb 02 2019 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild