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

126 lines
3.3 KiB

# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}
%global crate typenum
Name: rust-%{crate}
Version: 1.13.0
Release: %autorelease
Summary: Rust library for type-level numbers evaluated at compile time
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/typenum
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Rust library for type-level numbers evaluated at compile time. It currently
supports bits, unsigned integers, and signed integers. It also provides a
type-level array of type-level numbers, but its implementation is
incomplete.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE LICENSE-APACHE LICENSE-MIT
%doc README.md CHANGELOG.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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+force_unix_path_separator-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+force_unix_path_separator-devel %{_description}
This package contains library source intended for building other packages
which use "force_unix_path_separator" feature of "%{crate}" crate.
%files -n %{name}+force_unix_path_separator-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+i128-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+i128-devel %{_description}
This package contains library source intended for building other packages
which use "i128" feature of "%{crate}" crate.
%files -n %{name}+i128-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+no_std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+no_std-devel %{_description}
This package contains library source intended for building other packages
which use "no_std" feature of "%{crate}" crate.
%files -n %{name}+no_std-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+strict-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+strict-devel %{_description}
This package contains library source intended for building other packages
which use "strict" feature of "%{crate}" crate.
%files -n %{name}+strict-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
%cargo_test
%endif
%changelog
%autochangelog