e8631f3
# Generated by rust2rpm
e8631f3
%bcond_without check
e8631f3
%global debug_package %{nil}
e8631f3
e8631f3
%global crate spin
e8631f3
e8631f3
Name:           rust-%{crate}
e8631f3
Version:        0.4.6
28f6296
Release:        3%{?dist}
e8631f3
Summary:        Synchronization primitives based on spinning
e8631f3
e8631f3
License:        MIT
e8631f3
URL:            https://crates.io/crates/spin
e8631f3
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
e8631f3
e8631f3
ExclusiveArch:  %{rust_arches}
e8631f3
e8631f3
BuildRequires:  rust-packaging
e8631f3
e8631f3
%description
e8631f3
%{summary}.
e8631f3
e8631f3
%package        devel
e8631f3
Summary:        %{summary}
e8631f3
BuildArch:      noarch
e8631f3
e8631f3
%description    devel
e8631f3
Synchronization primitives based on spinning.
e8631f3
They may contain data,
e8631f3
They are usable without `std`
e8631f3
and static initializers are available.
e8631f3
e8631f3
This package contains library source intended for building other packages
e8631f3
which use %{crate} from crates.io.
e8631f3
e8631f3
%prep
e8631f3
%autosetup -n %{crate}-%{version} -p1
e8631f3
# https://github.com/mvdnes/spin-rs/pull/46
e8631f3
chmod -x src/lib.rs
e8631f3
%cargo_prep
e8631f3
e8631f3
%build
e8631f3
# https://github.com/mvdnes/spin-rs/issues/37
e8631f3
%cargo_build --no-default-features
e8631f3
e8631f3
%install
e8631f3
%cargo_install
e8631f3
e8631f3
%if %{with check}
e8631f3
%check
e8631f3
%cargo_test --no-default-features
e8631f3
%endif
e8631f3
e8631f3
%files          devel
e8631f3
%license LICENSE
e8631f3
%doc README.md
e8631f3
%{cargo_registry}/%{crate}-%{version}/
e8631f3
%exclude %{cargo_registry}/%{crate}-%{version}/script
e8631f3
e8631f3
%changelog
28f6296
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-3
28f6296
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
28f6296
2c1724e
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-2
2c1724e
- Rebuild for rust-packaging v5
2c1724e
e8631f3
* Sun Nov 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-1
e8631f3
- Update to 0.4.6
e8631f3
e8631f3
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.5-2
e8631f3
- Port to use rust-packaging
e8631f3
e8631f3
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.5-1
e8631f3
- Initial package