[golang-github-syndtr-gocapability/el6] initial upload
by Vincent Batts
commit beebd080b9b2b6c215f82dc1d81a5840eace8c24
Author: Vincent Batts <vbatts(a)redhat.com>
Date: Thu Nov 21 09:26:27 2013 -0500
initial upload
.gitignore | 1 +
golang-github-syndtr-gocapability.spec | 66 ++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9b4e733 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gocapability-3454319.tar.gz
diff --git a/golang-github-syndtr-gocapability.spec b/golang-github-syndtr-gocapability.spec
new file mode 100644
index 0000000..e8b2772
--- /dev/null
+++ b/golang-github-syndtr-gocapability.spec
@@ -0,0 +1,66 @@
+%global debug_package %{nil}
+%global import_path github.com/syndtr/gocapability
+%global gopath %{_datadir}/gocode
+%global commit 3454319be2ebde8481aa0804a801f4d07de705b5
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-github-syndtr-gocapability
+Version: 0
+Release: 0.3.git%{shortcommit}%{?dist}
+Summary: POSIX capability library for the Go programming language
+License: BSD
+URL: %{import_path}
+Source0: https://github.com/syndtr/gocapability/archive/%{commit}/gocapability-%{s...
+
+%description
+%{summary}
+
+%package devel
+BuildRequires: golang
+Summary: Source for POSIX capability for the Go programming language
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+Provides: golang(%{import_path}/capability) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages.
+
+
+%prep
+%setup -q -n gocapability-%{commit}
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -av capability %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/capability
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(-,root,root,-)
+%doc LICENSE
+%dir %attr(755,root,root) %{gopath}/src/github.com
+%dir %attr(755,root,root) %{gopath}/src/github.com/syndtr
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/capability
+%{gopath}/src/%{import_path}/capability/*.go
+
+%changelog
+* Wed Nov 20 2013 Vincent Batts <vbatts(a)redhat.com> 0-0.3.git3454319
+- typo
+
+* Wed Nov 20 2013 Vincent Batts <vbatts(a)redhat.com> 0-0.2.git3454319
+- clean up per code review (bz1032750)
+
+* Wed Nov 20 2013 Vincent Batts <vbatts(a)redhat.com> 0-0.1.git3454319
+- initial build
diff --git a/sources b/sources
index e69de29..e377f46 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b46f7c27721cef61c26e04f3eab5bf67 gocapability-3454319.tar.gz
10 years, 5 months
[Bug 1029980] New: the run command does not have recent options
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1029980
Bug ID: 1029980
Summary: the run command does not have recent options
Product: Fedora
Version: 19
Component: docker-io
Assignee: lsm5(a)redhat.com
Reporter: rdavaillaud(a)hbs-research.com
QA Contact: extras-qa(a)fedoraproject.org
CC: golang(a)lists.fedoraproject.org, lsm5(a)redhat.com,
mattdm(a)redhat.com, mgoldman(a)redhat.com,
vbatts(a)redhat.com
Using docker-io.x86_64 0:0.7-0.13.dm.fc19 rpm from Marek Goldmann's repository.
The docker run command doesn't provide some recent (0.6.5) options like name or
link
sudo docker help run
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
-a=map[]: Attach to stdin, stdout or stderr.
-c=0: CPU shares (relative weight)
-cidfile="": Write the container ID to the file
-d=false: Detached mode: Run container in the background, print new container
id
-dns=[]: Set custom dns servers
-e=[]: Set environment variables
-entrypoint="": Overwrite the default entrypoint of the image
-h="": Container host name
-i=false: Keep stdin open even if not attached
-lxc-conf=[]: Add custom lxc options -lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
-m=0: Memory limit (in bytes)
-n=true: Enable networking for this container
-p=[]: Expose a container's port to the host (use 'docker port' to see the
actual mapping)
-privileged=false: Give extended privileges to this container
-rm=false: Automatically remove the container when it exits (incompatible
with -d)
-t=false: Allocate a pseudo-tty
-u="": Username or UID
-v=map[]: Bind mount a volume (e.g. from the host: -v /host:/container, from
docker: -v /container)
-volumes-from=[]: Mount volumes from the specified container
-w="": Working directory inside the container
--
You are receiving this mail because:
You are on the CC list for the bug.
10 years, 5 months
[golang] seperate the godoc into its own package again, but let it be installed by the golang dep on of /usr/
by Vincent Batts
commit d8b5074c45b7e0eafad2305f4432d32e5eba013a
Author: Vincent Batts <vbatts(a)redhat.com>
Date: Wed Nov 20 17:32:45 2013 -0500
seperate the godoc into its own package again, but let it be installed
by the golang dep on of /usr/bin/godoc
This will allow for the transition to using the godoc from go.tools
golang.spec | 34 ++++++++++++++++++++++++----------
1 files changed, 24 insertions(+), 10 deletions(-)
---
diff --git a/golang.spec b/golang.spec
index aa8332f..924439f 100644
--- a/golang.spec
+++ b/golang.spec
@@ -25,7 +25,7 @@
Name: golang
Version: 1.1.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: The Go Programming Language
License: BSD
@@ -37,15 +37,18 @@ BuildRequires: emacs xemacs xemacs-packages-extra
# We strip the meta dependency, but go does require glibc.
# This is an odd issue, still looking for a better fix.
-Requires: glibc
+Requires: glibc
+
+# `go doc ...` calls out to godoc in $PATH
+# while godoc is in go1.1, it is moved to go.tools in go1.2
+Requires: /usr/bin/godoc
Patch0: golang-1.1-verbose-build.patch
-Patch10: golang-1.1.2-long-links.patch
-Patch11: golang-1.1.2-ustar-split.patch
+Patch10: golang-1.1.2-long-links.patch
+Patch11: golang-1.1.2-ustar-split.patch
-# Having godoc and the documentation separate was broken
-Obsoletes: %{name}-godoc < 1.1-4
+# Having documentation separate was broken
Obsoletes: %{name}-docs < 1.1-4
# RPM can't handle symlink -> dir with subpackages, so merge back
@@ -60,6 +63,11 @@ Source101: golang-prelink.conf
%{summary}.
+%package godoc
+Summary: the Go Programming Language documentation tool
+%description godoc
+%{summary}.
+
# Restore this package if RPM gets fixed (bug #975909)
#%package data
#Summary: Required architecture-independent files for Go
@@ -183,10 +191,10 @@ rm -rfv $RPM_BUILD_ROOT%{_libdir}/%{name}/lib/time
# remove the doc Makefile
rm -rfv $RPM_BUILD_ROOT%{_libdir}/%{name}/doc/Makefile
-# add symlinks for binaries
+# put binaries to bindir
pushd $RPM_BUILD_ROOT%{_bindir}
for z in $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/*
- do ln -s %{_libdir}/%{name}/bin/$(basename $z)
+ do mv $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/$(basename $z) .
done
popd
@@ -227,15 +235,17 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
+%files godoc
+%{_bindir}/godoc
+
%files
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
# go files
%{_libdir}/%{name}
-# bin symlinks
+# binary executables
%{_bindir}/go
-%{_bindir}/godoc
%{_bindir}/gofmt
# autocomplete
@@ -267,6 +277,10 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
%changelog
+* Wed Nov 20 2013 Vincent Batts <vbatts(a)redhat.com> - 1.1.2-6
+- don't symlink /usr/bin out to ../lib..., move the file
+- seperate out godoc, to accomodate the go.tools godoc
+
* Fri Sep 20 2013 Adam Miller <maxamillion(a)fedoraproject.org> - 1.1.2-5
- Pull upstream patches for BZ#1010271
- Add glibc requirement that got dropped because of meta dep fix
10 years, 5 months