Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 60a67aa3a0d623d0570d7427dffeedf1 > files > 1

golang-github-lyft-protoc-gen-star-0.5.2-2.mga9.src.rpm

# Generated by go2rpm 1
%bcond_with check

# https://github.com/lyft/protoc-gen-star
%global goipath         github.com/lyft/protoc-gen-star
Version:                0.5.2

%gometa

%global common_description %{expand:
Protoc plugin library for efficient proto-based code generation.}

%global golicenses      LICENSE
%global godocs          CODE_OF_CONDUCT.md README.md protoc-gen-\\\
                        debug/README.md

Name:           %{goname}
Release:        %mkrel 2
Summary:        Protoc plugin library for efficient proto-based code generation
Group:          Development/Other

# 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/protoc-gen-go/descriptor)
BuildRequires:  golang(github.com/golang/protobuf/protoc-gen-go/plugin)
BuildRequires:  golang(github.com/spf13/afero)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/golang/protobuf/descriptor)
BuildRequires:  golang(github.com/golang/protobuf/ptypes/any)
BuildRequires:  golang(github.com/stretchr/testify/assert)
BuildRequires:  golang(github.com/stretchr/testify/require)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in protoc-gen-debug; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license LICENSE
%doc CODE_OF_CONDUCT.md README.md protoc-gen-debug/README.md
%{_bindir}/*

%gopkgfiles



%changelog
* Tue Mar 15 2022 umeabot <umeabot> 0.5.2-2.mga9
+ Revision: 1794130
- Mageia 9 Mass Rebuild

* Sun Nov 07 2021 guillomovitch <guillomovitch> 0.5.2-1.mga9
+ Revision: 1754413
- new version 0.5.2

* Sun Aug 30 2020 pterjan <pterjan> 0.5.1-1.mga8
+ Revision: 1620061
- imported package golang-github-lyft-protoc-gen-star


* Sun Aug 30 16:43:43 UTC 2020 Pascal Terjan <pterjan@mageia.org> - 0.5.1-1
- Initial package