Sophie

Sophie

distrib > Mageia > 9 > aarch64 > media > core-release-src > by-pkgid > 0dfb3ad69d86869ae601f1bec762ad30 > files > 2

rust-num-complex-0.4.3-2.mga9.src.rpm

# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}

%global crate num-complex

Name:           rust-%{crate}
Version:        0.4.3
Release:        %mkrel 2
Summary:        Complex numbers implementation for Rust
Group:          Development/Other

# Upstream license specification: MIT OR Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/num-complex
Source:         %{crates_source}

BuildRequires:  rust-packaging >= 21

%global _description %{expand:
Complex numbers implementation for Rust.}

%description %{_description}

%package        devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description    devel %{_description}

This package contains library source intended for building other packages
which use "%{crate}" crate.

%files          devel
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/

%package     -n %{name}+default-devel
Summary:        %{summary}
Group:          Development/Other
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_no_tilde}/Cargo.toml

%package     -n %{name}+libm-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+libm-devel %{_description}

This package contains library source intended for building other packages
which use "libm" feature of "%{crate}" crate.

%files       -n %{name}+libm-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%package     -n %{name}+rand-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+rand-devel %{_description}

This package contains library source intended for building other packages
which use "rand" feature of "%{crate}" crate.

%files       -n %{name}+rand-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%package     -n %{name}+serde-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+serde-devel %{_description}

This package contains library source intended for building other packages
which use "serde" feature of "%{crate}" crate.

%files       -n %{name}+serde-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%package     -n %{name}+std-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+std-devel %{_description}

This package contains library source intended for building other packages
which use "std" feature of "%{crate}" crate.

%files       -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
# test failure on ix86:
# thread 'test::float::test_ln' panicked at 'assertion failed: -f64::consts::PI <= c.ln().arg() && c.ln().arg() <= f64::consts::PI', src/lib.rs:1689:17
%cargo_test -- -- --skip test::float::test_ln
%endif


%changelog
* Tue Feb 07 2023 guillomovitch <guillomovitch> 0.4.3-2.mga9
+ Revision: 1939060
- new version 0.4.3

* Tue May 24 2022 guillomovitch <guillomovitch> 0.4.1-1.mga9
+ Revision: 1860058
- new version 0.4.1

* Wed Mar 23 2022 umeabot <umeabot> 0.4.0-3.mga9
+ Revision: 1821682
- Mageia 9 Mass Rebuild

* Tue Mar 01 2022 guillomovitch <guillomovitch> 0.4.0-2.mga9
+ Revision: 1786917
- disable just failing test

* Mon Feb 28 2022 guillomovitch <guillomovitch> 0.4.0-1.mga9
+ Revision: 1786750
- imported package rust-num-complex


* Sat Feb 19 2022 Guillaume Rousse <guillomovitch@gmail.com> - 0.4.0-1
- Initial package