Blob Blame History Raw
# Generated by rust2rpm
# extprim(dev) -> extprim_literals -> extprim_literals_macros -> extprim
%bcond_with check
%global debug_package %{nil}

%global crate extprim

Name:           rust-%{crate}
Version:        1.6.0
Release:        2%{?dist}
Summary:        Extra primitive types (u128, i128)

License:        MIT or ASL 2.0
URL:            https://crates.io/crates/extprim
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging
# [dependencies]
BuildRequires:  (crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0)
BuildRequires:  (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
BuildRequires:  ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive))
# [build-dependencies]
BuildRequires:  (crate(rustc_version) >= 0.2.0 with crate(rustc_version) < 0.3.0)
BuildRequires:  (crate(semver) >= 0.9.0 with crate(semver) < 0.10.0)
%if %{with check}
# [dev-dependencies]
BuildRequires:  (crate(extprim_literals) >= 2.0.0 with crate(extprim_literals) < 3.0.0)
%endif

%description
%{summary}.

%package        devel
Summary:        %{summary}
BuildArch:      noarch

%description    devel
Extra primitive types (u128, i128).

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

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

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%files          devel
%license LICENSE-MIT.txt LICENSE-APACHE.txt
%doc README.md
%{cargo_registry}/%{crate}-%{version}/

%changelog
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Mon May 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sun Jan 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.1-1
- Update to 1.5.1

* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.0-1
- Update to 1.5.0

* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.0-3
- Rebuild for rust-packaging v5

* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.0-2
- Bump rand to 0.4

* Fri Nov 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.0-1
- Update to 1.4.0

* Mon Jul 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.0-1
- Update to 1.3.0

* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-1
- Initial package