[golang-github-rakyll-globalconf/f20] First package for Fedora - resolves: #1177487

Jan Chaloupka jchaloup at fedoraproject.org
Tue Jan 20 15:43:16 UTC 2015


commit 2c28bd866cfc3a1a51f4bbac34d1cc115dffba12
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Tue Jan 20 16:27:22 2015 +0100

    First package for Fedora
    - resolves: #1177487

 .gitignore                           |    1 +
 golang-github-rakyll-globalconf.spec |   61 ++++++++++++++++++++++++++++++++++
 sources                              |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1c7f7b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/globalconf-415abc3.tar.gz
diff --git a/golang-github-rakyll-globalconf.spec b/golang-github-rakyll-globalconf.spec
new file mode 100644
index 0000000..e019e86
--- /dev/null
+++ b/golang-github-rakyll-globalconf.spec
@@ -0,0 +1,61 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         rakyll
+%global repo            globalconf
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          415abc325023f1a00cd2d9fa512e0e71745791a2
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Effortlessly persist and read flag values from an ini config file
+License:        ASL 2.0
+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
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(github.com/rakyll/goini)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(github.com/rakyll/goini)
+Summary:        %{summary}
+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}/
+cp -rpav testdata %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Sat Dec 27 2014 jchaloup <jchaloup at redhat.com> - 0-0.1.git415abc3
+- First package for Fedora
+  resolves: #1177487
diff --git a/sources b/sources
index e69de29..6c3531d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+32aff790330eea726a1daf76689870fd  globalconf-415abc3.tar.gz


More information about the scm-commits mailing list