[golang-github-BurntSushi-toml/f20] Initial commit
Jan Chaloupka
jchaloup at fedoraproject.org
Mon Sep 22 09:43:12 UTC 2014
commit 426d57af5827bbcd327f81573f26501a6a7ecaf7
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Mon Sep 22 11:43:04 2014 +0200
Initial commit
.gitignore | 1 +
golang-github-BurntSushi-toml.spec | 76 ++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dffd3d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/golang-github-BurntSushi-toml-bd2bdf7f18f849530ef7a1c29a4290217cab32a1.tar.gz
diff --git a/golang-github-BurntSushi-toml.spec b/golang-github-BurntSushi-toml.spec
new file mode 100644
index 0000000..a1c2647
--- /dev/null
+++ b/golang-github-BurntSushi-toml.spec
@@ -0,0 +1,76 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project BurntSushi
+%global repo toml
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit bd2bdf7f18f849530ef7a1c29a4290217cab32a1
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.2.git%{shortcommit}%{?dist}
+Summary: TOML parser and encoder for Go with reflection
+License: BSD
+URL: https://%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/%{name}-%{commit}.tar.gz
+ExclusiveArch: %{ix86} x86_64 %{arm}
+Provides: tomlv = %{version}-%{release}
+
+%description
+%{summary}
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: TOML parser and encoder for Go with reflection
+Provides: golang(%{import_path}) = %{version}-%{release}
+BuildArch: noarch
+
+%description devel
+%{summary}
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+%build
+mkdir -p _build/src/github.com/BurntSushi
+ln -sf $(pwd) _build/src/github.com/BurntSushi/toml
+export GOPATH=$(pwd)/_build:%{gopath}
+cd cmd/tomlv
+go build .
+
+%install
+install -d %{buildroot}/%{_bindir}
+install -p -m 755 ./cmd/tomlv/tomlv %{buildroot}%{_bindir}/tomlv
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/tomlv
+
+%files devel
+%doc COPYING README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Mon Sep 22 2014 jchaloup <jchaloup at redhat.com> - 0-0.2.gitbd2bdf7
+- do not own golang directories
+- defattr and attr not needed
+
+* Mon Sep 22 2014 jchaloup <jchaloup at redhat.com> - 0-0.1.gitbd2bdf7
+- accomodated changes from Vincent Batts
+- gopath is in the rpm macros, and set exclusive arch too, to prevent s390 builds
+- move the buildarch noarch to the devel, since it is source only
+- preserve timestamps of source copied and as an added perk
+- the tomlv command provided in this project is useful for validating *.toml files
+- go test
+
+* Thu Jul 17 2014 Colin Walters <walters at verbum.org>
+- Initial package
diff --git a/sources b/sources
index e69de29..f25891b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6bea095c17e4cfac9069b2cb13246f49 golang-github-BurntSushi-toml-bd2bdf7f18f849530ef7a1c29a4290217cab32a1.tar.gz
More information about the scm-commits
mailing list