commit f346aa0b15bde365ddb63b5a224d4a5ce37ffec5 Author: Jan Chaloupka jchaloup@redhat.com Date: Fri Jan 30 13:21:01 2015 +0100
Provide back compatibility provides - resolves: #1187495 #1187491 #1187494
golang-googlecode-goprotobuf.spec | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) --- diff --git a/golang-googlecode-goprotobuf.spec b/golang-googlecode-goprotobuf.spec index 13a7f49..1828ab0 100644 --- a/golang-googlecode-goprotobuf.spec +++ b/golang-googlecode-goprotobuf.spec @@ -7,9 +7,11 @@ %global commit 7f07925444bb51fa4cf9dfe6f7661876f8852275 %global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global simport_path code.google.com/p/goprotobuf + Name: golang-googlecode-goprotobuf Version: 0 -Release: 0.10.git%{shortcommit}%{?dist} +Release: 0.11.git%{shortcommit}%{?dist} Summary: Go support for Google protocol buffers License: BSD URL: https://%%7Bimport_path%7D @@ -36,9 +38,13 @@ Provides: golang(%{import_path}/protoc-gen-go) = %{version}-%{release} Provides: golang(%{import_path}/protoc-gen-go/descriptor) = %{version}-%{release} Provides: golang(%{import_path}/protoc-gen-go/generator) = %{version}-%{release} Provides: golang(%{import_path}/protoc-gen-go/plugin) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/testdata) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/testdata/my_test) = %{version}-%{release} -Provides: golang(%{import_path}/proto/testdata) = %{version}-%{release} +# back compatibility +Provides: golang(%{simport_path}) = %{version}-%{release} +Provides: golang(%{simport_path}/proto) = %{version}-%{release} +Provides: golang(%{simport_path}/protoc-gen-go) = %{version}-%{release} +Provides: golang(%{simport_path}/protoc-gen-go/descriptor) = %{version}-%{release} +Provides: golang(%{simport_path}/protoc-gen-go/generator) = %{version}-%{release} +Provides: golang(%{simport_path}/protoc-gen-go/plugin) = %{version}-%{release}
%description devel This package provides a library that implements run-time support for @@ -68,6 +74,16 @@ install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ cp -rpav protoc-gen-go %{buildroot}/%{gopath}/src/%{import_path}/ cp -rpav proto %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{simport_path}/ +cp -rpav protoc-gen-go %{buildroot}/%{gopath}/src/%{simport_path}/ +cp -rpav proto %{buildroot}/%{gopath}/src/%{simport_path}/ + +cd %{buildroot}/%{gopath}/src/%{simport_path}/ +# github.com/golang/protobuf -> code.google.com/p/goprotobuf +sed -i 's/"github.com/golang/protobuf/"code.google.com/p/goprotobuf/g' \ + $(find . -name '*.go') + + %check #GOPATH={buildroot}/{gopath}:{gopath} go test {import_path}/protoc-gen-go/testdata GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/protoc-gen-go/generator @@ -82,8 +98,13 @@ GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/protoc-gen-go/gen %doc AUTHORS CONTRIBUTORS LICENSE README %dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} %{gopath}/src/%{import_path} +%{gopath}/src/%{simport_path}
%changelog +* Fri Jan 30 2015 jchaloup jchaloup@redhat.com - 0-0.11.git7f07925 +- Provide back compatibility provides + resolves: #1187495 #1187491 #1187494 + * Mon Jan 26 2015 jchaloup jchaloup@redhat.com - 0-0.10.git7f07925 - Bump to 7f07925444bb51fa4cf9dfe6f7661876f8852275 related: #1018057