[golang-github-kr-pty/f20] Initial import (#1001396).

Lokesh Mandvekar lsm5 at fedoraproject.org
Thu Sep 19 14:41:24 UTC 2013


commit dca0298de565f685daaa54b3c35fa3084fa59f3a
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date:   Thu Sep 19 14:41:02 2013 +0000

    Initial import (#1001396).
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>

 .gitignore                |    1 +
 golang-github-kr-pty.spec |  100 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6d64b07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pty-27435c6.tar.gz
diff --git a/golang-github-kr-pty.spec b/golang-github-kr-pty.spec
new file mode 100644
index 0000000..0fcf27e
--- /dev/null
+++ b/golang-github-kr-pty.spec
@@ -0,0 +1,100 @@
+%global debug_package   %{nil}
+%global pkgname         github-kr-pty
+%global import_path     github.com/kr/pty
+%global goroot          %(go env GOROOT)
+%global pkgarch         %(go env GOOS)_%(go env GOARCH)
+%global commit          27435c699baee43a12e025d8cfde2ee3cbe0ceb6
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{pkgname}
+Version:        0
+Release:        0.9.git%{shortcommit}%{?dist}
+Summary:        PTY interface for Go
+License:        MIT
+URL:            http://godoc.org/%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/pty-%{shortcommit}.tar.gz
+
+%description
+Pty is a Go package for using UNIX pseudo-terminals.
+
+%package devel
+BuildRequires:  golang
+Requires:       golang
+Summary:        PTY interface for Go
+Provides:       golang("%{import_path}") = %{version}-%{release}
+
+%description devel
+%{summary}
+
+%prep
+%setup -c
+mkdir -p src/$(dirname %{import_path})
+cp -R pty-%{commit} src/$(dirname %{import_path})/pty
+
+%build
+unset GOROOT GOPATH GOOS GOARCH
+if [ ! -d %{goroot}/src/pkg/%{import_path} ]; then
+    GOPATH=$(readlink -f .) go install %{import_path}
+else
+    GOPATH=$(readlink -f .)
+    pushd $GOPATH/src
+    for dir in $(find %{import_path} -type d) ; do
+        mkdir -p $GOPATH/pkg/%{pkgarch}/$(dirname $dir)
+        go build -o $GOPATH/pkg/%{pkgarch}/${dir}.a %{import_path}
+    done
+    popd
+fi
+
+%install
+mkdir -p %{buildroot}/%{goroot}/src/pkg/%{import_path}
+cp -a src/%{import_path}/*.go %{buildroot}%{goroot}/src/pkg/%{import_path}
+mkdir -p %{buildroot}%{goroot}/pkg/
+cp -a pkg/* %{buildroot}%{goroot}/pkg/
+
+%files devel
+%defattr(-,root,root,-)
+%doc src/%{import_path}/License src/%{import_path}/README.md
+%dir %attr(755,root,root) %{goroot}/src/pkg/github.com/
+%dir %attr(755,root,root) %{goroot}/src/pkg/github.com/kr/
+%dir %attr(755,root,root) %{goroot}/src/pkg/%{import_path}
+%{goroot}/src/pkg/%{import_path}/doc.go
+%{goroot}/src/pkg/%{import_path}/pty_darwin.go
+%{goroot}/src/pkg/%{import_path}/pty_linux.go
+%{goroot}/src/pkg/%{import_path}/run.go
+%{goroot}/src/pkg/%{import_path}/util.go
+%dir %attr(755,root,root) %{goroot}/pkg/%{pkgarch}/github.com/
+%dir %attr(755,root,root) %{goroot}/pkg/%{pkgarch}/github.com/kr/
+%{goroot}/pkg/%{pkgarch}/%{import_path}.a
+
+%changelog
+* Tue Sep 17 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.9.git27435c6
+- version format changed
+- docdir unversioned
+
+* Mon Sep 16 2013 Lokesh Mandvekar <lsm5 at redhat.com> git27435c6-8
+- No debuginfo generated, was empty to begin with
+- package owns all directories in import_path
+
+* Mon Sep 16 2013 Lokesh Mandvekar <lsm5 at redhat.com> git27435c6-7
+- only devel package generated
+- Provides moved to devel package
+- docdir modified
+
+* Wed Sep 11 2013 Lokesh Mandvekar <lsm5 at redhat.com> git27435c6-6
+- rm from install section removed
+
+* Tue Sep 10 2013 Lokesh Mandvekar <lsm5 at redhat.com> git27435c6-5
+- cleanup in prep and build as per guidelines
+
+* Tue Sep 10 2013 Lokesh Mandvekar <lsm5 at redhat.com> git27435c6-4
+- Build under all circumstances
+- Go pkg archives handled (thanks to Vincent Batts (vbatts at redhat.com)
+
+* Thu Aug 29 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-3
+- Devel package generated
+
+* Wed Aug 28 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-2
+- Fixed permissions
+
+* Mon Aug 26 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-1
+- Initial fedora package
diff --git a/sources b/sources
index e69de29..0323df0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d10511531044fbbcfeb0e998dce2cec2  pty-27435c6.tar.gz


More information about the scm-commits mailing list