|
|
|
@ -1,23 +1,18 @@
|
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
|
# Generated by rust2rpm 13
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate lexical-core
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.6.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.7.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Lexical, to- and from-string conversion routines
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
URL: https://crates.io/crates/lexical-core
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Update quickcheck to 0.9, https://github.com/Alexhuszagh/rust-lexical/commit/fefe81850e5678450ec0f001f562b182694caadf
|
|
|
|
|
# * Update static_assertions to 1, https://github.com/Alexhuszagh/rust-lexical/pull/31
|
|
|
|
|
# * Update arrayvec to 0.5, https://github.com/Alexhuszagh/rust-lexical/pull/32
|
|
|
|
|
Patch0: lexical-core-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
@ -43,7 +38,7 @@ which use "%{crate}" crate.
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
|
|
|
%doc README.md CHANGELOG
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -55,7 +50,7 @@ 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}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+arrayvec-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -67,7 +62,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "arrayvec" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+arrayvec-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+correct-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -79,7 +74,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "correct" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+correct-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+dtoa-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -91,7 +86,19 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "dtoa" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+dtoa-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+format-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+format-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "format" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+format-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+grisu3-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -103,7 +110,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "grisu3" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+grisu3-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+noinline-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -115,7 +122,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "noinline" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+noinline-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+radix-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -127,7 +134,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "radix" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+radix-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+rounding-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -139,7 +146,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "rounding" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+rounding-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+ryu-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -151,7 +158,19 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "ryu" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+ryu-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+static_assertions-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+static_assertions-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "static_assertions" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+static_assertions-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -163,7 +182,7 @@ 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}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+table-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -175,7 +194,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "table" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+table-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+trim_floats-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -187,7 +206,7 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "trim_floats" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+trim_floats-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+unchecked_index-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -199,12 +218,10 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "unchecked_index" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+unchecked_index-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
# Port to the static_assertions to 1.x
|
|
|
|
|
sed -e '/const_assert!/s/([^;)]\+;\s*/(/' -i src/util/table.rs src/atof/algorithm/small_powers.rs
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -222,6 +239,9 @@ sed -e '/const_assert!/s/([^;)]\+;\s*/(/' -i src/util/table.rs src/atof/algorith
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jan 25 2020 Josh Stone <jistone@redhat.com> - 0.7.1-1
|
|
|
|
|
- Update to 0.7.1
|
|
|
|
|
|
|
|
|
|
* Fri Dec 06 20:19:02 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.2-2
|
|
|
|
|
- Update arrayvec to 0.5
|
|
|
|
|
|
|
|
|
|