Blame rust-void.spec

a0e3eb4
# Generated by rust2rpm
a0e3eb4
%bcond_without check
a0e3eb4
%global debug_package %{nil}
a0e3eb4
a0e3eb4
%global crate void
a0e3eb4
a0e3eb4
Name:           rust-%{crate}
a0e3eb4
Version:        1.0.2
a0e3eb4
Release:        2%{?dist}
a0e3eb4
Summary:        Uninhabited void type for use in statically impossible cases
a0e3eb4
a0e3eb4
# https://github.com/reem/rust-void/issues/15
a0e3eb4
License:        MIT
a0e3eb4
URL:            https://crates.io/crates/void
a0e3eb4
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
a0e3eb4
a0e3eb4
ExclusiveArch:  %{rust_arches}
a0e3eb4
a0e3eb4
BuildRequires:  rust-packaging
a0e3eb4
a0e3eb4
%description
a0e3eb4
%{summary}.
a0e3eb4
a0e3eb4
%package        devel
a0e3eb4
Summary:        %{summary}
a0e3eb4
BuildArch:      noarch
a0e3eb4
a0e3eb4
%description    devel
a0e3eb4
The uninhabited void type for use in statically impossible cases.
a0e3eb4
a0e3eb4
This package contains library source intended for building other packages
a0e3eb4
which use %{crate} from crates.io.
a0e3eb4
a0e3eb4
%prep
a0e3eb4
%autosetup -n %{crate}-%{version} -p1
a0e3eb4
%cargo_prep
a0e3eb4
a0e3eb4
%build
a0e3eb4
%cargo_build
a0e3eb4
a0e3eb4
%install
a0e3eb4
%cargo_install
a0e3eb4
a0e3eb4
%if %{with check}
a0e3eb4
%check
a0e3eb4
%cargo_test
a0e3eb4
%endif
a0e3eb4
a0e3eb4
%files          devel
a0e3eb4
%doc README.md
a0e3eb4
%{cargo_registry}/%{crate}-%{version}/
a0e3eb4
a0e3eb4
%changelog
a0e3eb4
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.2-2
a0e3eb4
- Port to use rust-packaging
a0e3eb4
a0e3eb4
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.2-1
a0e3eb4
- Initial package