%global debug_package %{nil} %define src_install_dir /usr/src/%{name} Name: protoc-gen-validate Version: 0.6.7 Release: 1 Summary: Protoc plugin to generate polyglot message validators License: Apache-2.0 URL: https://github.com/bufbuild/protoc-gen-validate Source0: https://github.com/bufbuild/protoc-gen-validate/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: fdupes %description protoc-gen-validate is a protoc plugin to generate polyglot message validators. While protocol buffers effectively guarantee the types of structured data, they cannot enforce semantic rules for values. This plugin adds support to protoc-generated code to validate such constraints. %package source Summary: Source code of protoc-gen-validate BuildArch: noarch %description source protoc-gen-validate is a protoc plugin to generate polyglot message validators. While protocol buffers effectively guarantee the types of structured data, they cannot enforce semantic rules for values. This plugin adds support to protoc-generated code to validate such constraints. This package contains source code for protoc-gen-validate. %prep %autosetup -p1 -n %{name}-%{version} %build %install mkdir -p %{buildroot}%{src_install_dir} tar -xf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} %fdupes %{buildroot}%{_prefix} %files source %license LICENSE %doc README.md %{src_install_dir} %changelog * Mon Apr 07 2025 xinghe - 0.6.7-1 - Init Package