Adapt to new packaging

epel9
Josh Stone 6 years ago
parent fd019ebbff
commit ffe703f887

@ -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 <jistone@redhat.com> - 0.3.7-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save