commit a9523465face5329c1ec8815e8e9d46bb37deeb9
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Jan 5 16:34:58 2015 +0100
First package for Fedora
- resolves: #1162091
.gitignore | 1 +
golang-github-rakyll-statik.spec | 63 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b94f020 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/statik-f19d7c2.tar.gz
diff --git a/golang-github-rakyll-statik.spec b/golang-github-rakyll-statik.spec
new file mode 100644
index 0000000..6837665
--- /dev/null
+++ b/golang-github-rakyll-statik.spec
@@ -0,0 +1,63 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project rakyll
+%global repo statik
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit f19d7c21cd036701d42ec176b13e0946cc9591b0
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Embed static files into a Go executable
+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
+statik allows you to embed a directory of static files
+into your Go binary to be later served from an http.FileSystem.
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: %{summary}
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/example) = %{version}-%{release}
+Provides: golang(%{import_path}/fs) = %{version}-%{release}
+
+%description devel
+statik allows you to embed a directory of static files
+into your Go binary to be later served from an http.FileSystem.
+
+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 example %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav fs %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Mon Nov 10 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.1.gitf19d7c2
+- First package for Fedora
+ resolves: #1162091
diff --git a/sources b/sources
index e69de29..1619503 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+74bdb0325a3c22a752f797ad05b80373 statik-f19d7c2.tar.gz
Show replies by date