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-rust_decimal/rust-rust_decimal.spec

281 lines
8.3 KiB

# Generated by rust2rpm 20
%bcond_without check
%global debug_package %{nil}
%global crate rust_decimal
Name: rust-%{crate}
Version: 1.18.0
Release: %autorelease
Summary: Decimal Implementation written in pure Rust suitable for financial calculations
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/rust_decimal
Source: %{crates_source}
# Initial patched metadata
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch0: rust_decimal-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
Decimal Implementation written in pure Rust suitable for financial
calculations.}
%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 LICENSE
%doc BUILD.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md VERSION.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+arbitrary-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+arbitrary-devel %{_description}
This package contains library source intended for building other packages which
use the "arbitrary" feature of the "%{crate}" crate.
%files -n %{name}+arbitrary-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+byteorder-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+byteorder-devel %{_description}
This package contains library source intended for building other packages which
use the "byteorder" feature of the "%{crate}" crate.
%files -n %{name}+byteorder-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+bytes-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bytes-devel %{_description}
This package contains library source intended for building other packages which
use the "bytes" feature of the "%{crate}" crate.
%files -n %{name}+bytes-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+c-repr-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+c-repr-devel %{_description}
This package contains library source intended for building other packages which
use the "c-repr" feature of the "%{crate}" crate.
%files -n %{name}+c-repr-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
5 years ago
%package -n %{name}+db-diesel-postgres-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+db-diesel-postgres-devel %{_description}
This package contains library source intended for building other packages which
use the "db-diesel-postgres" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+db-diesel-postgres-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+diesel-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+diesel-devel %{_description}
This package contains library source intended for building other packages which
use the "diesel" feature of the "%{crate}" crate.
%files -n %{name}+diesel-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+legacy-ops-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+legacy-ops-devel %{_description}
This package contains library source intended for building other packages which
use the "legacy-ops" feature of the "%{crate}" crate.
%files -n %{name}+legacy-ops-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+maths-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+maths-devel %{_description}
This package contains library source intended for building other packages which
use the "maths" feature of the "%{crate}" crate.
%files -n %{name}+maths-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+maths-nopanic-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+maths-nopanic-devel %{_description}
This package contains library source intended for building other packages which
use the "maths-nopanic" feature of the "%{crate}" crate.
%files -n %{name}+maths-nopanic-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+rust-fuzz-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rust-fuzz-devel %{_description}
This package contains library source intended for building other packages which
use the "rust-fuzz" feature of the "%{crate}" crate.
%files -n %{name}+rust-fuzz-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+serde-arbitrary-precision-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-arbitrary-precision-devel %{_description}
This package contains library source intended for building other packages which
use the "serde-arbitrary-precision" feature of the "%{crate}" crate.
%files -n %{name}+serde-arbitrary-precision-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
5 years ago
%package -n %{name}+serde-bincode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-bincode-devel %{_description}
This package contains library source intended for building other packages which
use the "serde-bincode" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+serde-bincode-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+serde-float-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-float-devel %{_description}
This package contains library source intended for building other packages which
use the "serde-float" feature of the "%{crate}" crate.
%files -n %{name}+serde-float-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+serde-str-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-str-devel %{_description}
This package contains library source intended for building other packages which
use the "serde-str" feature of the "%{crate}" crate.
%files -n %{name}+serde-str-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+serde_json-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde_json-devel %{_description}
This package contains library source intended for building other packages which
use the "serde_json" feature of the "%{crate}" crate.
%files -n %{name}+serde_json-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{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
# skip tests that depend on files not shipped with published crates
%cargo_test -- -- --skip generated::test_
%endif
%changelog
%autochangelog