From 853c2cac3ea7811cf0819d49e278eb8f56f67c72 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sun, 14 Aug 2022 16:18:55 -0600 Subject: [PATCH] Initial import --- .gitignore | 1 + rust-bit_field.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 rust-bit_field.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b407596 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bit_field-0.10.1.crate diff --git a/rust-bit_field.spec b/rust-bit_field.spec new file mode 100644 index 0000000..adcfef2 --- /dev/null +++ b/rust-bit_field.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 22 +%bcond_without check +%global debug_package %{nil} + +%global crate bit_field + +Name: rust-bit_field +Version: 0.10.1 +Release: %autorelease +Summary: Simple bit field trait providing get_bit, get_bits, set_bit, and set_bits methods for Rust's integral types + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/bit_field +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Simple bit field trait providing get_bit, get_bits, set_bit, and set_bits +methods for Rust's integral types.} + +%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.md +%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 + +%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 diff --git a/sources b/sources new file mode 100644 index 0000000..ad2ddb0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bit_field-0.10.1.crate) = 4848d7ec592642913c7bd06cd3a0da49d3bb14291866cd22ead8e9a6b2939a787035d5cded87be3d2d3491283e31ea2cfb105885df4114720da98beb82990ee6