Adapt to new packaging

epel9
Josh Stone 6 years ago
parent e2c31c9525
commit 1638b6668c

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 2.0.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Rust equivalent of Unix command "which"
License: MIT
@ -16,27 +16,43 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0)
BuildRequires: (crate(libc) >= 0.2.10 with crate(libc) < 0.3.0)
BuildRequires: (crate(failure/default) >= 0.1.1 with crate(failure/default) < 0.2.0)
BuildRequires: (crate(libc/default) >= 0.2.10 with crate(libc/default) < 0.3.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(tempdir) >= 0.3.4 with crate(tempdir) < 0.4.0)
BuildRequires: (crate(tempdir/default) >= 0.3.4 with crate(tempdir/default) < 0.4.0)
%endif
%description
%{summary}.
%global _description \
A Rust equivalent of Unix command "which". Locate installed execuable in cross\
platforms.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A Rust equivalent of Unix command "which". Locate installed execuable in cross
platforms.
%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.txt
%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
@ -53,12 +69,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE.txt
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Mon Nov 12 2018 Josh Stone <jistone@redhat.com> - 2.0.0-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save