Blame rust-which.spec

9b79d3a
# Generated by rust2rpm
9b79d3a
%bcond_without check
9b79d3a
%global debug_package %{nil}
9b79d3a
9b79d3a
%global crate which
9b79d3a
9b79d3a
Name:           rust-%{crate}
b52b26e
Version:        2.0.0
0a8e45e
Release:        1%{?dist}
9b79d3a
Summary:        Rust equivalent of Unix command "which"
9b79d3a
9b79d3a
License:        MIT
9b79d3a
URL:            https://crates.io/crates/which
9b79d3a
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
9b79d3a
9b79d3a
ExclusiveArch:  %{rust_arches}
9b79d3a
9b79d3a
BuildRequires:  rust-packaging
9b79d3a
# [dependencies]
b52b26e
BuildRequires:  (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0)
9b79d3a
BuildRequires:  (crate(libc) >= 0.2.10 with crate(libc) < 0.3.0)
9b79d3a
%if %{with check}
9b79d3a
# [dev-dependencies]
9b79d3a
BuildRequires:  (crate(tempdir) >= 0.3.4 with crate(tempdir) < 0.4.0)
9b79d3a
%endif
9b79d3a
9b79d3a
%description
9b79d3a
%{summary}.
9b79d3a
9b79d3a
%package        devel
9b79d3a
Summary:        %{summary}
9b79d3a
BuildArch:      noarch
9b79d3a
9b79d3a
%description    devel
9b79d3a
A Rust equivalent of Unix command "which". Locate installed execuable in cross
9b79d3a
platforms.
9b79d3a
9b79d3a
This package contains library source intended for building other packages
9b79d3a
which use %{crate} from crates.io.
9b79d3a
9b79d3a
%prep
9b79d3a
%autosetup -n %{crate}-%{version} -p1
9b79d3a
%cargo_prep
9b79d3a
9b79d3a
%build
9b79d3a
%cargo_build
9b79d3a
9b79d3a
%install
9b79d3a
%cargo_install
9b79d3a
9b79d3a
%if %{with check}
9b79d3a
%check
9b79d3a
%cargo_test
9b79d3a
%endif
9b79d3a
9b79d3a
%files          devel
9b79d3a
%license LICENSE.txt
9b79d3a
%doc README.md
9b79d3a
%{cargo_registry}/%{crate}-%{version}/
9b79d3a
9b79d3a
%changelog
b52b26e
* Thu Apr 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-1
b52b26e
- Update to 2.0.0
b52b26e
9df8392
* Sun Feb 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.5-1
9df8392
- Update to 1.0.5
9df8392
0a8e45e
* Fri Feb 16 2018 Josh Stone <jistone@redhat.com> - 1.0.4-1
0a8e45e
- Update to 1.0.4
0a8e45e
2023872
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
2023872
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2023872
a4f8b0f
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.3-2
a4f8b0f
- Rebuild for rust-packaging v5
a4f8b0f
9b79d3a
* Wed Nov 29 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.3-1
9b79d3a
- Initial package