You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-lexical-core/SPECS/rust-lexical-core.spec

349 lines
10 KiB

## START: Set by rpmautospec
## (rpmautospec version 0.3.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 7;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate lexical-core
Name: rust-lexical-core
Version: 0.7.6
Release: %autorelease
Summary: Lexical, to- and from-string conversion routines
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/lexical-core
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * bump approx dev-dependency from 0.4 to 0.5
# * disable LTO to work around LLVM crashes on ppc64le
Patch: lexical-core-fix-metadata.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Lexical, to- and from-string conversion routines.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+arrayvec-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+arrayvec-devel %{_description}
This package contains library source intended for building other packages which
use the "arrayvec" feature of the "%{crate}" crate.
%files -n %{name}+arrayvec-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+correct-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+correct-devel %{_description}
This package contains library source intended for building other packages which
use the "correct" feature of the "%{crate}" crate.
%files -n %{name}+correct-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dtoa-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dtoa-devel %{_description}
This package contains library source intended for building other packages which
use the "dtoa" feature of the "%{crate}" crate.
%files -n %{name}+dtoa-devel
%ghost %{crate_instdir}/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 the "format" feature of the "%{crate}" crate.
%files -n %{name}+format-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+grisu3-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+grisu3-devel %{_description}
This package contains library source intended for building other packages which
use the "grisu3" feature of the "%{crate}" crate.
%files -n %{name}+grisu3-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+libm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libm-devel %{_description}
This package contains library source intended for building other packages which
use the "libm" feature of the "%{crate}" crate.
%files -n %{name}+libm-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+noinline-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+noinline-devel %{_description}
This package contains library source intended for building other packages which
use the "noinline" feature of the "%{crate}" crate.
%files -n %{name}+noinline-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+property_tests-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+property_tests-devel %{_description}
This package contains library source intended for building other packages which
use the "property_tests" feature of the "%{crate}" crate.
%files -n %{name}+property_tests-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+proptest-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+proptest-devel %{_description}
This package contains library source intended for building other packages which
use the "proptest" feature of the "%{crate}" crate.
%files -n %{name}+proptest-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+quickcheck-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+quickcheck-devel %{_description}
This package contains library source intended for building other packages which
use the "quickcheck" feature of the "%{crate}" crate.
%files -n %{name}+quickcheck-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+radix-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+radix-devel %{_description}
This package contains library source intended for building other packages which
use the "radix" feature of the "%{crate}" crate.
%files -n %{name}+radix-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rounding-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rounding-devel %{_description}
This package contains library source intended for building other packages which
use the "rounding" feature of the "%{crate}" crate.
%files -n %{name}+rounding-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ryu-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ryu-devel %{_description}
This package contains library source intended for building other packages which
use the "ryu" feature of the "%{crate}" crate.
%files -n %{name}+ryu-devel
%ghost %{crate_instdir}/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 the "static_assertions" feature of the "%{crate}" crate.
%files -n %{name}+static_assertions-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages which
use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+table-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+table-devel %{_description}
This package contains library source intended for building other packages which
use the "table" feature of the "%{crate}" crate.
%files -n %{name}+table-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+trim_floats-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+trim_floats-devel %{_description}
This package contains library source intended for building other packages which
use the "trim_floats" feature of the "%{crate}" crate.
%files -n %{name}+trim_floats-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unchecked_index-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unchecked_index-devel %{_description}
This package contains library source intended for building other packages which
use the "unchecked_index" feature of the "%{crate}" crate.
%files -n %{name}+unchecked_index-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# remove executable bit from all files
find . -type f -executable -exec chmod -x {} +
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Mon Nov 20 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.7.6-7
- Rebuilt for MSVSphere 9.2
* Thu Dec 15 2022 Fabio Valentini <decathorpe@gmail.com> - 0.7.6-7
- Disable LTO to work around LLVM crashes on ppc64le
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Nov 14 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0.7.6-4
- Bump approx to 0.5.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat Jun 19 2021 Fabio Valentini <decathorpe@gmail.com> - 0.7.6-1
- Update to version 0.7.6.
- Fixes RHBZ#1928337
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Sep 25 2020 Fabio Valentini <decathorpe@gmail.com> - 0.7.4-3
- Disable tests, broken with proptest 0.10.
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jan 30 2020 Josh Stone <jistone@redhat.com> - 0.7.4-1
- Update to 0.7.4
* Mon Jan 27 2020 Josh Stone <jistone@redhat.com> - 0.7.3-1
- Update to 0.7.3
* 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
* Tue Nov 26 13:14:05 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.2-1
- Initial package