# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate bitfields Name: rust-bitfields Version: 3.2.4 Release: %autorelease Summary: Procedural macro for defining bitfields and bit flags License: MIT URL: https://crates.io/crates/bitfields Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop the dummy-alloc dev-dependency (not packaged; only used by skipped # compile-fail tests) Patch: bitfields-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Procedural macro for generating bitfields from Rust structures and bit flags from enumerations, for defining packed binary layouts in low-level code.} %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 %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}+bitflag_derive_copy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_derive_copy-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_derive_copy" feature of the "%{crate}" crate. %files -n %{name}+bitflag_derive_copy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitflag_disable_copy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_disable_copy-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_disable_copy" feature of the "%{crate}" crate. %files -n %{name}+bitflag_disable_copy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitflag_from_endian_big-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_from_endian_big-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_from_endian_big" feature of the "%{crate}" crate. %files -n %{name}+bitflag_from_endian_big-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitflag_from_endian_little-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_from_endian_little-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_from_endian_little" feature of the "%{crate}" crate. %files -n %{name}+bitflag_from_endian_little-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitflag_into_endian_big-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_into_endian_big-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_into_endian_big" feature of the "%{crate}" crate. %files -n %{name}+bitflag_into_endian_big-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitflag_into_endian_little-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitflag_into_endian_little-devel %{_description} This package contains library source intended for building other packages which use the "bitflag_into_endian_little" feature of the "%{crate}" crate. %files -n %{name}+bitflag_into_endian_little-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+derive_copy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+derive_copy-devel %{_description} This package contains library source intended for building other packages which use the "derive_copy" feature of the "%{crate}" crate. %files -n %{name}+derive_copy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_array_heap_no_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_array_heap_no_std-devel %{_description} This package contains library source intended for building other packages which use the "disable_array_heap_no_std" feature of the "%{crate}" crate. %files -n %{name}+disable_array_heap_no_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_array_heap_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_array_heap_std-devel %{_description} This package contains library source intended for building other packages which use the "disable_array_heap_std" feature of the "%{crate}" crate. %files -n %{name}+disable_array_heap_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_builder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_builder-devel %{_description} This package contains library source intended for building other packages which use the "disable_builder" feature of the "%{crate}" crate. %files -n %{name}+disable_builder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_clear_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_clear_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_clear_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_clear_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_copy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_copy-devel %{_description} This package contains library source intended for building other packages which use the "disable_copy" feature of the "%{crate}" crate. %files -n %{name}+disable_copy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_debug-devel %{_description} This package contains library source intended for building other packages which use the "disable_debug" feature of the "%{crate}" crate. %files -n %{name}+disable_debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_default-devel %{_description} This package contains library source intended for building other packages which use the "disable_default" feature of the "%{crate}" crate. %files -n %{name}+disable_default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_from_into_bits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_from_into_bits-devel %{_description} This package contains library source intended for building other packages which use the "disable_from_into_bits" feature of the "%{crate}" crate. %files -n %{name}+disable_from_into_bits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_from_traits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_from_traits-devel %{_description} This package contains library source intended for building other packages which use the "disable_from_traits" feature of the "%{crate}" crate. %files -n %{name}+disable_from_traits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_invert_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_invert_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_invert_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_invert_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_new-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_new-devel %{_description} This package contains library source intended for building other packages which use the "disable_new" feature of the "%{crate}" crate. %files -n %{name}+disable_new-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_set_get_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_set_get_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_set_get_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_set_get_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_toggle_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_toggle_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_toggle_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_toggle_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable_write_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable_write_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "disable_write_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+disable_write_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+enable_array_heap_no_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+enable_array_heap_no_std-devel %{_description} This package contains library source intended for building other packages which use the "enable_array_heap_no_std" feature of the "%{crate}" crate. %files -n %{name}+enable_array_heap_no_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+enable_array_heap_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+enable_array_heap_std-devel %{_description} This package contains library source intended for building other packages which use the "enable_array_heap_std" feature of the "%{crate}" crate. %files -n %{name}+enable_array_heap_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+from_endian_big-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+from_endian_big-devel %{_description} This package contains library source intended for building other packages which use the "from_endian_big" feature of the "%{crate}" crate. %files -n %{name}+from_endian_big-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+from_endian_little-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+from_endian_little-devel %{_description} This package contains library source intended for building other packages which use the "from_endian_little" feature of the "%{crate}" crate. %files -n %{name}+from_endian_little-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_builder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_builder-devel %{_description} This package contains library source intended for building other packages which use the "generate_builder" feature of the "%{crate}" crate. %files -n %{name}+generate_builder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_clear_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_clear_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_clear_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_clear_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_debug-devel %{_description} This package contains library source intended for building other packages which use the "generate_debug" feature of the "%{crate}" crate. %files -n %{name}+generate_debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_default-devel %{_description} This package contains library source intended for building other packages which use the "generate_default" feature of the "%{crate}" crate. %files -n %{name}+generate_default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_from_into_bits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_from_into_bits-devel %{_description} This package contains library source intended for building other packages which use the "generate_from_into_bits" feature of the "%{crate}" crate. %files -n %{name}+generate_from_into_bits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_from_traits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_from_traits-devel %{_description} This package contains library source intended for building other packages which use the "generate_from_traits" feature of the "%{crate}" crate. %files -n %{name}+generate_from_traits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_invert_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_invert_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_invert_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_invert_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_new-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_new-devel %{_description} This package contains library source intended for building other packages which use the "generate_new" feature of the "%{crate}" crate. %files -n %{name}+generate_new-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_set_get_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_set_get_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_set_get_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_set_get_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_toggle_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_toggle_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_toggle_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_toggle_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_write_bit_ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_write_bit_ops-devel %{_description} This package contains library source intended for building other packages which use the "generate_write_bit_ops" feature of the "%{crate}" crate. %files -n %{name}+generate_write_bit_ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+into_endian_big-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+into_endian_big-devel %{_description} This package contains library source intended for building other packages which use the "into_endian_big" feature of the "%{crate}" crate. %files -n %{name}+into_endian_big-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+into_endian_little-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+into_endian_little-devel %{_description} This package contains library source intended for building other packages which use the "into_endian_little" feature of the "%{crate}" crate. %files -n %{name}+into_endian_little-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+order_lsb-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+order_lsb-devel %{_description} This package contains library source intended for building other packages which use the "order_lsb" feature of the "%{crate}" crate. %files -n %{name}+order_lsb-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+order_msb-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+order_msb-devel %{_description} This package contains library source intended for building other packages which use the "order_msb" feature of the "%{crate}" crate. %files -n %{name}+order_msb-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+write_endian_big-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+write_endian_big-devel %{_description} This package contains library source intended for building other packages which use the "write_endian_big" feature of the "%{crate}" crate. %files -n %{name}+write_endian_big-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+write_endian_little-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+write_endian_little-devel %{_description} This package contains library source intended for building other packages which use the "write_endian_little" feature of the "%{crate}" crate. %files -n %{name}+write_endian_little-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * skip trybuild compile-fail tests: they compare rustc error output, which # changes between compiler versions %{cargo_test -- -- %{shrink: --skip compile_error_cases --skip compile_panics_cases }} %endif %changelog %autochangelog