[golang-github-gorilla-context/f19] spec file does not install pkg archives
Lokesh Mandvekar
lsm5 at fedoraproject.org
Sun Sep 22 06:22:43 UTC 2013
commit 0367cf4aa8e38f5087792ce0510c401d348624ae
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date: Sun Sep 22 01:22:29 2013 -0500
spec file does not install pkg archives
Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>
golang-github-gorilla-context.spec | 72 ------------------------------------
1 files changed, 0 insertions(+), 72 deletions(-)
---
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
index 9f12310..3d6f3db 100644
--- a/golang-github-gorilla-context.spec
+++ b/golang-github-gorilla-context.spec
@@ -1,16 +1,3 @@
-<<<<<<< HEAD
-%global debug_package %{nil}
-%global pkgname github-gorilla-context
-%global import_path github.com/gorilla/context
-%global goroot %(go env GOROOT)
-%global pkgarch %(go env GOOS)_%(go env GOARCH)
-%global commit 708054d61e5a2918b9f4e9700000ee611dcf03f5
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{pkgname}
-Version: 0
-Release: 0.14.git%{shortcommit}%{?dist}
-=======
%global import_path github.com/gorilla/context
%global gopath %{_datadir}/gocode
%global commit 708054d61e5a2918b9f4e9700000ee611dcf03f5
@@ -19,15 +6,11 @@ Release: 0.14.git%{shortcommit}%{?dist}
Name: golang-github-gorilla-context
Version: 0
Release: 0.15.git%{shortcommit}%{?dist}
->>>>>>> master
Summary: A golang registry for global request variables
License: BSD
URL: http://www.gorillatoolkit.org/pkg/context
Source0: https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-<<<<<<< HEAD
-=======
BuildArch: noarch
->>>>>>> master
%description
Package gorilla/context stores values shared during a request lifetime.
@@ -35,67 +18,13 @@ Package gorilla/context stores values shared during a request lifetime.
For example, a router can set variables extracted from the URL and later
application handlers can access those values, or it can be used to store
sessions values to be saved at the end of a request. There are several
-<<<<<<< HEAD
-others common uses.
-
-%package devel
-BuildRequires: golang
-=======
other common uses.
%package devel
->>>>>>> master
Requires: golang
Summary: A golang registry for global request variables
Provides: golang("%{import_path}") = %{version}-%{release}
-<<<<<<< HEAD
-%description devel
-%{summary}
-
-%prep
-%setup -c
-mkdir -p src/%{import_path}
-cp -R context-%{commit}/* src/%{import_path}
-
-%build
-unset GOROOT GOPATH GOOS GOARCH
-if [ ! -d %{goroot}/src/pkg/%{import_path} ]; then
- GOPATH=$(readlink -f .) go install %{import_path}
-else
- GOPATH=$(readlink -f .)
- pushd $GOPATH/src
- for dir in $(find %{import_path} -type d) ; do
- mkdir -p $GOPATH/pkg/%{pkgarch}/$(dirname $dir)
- go build -o $GOPATH/pkg/%{pkgarch}/${dir}.a %{import_path}
- done
- popd
-fi
-
-%install
-mkdir -p %{buildroot}/%{goroot}/src/pkg/%{import_path}
-cp -a src/%{import_path}/*.go %{buildroot}/%{goroot}/src/pkg/%{import_path}
-mkdir -p %{buildroot}/%{goroot}/pkg/
-cp -a pkg/* %{buildroot}/%{goroot}/pkg/
-
-%files devel
-%defattr(-,root,root,-)
-%doc src/%{import_path}/LICENSE src/%{import_path}/README.md
-%dir %attr(755,root,root) %{goroot}/src/pkg/github.com/
-%dir %attr(755,root,root) %{goroot}/src/pkg/github.com/gorilla/
-%dir %attr(755,root,root) %{goroot}/src/pkg/%{import_path}
-%{goroot}/src/pkg/%{import_path}/context.go
-%{goroot}/src/pkg/%{import_path}/context_test.go
-%{goroot}/src/pkg/%{import_path}/doc.go
-%dir %attr(755,root,root) %{goroot}/pkg/%{pkgarch}/github.com/
-%dir %attr(755,root,root) %{goroot}/pkg/%{pkgarch}/github.com/gorilla/
-%{goroot}/pkg/%{pkgarch}/%{import_path}.a
-
-%changelog
-* Tue Sep 17 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.14.git708054d
-- docdir unversioned
-
-=======
%description devel
Package gorilla/context stores values shared during a request lifetime.
@@ -138,7 +67,6 @@ cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
- docdir unversioned
->>>>>>> master
* Tue Sep 17 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.13.git708054d
- Version format changed
More information about the scm-commits
mailing list