Init package
This commit is contained in:
parent
a4730dd058
commit
4c98915e3e
BIN
protoc-gen-validate-0.6.7.tar.gz
Normal file
BIN
protoc-gen-validate-0.6.7.tar.gz
Normal file
Binary file not shown.
48
protoc-gen-validate.spec
Normal file
48
protoc-gen-validate.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%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 <xinghe2@h-partners.com> - 0.6.7-1
|
||||||
|
- Init Package
|
||||||
4
protoc-gen-validate.yaml
Normal file
4
protoc-gen-validate.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: bufbuild/protoc-gen-validate
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user