Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 3f92cb1bf0
commit 51ee844a1c

@ -6,9 +6,10 @@
Name: rust-%{crate}
Version: 0.3.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Shared definitions of home directories
# Upstream license specification: MIT/Apache-2.0
# https://github.com/brson/home/issues/2
License: MIT or ASL 2.0
URL: https://crates.io/crates/home
@ -20,21 +21,37 @@ Patch0: home-0.3.3-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(scopeguard) >= 0.3.0 with crate(scopeguard) < 0.4.0)
BuildRequires: (crate(scopeguard/default) >= 0.3.0 with crate(scopeguard/default) < 0.4.0)
%description
%{summary}.
%global _description \
Shared definitions of home directories.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Shared definitions of home directories.
%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
%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
@ -51,11 +68,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.3.3-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save