## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate tonic-types Name: rust-tonic-types Version: 0.14.5 Release: %autorelease Summary: Collection of useful protobuf types that can be used with tonic License: MIT URL: https://crates.io/crates/tonic-types Source: %{crates_source} # * Move codegen to inside the crate # * See https://github.com/hyperium/tonic/blob/master/codegen/src/main.rs Source10: build.rs # Manually created patch for downstream crate metadata changes # * Add dependencies to run build.rs Patch: tonic-types-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: protobuf-devel %global _description %{expand: A collection of useful protobuf types that can be used with `tonic`.} %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Remove pre-generated files rm -rf src/generated cp -p '%{SOURCE10}' . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * generated::google_rpc: Interpreted as a doc test, but it is not. %cargo_test -- -- --skip generated::google_rpc:: %endif %changelog ## START: Generated by rpmautospec * Fri May 29 2026 Miroslav Suchý - 0.14.5-2 - rebuild for https://fedoraproject.org/wiki/Changes/Protobuf_5.x/6.x * Mon Mar 02 2026 Cristian Le - 0.14.5-1 - Update to 0.14.5 (rhbz#2354966) * Sat Jan 17 2026 Fedora Release Engineering - 0.12.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 0.12.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Mar 24 2025 Cristian Le - 0.12.3-3 - Reuse the generated code after build * Sun Jan 19 2025 Fedora Release Engineering - 0.12.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Oct 08 2024 Cristian Le - 0.12.3-1 - Update to version 0.12.3 (RHBZ#2314981) * Mon Sep 23 2024 Cristian Le - 0.12.2-1 - import rhbz#2296542 ## END: Generated by rpmautospec