From ffe703f887af64b8f71ccf62897d70db8de458a5 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Oct 30 2018 00:17:47 +0000 Subject: Adapt to new packaging --- diff --git a/rust-tempdir.spec b/rust-tempdir.spec index b4a3dd0..514fd62 100644 --- a/rust-tempdir.spec +++ b/rust-tempdir.spec @@ -6,9 +6,10 @@ Name: rust-%{crate} Version: 0.3.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for managing a temporary directory +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/tempdir Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -16,23 +17,40 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) -BuildRequires: (crate(remove_dir_all) >= 0.5.0 with crate(remove_dir_all) < 0.6.0) +BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) +BuildRequires: (crate(remove_dir_all/default) >= 0.5.0 with crate(remove_dir_all/default) < 0.6.0) -%description -%{summary}. +%global _description \ +A library for managing a temporary directory and deleting all contents when\ +it's dropped. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A library for managing a temporary directory and deleting all contents when -it's dropped. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -49,12 +67,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 +* Tue Oct 30 2018 Josh Stone - 0.3.7-3 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.3.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild