[golang-bitbucket-kardianos-osext] Initial import (#1018501).
Lokesh Mandvekar
lsm5 at fedoraproject.org
Tue Oct 15 19:14:09 UTC 2013
commit 883eae33b624183d4678163db39bfe4d25e69373
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date: Tue Oct 15 14:13:56 2013 -0500
Initial import (#1018501).
Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>
.gitignore | 1 +
golang-bitbucket-kardianos-osext.spec | 66 +++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ea4f43e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/default.tar.bz2
diff --git a/golang-bitbucket-kardianos-osext.spec b/golang-bitbucket-kardianos-osext.spec
new file mode 100644
index 0000000..957df0a
--- /dev/null
+++ b/golang-bitbucket-kardianos-osext.spec
@@ -0,0 +1,66 @@
+%global debug_package %{nil}
+%global import_path bitbucket.org/kardianos/osext
+%global gopath %{_datadir}/gocode
+%global rev 364fb577de68fb646c4cb39cc0e09c887ee16376
+%global shortrev %(r=%{rev}; echo ${r:0:12})
+
+Name: golang-bitbucket-kardianos-osext
+Version: 0
+Release: 0.3.hg%{shortrev}%{?dist}
+Summary: Extensions to the standard Go OS package
+License: zlib
+URL: http://%{import_path}
+Source0: https://%{import_path}/get/default.tar.bz2
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+This package provides extensions to the standard Go OS package,
+including Executable, which returns an absolute path which can
+be used to re-invoke the current program, and ExecutableFolder,
+which returns the directory containing the same.
+
+%package devel
+Requires: golang
+Summary: Supplementary Go networking libraries
+Provides: golang("%{import_path}") = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use these functions.
+
+%prep
+%setup -n kardianos-osext-%{shortrev}
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}/
+
+%files devel
+%doc LICENSE
+%dir %attr(755,root,root) %{gopath}
+%dir %attr(755,root,root) %{gopath}/src
+%dir %attr(755,root,root) %{gopath}/src/bitbucket.org
+%dir %attr(755,root,root) %{gopath}/src/bitbucket.org/kardianos
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Mon Oct 14 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.3.hg364fb577de68
+- devel description update
+
+* Mon Oct 14 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.2.hg364fb577de68
+- defattr removed
+- description and summary updated
+
+* Sat Oct 12 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.1.hg364fb577de68
+- Initial fedora package
diff --git a/sources b/sources
index e69de29..45ab0e6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1cc86b40fbdefcf5f193de3d3d038d88 default.tar.bz2
More information about the scm-commits
mailing list