diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..74d17f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cel-spec-0.5.0.tar.gz diff --git a/golang-github-google-cel-spec.spec b/golang-github-google-cel-spec.spec new file mode 100644 index 0000000..f6a992c --- /dev/null +++ b/golang-github-google-cel-spec.spec @@ -0,0 +1,71 @@ +# Generated by go2rpm 1.3 +%bcond_without check + +# https://github.com/google/cel-spec +%global goipath github.com/google/cel-spec +Version: 0.5.0 + +%gometa + +%global common_description %{expand: +The Common Expression Language (CEL) implements common semantics for expression +evaluation, enabling different applications to more easily interoperate.} + +%global golicenses LICENSE +%global godocs doc CODE_OF_CONDUCT.md CONTRIBUTING.md GOVERNANCE.md\\\ + README.md MAINTAINERS.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Common Expression Language, specification and binary representation + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/golang/protobuf/proto) +BuildRequires: golang(github.com/golang/protobuf/ptypes/any) +BuildRequires: golang(github.com/golang/protobuf/ptypes/duration) +BuildRequires: golang(github.com/golang/protobuf/ptypes/struct) +BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp) +BuildRequires: golang(github.com/golang/protobuf/ptypes/wrappers) +BuildRequires: golang(google.golang.org/genproto/googleapis/api/expr/conformance/v1alpha1) +BuildRequires: golang(google.golang.org/genproto/googleapis/api/expr/v1alpha1) +BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/status) +BuildRequires: golang(google.golang.org/grpc) +BuildRequires: golang(google.golang.org/grpc/codes) +BuildRequires: golang(google.golang.org/grpc/reflection) +BuildRequires: golang(google.golang.org/grpc/status) +BuildRequires: golang(google.golang.org/protobuf/encoding/prototext) +BuildRequires: golang(google.golang.org/protobuf/proto) +BuildRequires: golang(google.golang.org/protobuf/reflect/protoreflect) +BuildRequires: golang(google.golang.org/protobuf/runtime/protoimpl) + +%if %{with check} +# Tests +BuildRequires: golang(google.golang.org/protobuf/types/known/anypb) +BuildRequires: golang(google.golang.org/protobuf/types/known/structpb) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck -d tests/envcheck -d tests/simple +%endif + +%gopkgfiles + +%changelog +* Wed Dec 23 09:29:37 CET 2020 Robert-André Mauchin - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..958f2d7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cel-spec-0.5.0.tar.gz) = 2088b8f80722342eb020bf4ba49e797293c971ea085027fce5bd6a3a6f478f8bb1b783add80351d12a6b05d745fabdd8f89ab4f256011b7d67518d2f068b0447