[golang-googlecode-goauth2/f21] Initial commit

Jan Chaloupka jchaloup at fedoraproject.org
Tue Sep 23 09:44:28 UTC 2014


commit 5f8618425f93645a1b0656ebcf801c7ffc14ffbe
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Tue Sep 23 11:44:07 2014 +0200

    Initial commit

 .gitignore                     |    1 +
 golang-googlecode-goauth2.spec |   80 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4a722c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/afe77d958c701557ec5dc56f6936fcc194d15520.tar.gz
diff --git a/golang-googlecode-goauth2.spec b/golang-googlecode-goauth2.spec
new file mode 100644
index 0000000..c1834c2
--- /dev/null
+++ b/golang-googlecode-goauth2.spec
@@ -0,0 +1,80 @@
+%global provider        google
+%global provider_sub    code
+%global provider_tld    com
+%global repo            goauth2
+%global import_path     %{provider_sub}.%{provider}.%{provider_tld}/p/%{repo}
+%global rev             afe77d958c701557ec5dc56f6936fcc194d15520
+%global shortrev        %(r=%{rev}; echo ${r:0:12})
+
+Name:           golang-%{provider}%{provider_sub}-%{repo}
+Version:        0
+Release:        0.2.hg%{shortrev}%{?dist}
+Summary:        OAuth 2.0 for Go clients
+License:        BSD
+URL:            http://%{import_path}
+Source0:        https://%{repo}.%{provider}%{provider_sub}.%{provider_tld}/archive/%{rev}.tar.gz
+BuildArch:      noarch
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        OAuth 2.0 for Go clients
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/oauth) = %{version}-%{release}
+Provides:       golang(%{import_path}/appengine) = %{version}-%{release}
+Provides:       golang(%{import_path}/appengine/serviceaccount) = %{version}-%{release}
+Provides:       golang(%{import_path}/compute) = %{version}-%{release}
+Provides:       golang(%{import_path}/compute/serviceaccount) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use the OAuth 2.0 for Go clients library.
+
+
+%prep
+%setup -n %{repo}-%{shortrev} -q
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+for d in oauth appengine compute; do
+   cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+done
+
+%check
+GOPATH=%{gopath}:%{buildroot}/%{gopath} go test %{import_path}/oauth
+
+%files devel
+%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/oauth
+%dir %{gopath}/src/%{import_path}/oauth/example
+%dir %{gopath}/src/%{import_path}/oauth/jwt
+%dir %{gopath}/src/%{import_path}/oauth/jwt/example
+%dir %{gopath}/src/%{import_path}/appengine
+%dir %{gopath}/src/%{import_path}/appengine/serviceaccount
+%dir %{gopath}/src/%{import_path}/compute
+%dir %{gopath}/src/%{import_path}/compute/serviceaccount
+%{gopath}/src/%{import_path}/oauth/*.go
+# oauth/example/oauthreq.go is executable in the tarball, undo it
+%attr(644,-,-) %{gopath}/src/%{import_path}/oauth/example/*.go
+%{gopath}/src/%{import_path}/oauth/jwt/*.go
+%{gopath}/src/%{import_path}/oauth/jwt/example/*.go
+%{gopath}/src/%{import_path}/oauth/jwt/example/*.json
+%{gopath}/src/%{import_path}/oauth/jwt/example/*.pem
+%{gopath}/src/%{import_path}/appengine/serviceaccount/*.go
+%{gopath}/src/%{import_path}/compute/serviceaccount/*.go
+
+%changelog
+* Mon Sep 15 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.2.hgafe77d958c70
+- update to afe77d958c70
+- preserve timestamps of copied files
+
+* Mon Aug 04 2014 Adam Miller <maxamillion at fedoraproject.org> - 0-0.1.hg6a3615e294b5
+- First package for Fedora.
diff --git a/sources b/sources
index e69de29..6f14f98 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0946637172953f5dd7ab42ca4fdac3e1  afe77d958c701557ec5dc56f6936fcc194d15520.tar.gz


More information about the scm-commits mailing list