From 3d8fdc4b204e75b1c925d2d5001a5b610e440e90 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 22 2019 16:35:28 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ca4b04 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/thrift-0.12.0.tar.gz diff --git a/golang-github-apache-thrift.spec b/golang-github-apache-thrift.spec new file mode 100644 index 0000000..6c6e071 --- /dev/null +++ b/golang-github-apache-thrift.spec @@ -0,0 +1,77 @@ +# Generated by go2rpm +# Tests are broken +%bcond_with check + +# https://github.com/apache/thrift +%global goipath github.com/apache/thrift +Version: 0.12.0 +%global tag 0.12.0 + +%gometa + +%global goaltipaths git.apache.org/thrift.git + +%global common_description %{expand: +Thrift is a lightweight, language-independent software stack with an associated +code generation mechanism for point-to-point RPC. Thrift provides clean +abstractions for data transport, data serialization, and application level +processing. The code generation system takes a simple definition language as +input and generates code across programming languages that uses the abstracted +stack to build interoperable RPC clients and servers.} + +%global golicenses LICENSE NOTICE +%global godocs lib/go/README.md + +Name: %{goname} +Release: 3%{?dist} +Summary: Thrift Go Software Library + +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/golang/mock/gomock) + +%description +%{common_description} + +%gopkg + +%prep +%goprep +# Remove files unrelated to the Go Library +find ./* -maxdepth 0 -type d -not -name "lib" -and -not -name "_build" -exec rm -rf "{}" \; +find ./lib -mindepth 1 -maxdepth 1 -type d -not -name "go" -exec rm -rf "{}" \; +rm -rf lib/go/test + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Thu Apr 18 21:04:58 CEST 2019 Robert-André Mauchin - 0.12.0-3 +- Update to new Go packaging + +* Sun Mar 17 2019 Robert-André Mauchin - 0.12.0-2 +- Add github.com/apache/thrift as alternate import path + +* Sat Mar 09 2019 Robert-André Mauchin - 0.12.0-1 +- Release 0.12.0 + +* Thu Jan 31 2019 Fedora Release Engineering - 0.11.0-0.4.git129f332 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.11.0-0.3.git129f332 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Robert-André Mauchin - 0.11.0-0.2.20180628git129f332 +- Bump to commit 129f332d72facda5d06f87e2b4e5e08bea0b6b44 + +* Thu Mar 22 2018 Robert-André Mauchin - 0.11.0-0.1.20180417git50bfc56 +- First package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..a5895c6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (thrift-0.12.0.tar.gz) = b4154bca6ba9562d2d0aa7835aabfccbe1f065cea8b254539659bf357cd0d2f1044037e78c4030fa625853b544c1e36ac6b3a02983bb2b355ce9f6eebcecf8f2