commit d7ff9085f37575de2ba4955581cf96b9aa9f6470
Author: Jan Chaloupka <[email protected]>
Date: Tue Jan 20 15:06:32 2015 +0100
First package for Fedora
- resolves: #1177486
.gitignore | 2 +
golang-github-glacjay-goini.spec | 75 ++++++++++++++++++++++++++++++++++++++
sources | 2 +
3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f18adeb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/goini-5261baf.tar.gz
+/goini-907cca0.tar.gz
diff --git a/golang-github-glacjay-goini.spec b/golang-github-glacjay-goini.spec
new file mode 100644
index 0000000..697d076
--- /dev/null
+++ b/golang-github-glacjay-goini.spec
@@ -0,0 +1,75 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project glacjay
+%global repo goini
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 5261baf26f41eeffae5fd27be784302e389b7699
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+# github.com/rakyll/goini has no license.
+# But it is forked from github.com/glacjay/goini and unchanged.
+# Lets provide these source codes as well.
+%global rcommit 907cca0f578a5316fb864ec6992dc3d9730ec58c
+%global rscommit %(c=%{rcommit}; echo ${c:0:7})
+%global rimport_path %{provider}.%{provider_tld}/rakyll/goini
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: INI file parser in go
+License: MIT
+URL: https://%{import_path}
+Source0:
https://%{import_path}/archive/%{rcommit}/%{repo}-%{rscommit}.tar.gz
+Source1:
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
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: %{summary}
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{rimport_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}-%{rcommit}
+%setup -q -n %{repo}-%{commit} -T -b 1
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav example.ini empty.ini %{buildroot}/%{gopath}/src/%{import_path}/
+pushd ../%{repo}-%{rcommit}
+install -d -p %{buildroot}/%{gopath}/src/%{rimport_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{rimport_path}/
+
+%check
+#--- FAIL: TestString (0.00 seconds)
+# ini_test.go:167: Dict cannot be stringified as expected.
+
+%files devel
+%doc LICENSE.txt
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{provider}.%{provider_tld}/rakyll
+%{gopath}/src/%{rimport_path}
+
+
+%changelog
+* Tue Jan 13 2015 jchaloup <[email protected]> - 0-0.1.git5261baf
+- First package for Fedora
+ resolves: #1177486
diff --git a/sources b/sources
index e69de29..32429ec 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+a108b8b262a377985db2e807f55758d2 goini-5261baf.tar.gz
+a2c74d6f7942e16b48d3b68d512917df goini-907cca0.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang