# Generated by rust2rpm 9 # * https://github.com/stepancheg/rust-protobuf/issues/389 %bcond_with check %global debug_package %{nil} %global crate protobuf Name: rust-%{crate} Version: 2.6.2 Release: 1%{?dist} Summary: Rust implementation of Google protocol buffers # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/protobuf Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Rust implementation of Google protocol buffers.} %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.txt %doc README.md %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %package -n %{name}+bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes-devel %{_description} This package contains library source intended for building other packages which use "bytes" feature of "%{crate}" crate. %files -n %{name}+bytes-devel %ghost %{cargo_registry}/%{crate}-%{version}/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 "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+serde_derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_derive-devel %{_description} This package contains library source intended for building other packages which use "serde_derive" feature of "%{crate}" crate. %files -n %{name}+serde_derive-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+with-bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-bytes-devel %{_description} This package contains library source intended for building other packages which use "with-bytes" feature of "%{crate}" crate. %files -n %{name}+with-bytes-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+with-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-serde-devel %{_description} This package contains library source intended for building other packages which use "with-serde" feature of "%{crate}" crate. %files -n %{name}+with-serde-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Jun 09 23:07:00 CEST 2019 Igor Gnatenko - 2.6.2-1 - Initial package