[golang-github-beorn7-perks/f20] First package for Fedora - resolves: #1196432
by Jan Chaloupka
commit 84cda3a74859ca698c156e8183cc23e86e68fecc
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Feb 27 09:57:54 2015 +0100
First package for Fedora
- resolves: #1196432
.gitignore | 1 +
golang-github-beorn7-perks.spec | 66 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b3c4394 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/perks-b965b61.tar.gz
diff --git a/golang-github-beorn7-perks.spec b/golang-github-beorn7-perks.spec
new file mode 100644
index 0000000..c77e1c1
--- /dev/null
+++ b/golang-github-beorn7-perks.spec
@@ -0,0 +1,66 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project beorn7
+%global repo perks
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit b965b613227fddccbfffe13eae360ed3fa822f8d
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Effective Computation of Things
+License: MIT
+URL: https://%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+Patch0: 0001-move-license-to-LICENSE.patch
+%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}/histogram) = %{version}-%{release}
+Provides: golang(%{import_path}/quantile) = %{version}-%{release}
+Provides: golang(%{import_path}/topk) = %{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}
+%patch0 -p1
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav topk %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav quantile %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav histogram %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/topk
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/quantile
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/histogram
+
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Thu Feb 26 2015 jchaloup <jchaloup(a)redhat.com> - 0-0.1.gitb965b61
+- First package for Fedora
+ resolves: #1196432
diff --git a/sources b/sources
index e69de29..389d5f5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+02eee771385fad91b4fca36dd8c7bfeb perks-b965b61.tar.gz
9 years, 2 months
[docker-io] NVR: docker-io-1.5.0-13.gitf5850e8
by Lokesh Mandvekar
commit da2579e22488d38f4bf1e087adda3c429651445d
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Thu Feb 26 22:12:53 2015 -0600
NVR: docker-io-1.5.0-13.gitf5850e8
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
docker-io.spec | 7 +++++--
sources | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index 8808f0d..11816e0 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -11,14 +11,14 @@
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global commit 7e2328b76e041bb7a1acb3e20dbea0c379f7f024
+%global commit f5850e8e30b9420d26bd12136d8bbb6669d1e2bb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global tar_import_path code.google.com/p/go/src/pkg/archive/tar
Name: %{repo}-io
Version: 1.5.0
-Release: 12.git%{shortcommit}%{?dist}
+Release: 13.git%{shortcommit}%{?dist}
Summary: Automates deployment of containerized applications
License: ASL 2.0
URL: http://www.docker.com
@@ -362,6 +362,9 @@ exit 0
%{_datadir}/zsh/site-functions/_docker
%changelog
+* Fri Feb 27 2015 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.5.0-13.gitf5850e8
+- built commit#f5850e8
+
* Thu Feb 26 2015 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.5.0-12.git7e2328b
- built commit#7e2328b
diff --git a/sources b/sources
index 8737548..8572ef6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5462a34be256113d9d20e17094a44030 docker-7e2328b.tar.gz
+ff23fde787a232911f6b09f88e59b19b docker-f5850e8.tar.gz
9 years, 2 months
[docker-io] NVR: docker-io-1.5.0-12.git7e2328b
by Lokesh Mandvekar
commit a5229fd9f7c2975a43a20dd011f1ef895a481771
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Thu Feb 26 02:41:54 2015 -0600
NVR: docker-io-1.5.0-12.git7e2328b
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
docker-io.spec | 7 +++++--
sources | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index f477efb..8808f0d 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -11,14 +11,14 @@
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global commit 09b785f3bed812736fe7526535088ca73c1fa10d
+%global commit 7e2328b76e041bb7a1acb3e20dbea0c379f7f024
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global tar_import_path code.google.com/p/go/src/pkg/archive/tar
Name: %{repo}-io
Version: 1.5.0
-Release: 11.git%{shortcommit}%{?dist}
+Release: 12.git%{shortcommit}%{?dist}
Summary: Automates deployment of containerized applications
License: ASL 2.0
URL: http://www.docker.com
@@ -362,6 +362,9 @@ exit 0
%{_datadir}/zsh/site-functions/_docker
%changelog
+* Thu Feb 26 2015 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.5.0-12.git7e2328b
+- built commit#7e2328b
+
* Wed Feb 25 2015 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.5.0-11.git09b785f
- remove add-X-flag.patch
- require selinux-policy >= 3.13.1-114 for fedora >= 23 (RE: rhbz#1195804)
diff --git a/sources b/sources
index 03903fd..8737548 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-64c62ea46cc1ab76479013357d1cf640 docker-09b785f.tar.gz
+5462a34be256113d9d20e17094a44030 docker-7e2328b.tar.gz
9 years, 2 months
[docker-io] Remove hardcoded install paths for devel
by Lokesh Mandvekar
commit 3269313853dbf3eaf32ebf3e6c36d20c1ce2db0c
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Thu Feb 26 01:06:50 2015 -0600
Remove hardcoded install paths for devel
- add version-release to devel package
Provides, also Provide: tar_import_path
- use wildcard to install all source files in -devel
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
docker-io.spec | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index 55f9ddc..f477efb 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -71,9 +71,10 @@ servers, OpenStack clusters, public instances, or combinations of the above.
%package devel
BuildRequires: golang >= 1.2.1-3
Requires: golang >= 1.2.1-3
-Provides: %{repo}-devel
-Provides: %{name}-pkg-devel
-Provides: %{repo}-pkg-devel
+Provides: %{repo}-devel = %{version}-%{release}
+Provides: %{name}-pkg-devel = %{version}-%{release}
+Provides: %{repo}-pkg-devel = %{version}-%{release}
+Provides: golang(%{import_path}/vendor/src/%{tar_import_path}) = %{version}-%{release}
Summary: A golang registry for global request variables (source libraries)
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/builder) = %{version}-%{release}
@@ -284,18 +285,18 @@ install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/docker-storage
install -d -p %{buildroot}%{gopath}/src/%{import_path}
rm -rf pkg/symlink/testdata
-for dir in api builder builtins contrib/docker-device-tool \
- contrib/host-integration daemon docker dockerinit \
- engine events graph \
- image links nat opts pkg registry runconfig \
- trust utils volumes
-do
- cp -rpav $dir %{buildroot}%{gopath}/src/%{import_path}/
-done
-
+# install tar_import_path to devel package
install -d -p %{buildroot}%{gopath}/src/%{import_path}/vendor/src/%{tar_import_path}
cp -rpav vendor/src/%{tar_import_path}/* %{buildroot}%{gopath}/src/%{import_path}/vendor/src/%{tar_import_path}
+# remove dirs that won't be installed in devel
+rm -rf vendor docs _build bundles contrib/init hack project
+
+# install sources to devel
+for dir in */ ; do
+ cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
+done
+
# install docker config directory
install -dp %{buildroot}%{_sysconfdir}/%{repo}
9 years, 2 months