commit 11f1ae8b4510a567942e5a44ffc9ee1bae0e11ac
Author: Jan Chaloupka <[email protected]>
Date: Fri Jan 16 12:09:51 2015 +0100
First package for Fedora
- resolves: #1181105
.gitignore | 1 +
golang-github-miekg-dns.spec | 62 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0f60bb4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dns-a07be6b.tar.gz
diff --git a/golang-github-miekg-dns.spec b/golang-github-miekg-dns.spec
new file mode 100644
index 0000000..23893b5
--- /dev/null
+++ b/golang-github-miekg-dns.spec
@@ -0,0 +1,62 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project miekg
+%global repo dns
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit a07be6b2c1ad26f98231049c52ce8bcabc0af2ee
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: DNS library in Go
+License: BSD
+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
+Requires: golang >= 1.2.1-3
+Summary: %{summary}
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/idn) = %{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 idn %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/idn
+
+%files devel
+%doc README.md LICENSE COPYRIGHT CONTRIBUTORS AUTHORS
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Mon Jan 12 2015 jchaloup <[email protected]> - 0-0.1.gita07be6b
+- First package for Fedora
+ resolves: #1181105
+
diff --git a/sources b/sources
index e69de29..c1ae05e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+24c8fdb59ff95518f396ddd0b2e1eb9d dns-a07be6b.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang