%{?python_enable_dependency_generator} # http://github.com/gogo/protobuf %global goipath github.com/gogo/protobuf %global commit 100ba4e885062801d56799d78530b73b178a78f3 %define debug_package %{nil} %gometa -i %global nname golang-github-gogo-protobuf %global g_goipath code.google.com/p/gogoprotobuf %global devel_main golang-github-gogo-protobuf-devel Name: golang-googlecode-gogoprotobuf Version: 0.4 Release: 0.8%{?dist} Summary: A fork of goprotobuf with several extra features License: BSD URL: %{gourl} Source0: %{gosource} %description %{summary} %package -n %{nname}-devel Summary: %{summary} BuildArch: noarch %package devel Summary: %{summary} BuildArch: noarch %description devel %{summary} This package contains library source intended for building other packages which use %{project}/%{repo}. %description -n %{nname}-devel %{summary} This package contains library source intended for building other packages which use %{project}/%{repo}. %prep %gosetup -q %build %gobuildroot %gobuild -o _bin/protoc-gen-gogo %{goipath}/protoc-gen-gogo %install #### binary #### install -d %{buildroot}%{_bindir} install -m 755 _bin/protoc-gen-gogo %{buildroot}/%{_bindir}/protoc-gen-gogo # source codes for building projects files="$(find . -iname *.golden) $(find . -iname *.proto) $(find . -iname testdata -type d)" %goinstall ${files} %goinstall -i %{g_goipath} -o g_devel.file-list ${files} pushd %{buildroot}/%{gopath}/src/%{g_goipath}/ # github.com/gogo/protobuf -> code.google.com/p/gogoprotobuf sed -i 's/"github\.com\/gogo\/protobuf/"code\.google\.com\/p\/gogoprotobuf/g' \ $(find . -name '*.go') popd %check pushd $PWD/_bin ln -s protoc-gen-gogo protoc popd export PATH=${PATH}:$PWD/_bin %gochecks -d test/dashfilename -d test/embedconflict -r .*/unsafeunmarshaler -r .*/unsafeboth -r .*/unsafemarshaler -d test/packed #define license tag if not already defined %{!?_licensedir:%global license %doc} %files %license LICENSE %doc CONTRIBUTORS README %{_bindir}/protoc-gen-gogo %files -n %{nname}-devel -f devel.file-list %license LICENSE %doc CONTRIBUTORS README %files devel -f g_devel.file-list %license LICENSE %doc CONTRIBUTORS README %changelog * Tue Jul 31 2018 Florian Weimer - 0.4-0.8 - Rebuild with fixed binutils * Fri Jul 13 2018 Fedora Release Engineering - Forge-specific packaging variables - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 07 2018 Jan Chaloupka - 0.4-0.6.git100ba4e - Bump to 100ba4e885062801d56799d78530b73b178a78f3 * Wed Mar 07 2018 Jan Chaloupka - 0.4-0.5.gitf6b4bb7 - Update to spec 3.0 * Wed Feb 07 2018 Fedora Release Engineering - 0.4-0.4.gitf6b4bb7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.4-0.3.gitf6b4bb7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.4-0.2.gitf6b4bb7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 09 2017 Jan Chaloupka - 0.4-0.1.gitf6b4bb7 - Bump to upstream f6b4bb7b2dde1736b809b3da996ed72f278e9be9 resolves: #1428951 * Fri Feb 10 2017 Fedora Release Engineering - 0.2-0.6.gitd7788ac - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 20 2017 Jan Chaloupka - 0.2-0.5.gitd7788ac - Bump to upstream d7788ac7ca647999a3775cb756e449ab177dd138 related: #1246215 * Sat Dec 17 2016 Jan Chaloupka - 0.2-0.4.gite18d7aa - Polish the spec file related: #1246215 * Wed Aug 03 2016 jchaloup - 0.2-0.3.gite18d7aa - Bump to upstream e18d7aa8f8c624c915db340349aad4c49b10d173 related: #1246215 * Thu Jul 21 2016 Fedora Release Engineering - 0.2-0.2.gitc3995ae - https://fedoraproject.org/wiki/Changes/golang1.7 * Sun May 15 2016 jchaloup - 0.2-0.1.gitc3995ae - Bump to upstream c3995ae437bb78d1189f4f147dfe5f87ad3596e4 related: #1246215 * Mon Feb 22 2016 Fedora Release Engineering - 0.1-0.4.gite8904f5 - https://fedoraproject.org/wiki/Changes/golang1.6 * Thu Feb 18 2016 jchaloup - 0.1-0.3.gite8904f5 - Bump to upstream e8904f58e872a473a5b91bc9bf3377d223555263 related: #1246215 * Wed Feb 03 2016 Fedora Release Engineering - 0.1-0.2.git8edb24c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Sep 30 2015 jchaloup - 0.1-0.1.git8edb24c - Bump to upstream 8edb24c179ed858a38f18920d9005c2dde05ec17 related: #1246215 * Sat Aug 22 2015 jchaloup - 0-0.13.git5ba1012 - Update spec file to spec-2.0 related: #1246215 * Thu Jul 23 2015 jchaloup - 0-0.12.git5ba1012 - Bump to upstream 5ba1012ef3868db1b9ff374280a558c1bfff39c3 - Disable tests resolves: #1246215 * Wed Jun 17 2015 Fedora Release Engineering - 0-0.11.gitbc946d0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Feb 13 2015 jchaloup - 0-0.10.gitbc946d0 - Bump to upstream bc946d07d1016848dfd2507f90f0859c9471681e import path has changed -> add devel package to keep back compatibility with code.google.com/p/gogoprotobuf import paths * Fri Sep 19 2014 jchaloup - 0-0.9.gitd228c1a - initial commit (package review #1120882) * Fri Sep 19 2014 Lokesh Mandvekar - 0-0.8.gitd228c1a - preserve timestamps - don't own golang dirs - don't redifine gopath - ExcluseBuild for goarches * Thu Jul 17 2014 Colin Walters - 0-0.7.gitd228c1a - Initial package