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

129 lines
3.3 KiB

# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate bitvec
Name: rust-bitvec
Version: 0.19.6
Release: %autorelease
Summary: Crate for manipulating memory, bit by bit
License: MIT
URL: https://crates.io/crates/bitvec
Source0: %{crates_source}
# https://github.com/myrrlyn/bitvec/issues/93
Source1: https://github.com/bitvecto-rs/bitvec/raw/v0/19/6/LICENSE.txt
# Manually created patch for downstream crate metadata changes
# * bump radium from 0.5 to 0.6:
# https://github.com/bitvecto-rs/bitvec/commit/dedee4b
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch0: bitvec-fix-metadata.diff
# 0.19.x series has some problems with s390x that have been fixed for 0.20.x:
# https://github.com/bitvecto-rs/bitvec/commit/bb80797
# https://github.com/bitvecto-rs/bitvec/commit/3bce0aa
Patch1: 0001-fix-s390x-issues.patch
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Crate for manipulating memory, bit by bit.}
%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.txt
%{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}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages which
use the "alloc" feature of the "%{crate}" crate.
%files -n %{name}+alloc-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+atomic-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+atomic-devel %{_description}
This package contains library source intended for building other packages which
use the "atomic" feature of the "%{crate}" crate.
%files -n %{name}+atomic-devel
%ghost %{crate_instdir}/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 %{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
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
cp -pav %{SOURCE1} .
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog