# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate protobuf-parse Name: rust-protobuf-parse Version: 3.7.2 Release: %autorelease Summary: Parse .proto files License: MIT URL: https://crates.io/crates/protobuf-parse Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 26 %if %{with check} BuildRequires: /usr/bin/protoc %endif %global _description %{expand: Parse `.proto` files. Files are parsed into a `protobuf::descriptor::FileDescriptorSet` object using either: * pure rust parser (no dependencies) * `protoc` binary (more reliable and compatible with Google's implementation).} %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.txt %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} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * skip some tests that check for consistency with C++ protobuf %{cargo_test -- -- --exact %{shrink: --skip test_against_protobuf_protos::test --skip test_bundled_google_proto_files_consistent --skip test_bundled_rustproto_proto_consistent }} %endif %changelog %autochangelog