Blame rust-wide.spec

91739ea
# Generated by rust2rpm 23
4dc7a75
%bcond_without check
4dc7a75
%global debug_package %{nil}
4dc7a75
4dc7a75
%global crate wide
4dc7a75
6633b7e
Name:           rust-wide
91739ea
Version:        0.7.6
2af6195
Release:        %autorelease
4dc7a75
Summary:        Crate to help you go wide
4dc7a75
6633b7e
License:        Zlib OR Apache-2.0 OR MIT
4dc7a75
URL:            https://crates.io/crates/wide
4dc7a75
Source:         %{crates_source}
4dc7a75
6633b7e
BuildRequires:  rust-packaging >= 21
4dc7a75
4dc7a75
%global _description %{expand:
4dc7a75
Crate to help you go wide.}
4dc7a75
4dc7a75
%description %{_description}
4dc7a75
4dc7a75
%package        devel
4dc7a75
Summary:        %{summary}
4dc7a75
BuildArch:      noarch
4dc7a75
4dc7a75
%description    devel %{_description}
4dc7a75
38c1b4d
This package contains library source intended for building other packages which
38c1b4d
use the "%{crate}" crate.
4dc7a75
4dc7a75
%files          devel
6633b7e
%license %{crate_instdir}/LICENSE-ZLIB.md
6633b7e
%doc %{crate_instdir}/README.md
6633b7e
%{crate_instdir}/
4dc7a75
4dc7a75
%package     -n %{name}+default-devel
4dc7a75
Summary:        %{summary}
4dc7a75
BuildArch:      noarch
4dc7a75
4dc7a75
%description -n %{name}+default-devel %{_description}
4dc7a75
8815c2b
This package contains library source intended for building other packages which
38c1b4d
use the "default" feature of the "%{crate}" crate.
4dc7a75
4dc7a75
%files       -n %{name}+default-devel
6633b7e
%ghost %{crate_instdir}/Cargo.toml
4dc7a75
4dc7a75
%package     -n %{name}+std-devel
4dc7a75
Summary:        %{summary}
4dc7a75
BuildArch:      noarch
4dc7a75
4dc7a75
%description -n %{name}+std-devel %{_description}
4dc7a75
8815c2b
This package contains library source intended for building other packages which
38c1b4d
use the "std" feature of the "%{crate}" crate.
4dc7a75
4dc7a75
%files       -n %{name}+std-devel
6633b7e
%ghost %{crate_instdir}/Cargo.toml
4dc7a75
4dc7a75
%prep
4dc7a75
%autosetup -n %{crate}-%{version_no_tilde} -p1
4dc7a75
%cargo_prep
4dc7a75
4dc7a75
%generate_buildrequires
4dc7a75
%cargo_generate_buildrequires
4dc7a75
4dc7a75
%build
4dc7a75
%cargo_build
4dc7a75
4dc7a75
%install
4dc7a75
%cargo_install
4dc7a75
4dc7a75
%if %{with check}
4dc7a75
%check
6633b7e
%ifarch s390x
6633b7e
# * skip a test that fails due to endianness issues:
6633b7e
#   https://github.com/Lokathor/wide/issues/88
6633b7e
%cargo_test -- -- --skip test_software_sqrt
6633b7e
%else
4dc7a75
%cargo_test
4dc7a75
%endif
6633b7e
%endif
4dc7a75
4dc7a75
%changelog
2af6195
%autochangelog