Subject: jchaloup pushed to golang-github-jtolds-gls
(epel7). "First package for Fedora
(..more)"



From 3854fab5ec0fab22da5ac9284a5c2a8e513c2fbf Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <[email protected]>
Date: Wed, 17 Jun 2015 15:02:25 +0200
Subject: First package for Fedora - resolves: #1214809

---
.gitignore | 1 +
golang-github-jtolds-gls.spec | 73 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 75 insertions(+)
create mode 100644 golang-github-jtolds-gls.spec

diff --git a/.gitignore b/.gitignore
index e69de29..bbe9117 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gls-9a4a02d.tar.gz
diff --git a/golang-github-jtolds-gls.spec b/golang-github-jtolds-gls.spec
new file mode 100644
index 0000000..a4c62dd
--- /dev/null
+++ b/golang-github-jtolds-gls.spec
@@ -0,0 +1,73 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project jtolds
+%global repo gls
+# https://github.com/jtolds/gls
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 9a4a02dbe491bef4bab3c24fd9f3087d6c4c6690
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Goroutine local storage
+License: MIT
+URL: https://%{import_path}
+Source0:
https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+Summary: %{summary}
+
+BuildRequires: golang >= 1.2.1-3
+Provides: golang(%{import_path}) = %{version}-%{release}
+%description devel
+%{summary}
+
+This package contains library source intended for
+building other packages which use %{project}/%{repo}.
+
+%prep
+
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+
+# copy directories
+for file in ./* ; do
+ if [ -d $file ]; then
+ cp -rpav $file %{buildroot}%{gopath}/src/%{import_path}/
+ fi
+done
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+
+%files devel
+%if 0%{?fedora}
+%license LICENSE
+%doc README.md
+%else
+%doc README.md LICENSE
+%endif
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Thu Apr 23 2015 jchaloup <[email protected]> - 0-0.1.git9a4a02d
+- First package for Fedora
+ resolves: #1214809
diff --git a/sources b/sources
index e69de29..4f4782c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+534d2a84ffb1433f4b0ddeb1f4859bde gls-9a4a02d.tar.gz
--
cgit v0.12



http://pkgs.fedoraproject.org/cgit/golang-github-jtolds-gls.git/commit/?h=epel7&id=3854fab5ec0fab22da5ac9284a5c2a8e513c2fbf
_______________________________________________
scm-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]



Programming list archiving by: Enterprise Git Hosting