commit a93cce8b36c6d37ed718b58ef3bca67ba848069e
Author: Jan Chaloupka <[email protected]>
Date:   Thu Oct 16 22:34:41 2014 +0200

    Initial commit
    - resolves: #1153721

 .gitignore                                |    1 +
 golang-github-skratchdot-open-golang.spec |   55 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2783f0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/open-golang-ba570a1.tar.gz
diff --git a/golang-github-skratchdot-open-golang.spec 
b/golang-github-skratchdot-open-golang.spec
new file mode 100644
index 0000000..5f1ed36
--- /dev/null
+++ b/golang-github-skratchdot-open-golang.spec
@@ -0,0 +1,55 @@
+%global provider       github
+%global provider_tld   com
+%global project                skratchdot
+%global repo           open-golang
+%global commit         ba570a111973b539baf23c918213059543b5bb6e
+
+%global import_path    %{provider}.%{provider_tld}/%{project}/%{repo}
+%global shortcommit    %(c=%{commit}; echo ${c:0:7})
+%global debug_package  %{nil}
+
+Name:          golang-%{provider}-%{project}-%{repo}
+Version:       0
+Release:       0.1.git%{shortcommit}%{?dist}
+Summary:       Open a file, directory, or URI using the OS's default 
application
+License:       MIT
+URL:           http://%{import_path}
+Source0:       
https://%{provider}.%{provider_tld}/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:     noarch
+
+%description
+%{summary}.
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires:      golang >= 1.2.1-3
+Summary:       Open a file, directory, or URI using the OS's default 
application
+Provides:      golang(%{import_path}) = %{version}-%{release}
+Provides:      golang(%{import_path}/open) = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/open
+cp -pav open/*.go %{buildroot}/%{gopath}/src/%{import_path}/open
+
+%check
+# test wants firefox => unnecesary dependency
+
+%files devel
+%doc LICENSE-MIT README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/open
+%{gopath}/src/%{import_path}/open/*.go
+
+%changelog
+* Tue Oct 14 2014 Eric Paris <[email protected] - 0-0.1.gitba570a1
+- Bump to upstream ba570a111973b539baf23c918213059543b5bb6e
diff --git a/sources b/sources
index e69de29..4899740 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+021122ad02624d7f59234c100342028f  open-golang-ba570a1.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to