[golang-googlecode-net] Extend import paths for golang.org/x/ - related: #1009967
by Jan Chaloupka
commit 8e7b9a81703217c7f9fe0163a7084fc0235fec72
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Nov 24 10:15:15 2014 +0100
Extend import paths for golang.org/x/
- related: #1009967
golang-googlecode-net.spec | 67 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 58 insertions(+), 9 deletions(-)
---
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec
index ffdb5c0..a06d420 100644
--- a/golang-googlecode-net.spec
+++ b/golang-googlecode-net.spec
@@ -8,9 +8,15 @@
%global rev 90e232e2462dedc03bf3c93358da62d54d55dfb6
%global shortrev %(r=%{rev}; echo ${r:0:12})
+%global x_provider golang
+%global x_provider_tld org
+%global x_repo net
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{repo}
+
Name: golang-%{provider}%{provider_prefix}-%{repo}
Version: 0
-Release: 0.16.hg%{shortrev}%{?dist}
+Release: 0.17.hg%{shortrev}%{?dist}
Summary: Supplementary Go networking libraries
License: BSD
URL: http://%{import_path}
@@ -31,7 +37,7 @@ BuildRequires: golang(code.google.com/p/go.text/encoding/traditionalchinese)
BuildRequires: golang(code.google.com/p/go.text/encoding/unicode)
BuildRequires: golang(code.google.com/p/go.text/transform)
Requires: golang >= 1.2.1-3
-Summary: Supplementary Go networking libraries
+Summary: Supplementary Go networking libraries for code.google.com/p/ imports
Provides: golang(%{import_path}/context) = %{version}-%{release}
Provides: golang(%{import_path}/dict) = %{version}-%{release}
Provides: golang(%{import_path}/html) = %{version}-%{release}
@@ -47,11 +53,43 @@ Provides: golang(%{import_path}/publicsuffix) = %{version}-%{release}
Provides: golang(%{import_path}/spdy) = %{version}-%{release}
Provides: golang(%{import_path}/websocket) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/encoding)
+BuildRequires: golang(golang.org/x/text/encoding/charmap)
+BuildRequires: golang(golang.org/x/text/encoding/japanese)
+BuildRequires: golang(golang.org/x/text/encoding/korean)
+BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese)
+BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese)
+BuildRequires: golang(golang.org/x/text/encoding/unicode)
+BuildRequires: golang(golang.org/x/text/transform)
+Requires: golang >= 1.2.1-3
+Summary: Supplementary Go networking libraries for golang.org/x/ imports
+Provides: golang(%{x_import_path}/context) = %{version}-%{release}
+Provides: golang(%{x_import_path}/dict) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/atom) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/charset) = %{version}-%{release}
+Provides: golang(%{x_import_path}/idna) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/iana) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv4) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv6) = %{version}-%{release}
+Provides: golang(%{x_import_path}/proxy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
+Provides: golang(%{x_import_path}/spdy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/websocket) = %{version}-%{release}
+
%description devel
%{summary}
This package contains library source intended for building other packages
-which use the supplementary Go networking libraries.
+which use the supplementary Go networking libraries with code.google.com/p/ imports.
+
+%description -n %{x_name}-devel
+
+This package contains library source intended for building other packages
+which use the supplementary Go text libraries with golang.org/x/ imports.
%prep
@@ -61,30 +99,41 @@ which use the supplementary Go networking libraries.
%install
install -dp %{buildroot}/%{gopath}/src/%{import_path}
+install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
for dir in */ ; do
cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
done
%check
for dir in $(find . -mindepth 0 -maxdepth 3 -type d); do
if [ $(find $dir -maxdepth 1 -name *_test.go | wc -l) != '0' ]; then
+ if [ "$dir" == "./context" ]; then
+ continue
+ fi
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/$dir
fi
done
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
%files devel
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/*
-%dir %{gopath}/src/%{import_path}/*/*
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*.s
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Mon Nov 24 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.17.hg90e232e2462d
+- Extend import paths for golang.org/x/
+- context test failing on master
+ related: #1009967
+
* Mon Sep 29 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.16.hg90e232e2462d
- Resolves: rhbz#1147193 - update to latest upstream revision
90e232e2462dedc03bf3c93358da62d54d55dfb6
9 years, 6 months
[golang-googlecode-net/f21] Extend import paths for golang.org/x/ - related: #1009967
by Jan Chaloupka
commit e9081e32bef19f160a63aeab3e9ae2ab3f02f07d
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Nov 24 10:15:15 2014 +0100
Extend import paths for golang.org/x/
- related: #1009967
golang-googlecode-net.spec | 63 +++++++++++++++++++++++++++++++++++++------
1 files changed, 54 insertions(+), 9 deletions(-)
---
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec
index ffdb5c0..287ae10 100644
--- a/golang-googlecode-net.spec
+++ b/golang-googlecode-net.spec
@@ -8,9 +8,15 @@
%global rev 90e232e2462dedc03bf3c93358da62d54d55dfb6
%global shortrev %(r=%{rev}; echo ${r:0:12})
+%global x_provider golang
+%global x_provider_tld org
+%global x_repo net
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{repo}
+
Name: golang-%{provider}%{provider_prefix}-%{repo}
Version: 0
-Release: 0.16.hg%{shortrev}%{?dist}
+Release: 0.17.hg%{shortrev}%{?dist}
Summary: Supplementary Go networking libraries
License: BSD
URL: http://%{import_path}
@@ -31,7 +37,7 @@ BuildRequires: golang(code.google.com/p/go.text/encoding/traditionalchinese)
BuildRequires: golang(code.google.com/p/go.text/encoding/unicode)
BuildRequires: golang(code.google.com/p/go.text/transform)
Requires: golang >= 1.2.1-3
-Summary: Supplementary Go networking libraries
+Summary: Supplementary Go networking libraries for code.google.com/p/ imports
Provides: golang(%{import_path}/context) = %{version}-%{release}
Provides: golang(%{import_path}/dict) = %{version}-%{release}
Provides: golang(%{import_path}/html) = %{version}-%{release}
@@ -47,11 +53,43 @@ Provides: golang(%{import_path}/publicsuffix) = %{version}-%{release}
Provides: golang(%{import_path}/spdy) = %{version}-%{release}
Provides: golang(%{import_path}/websocket) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/encoding)
+BuildRequires: golang(golang.org/x/text/encoding/charmap)
+BuildRequires: golang(golang.org/x/text/encoding/japanese)
+BuildRequires: golang(golang.org/x/text/encoding/korean)
+BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese)
+BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese)
+BuildRequires: golang(golang.org/x/text/encoding/unicode)
+BuildRequires: golang(golang.org/x/text/transform)
+Requires: golang >= 1.2.1-3
+Summary: Supplementary Go networking libraries for golang.org/x/ imports
+Provides: golang(%{x_import_path}/context) = %{version}-%{release}
+Provides: golang(%{x_import_path}/dict) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/atom) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/charset) = %{version}-%{release}
+Provides: golang(%{x_import_path}/idna) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/iana) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv4) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv6) = %{version}-%{release}
+Provides: golang(%{x_import_path}/proxy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
+Provides: golang(%{x_import_path}/spdy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/websocket) = %{version}-%{release}
+
%description devel
%{summary}
This package contains library source intended for building other packages
-which use the supplementary Go networking libraries.
+which use the supplementary Go networking libraries with code.google.com/p/ imports.
+
+%description -n %{x_name}-devel
+
+This package contains library source intended for building other packages
+which use the supplementary Go text libraries with golang.org/x/ imports.
%prep
@@ -61,8 +99,10 @@ which use the supplementary Go networking libraries.
%install
install -dp %{buildroot}/%{gopath}/src/%{import_path}
+install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
for dir in */ ; do
cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
done
%check
@@ -74,17 +114,22 @@ done
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
%files devel
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/*
-%dir %{gopath}/src/%{import_path}/*/*
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*.s
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Mon Nov 24 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.17.hg90e232e2462d
+- Extend import paths for golang.org/x/
+ related: #1009967
+
* Mon Sep 29 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.16.hg90e232e2462d
- Resolves: rhbz#1147193 - update to latest upstream revision
90e232e2462dedc03bf3c93358da62d54d55dfb6
9 years, 6 months
[golang-googlecode-net/f20] Extend import paths for golang.org/x/ - related: #1009967
by Jan Chaloupka
commit e126878e8adcd37ca9152cd1ed67702702dcdaf6
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Nov 24 10:15:15 2014 +0100
Extend import paths for golang.org/x/
- related: #1009967
golang-googlecode-net.spec | 63 +++++++++++++++++++++++++++++++++++++------
1 files changed, 54 insertions(+), 9 deletions(-)
---
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec
index ffdb5c0..287ae10 100644
--- a/golang-googlecode-net.spec
+++ b/golang-googlecode-net.spec
@@ -8,9 +8,15 @@
%global rev 90e232e2462dedc03bf3c93358da62d54d55dfb6
%global shortrev %(r=%{rev}; echo ${r:0:12})
+%global x_provider golang
+%global x_provider_tld org
+%global x_repo net
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{repo}
+
Name: golang-%{provider}%{provider_prefix}-%{repo}
Version: 0
-Release: 0.16.hg%{shortrev}%{?dist}
+Release: 0.17.hg%{shortrev}%{?dist}
Summary: Supplementary Go networking libraries
License: BSD
URL: http://%{import_path}
@@ -31,7 +37,7 @@ BuildRequires: golang(code.google.com/p/go.text/encoding/traditionalchinese)
BuildRequires: golang(code.google.com/p/go.text/encoding/unicode)
BuildRequires: golang(code.google.com/p/go.text/transform)
Requires: golang >= 1.2.1-3
-Summary: Supplementary Go networking libraries
+Summary: Supplementary Go networking libraries for code.google.com/p/ imports
Provides: golang(%{import_path}/context) = %{version}-%{release}
Provides: golang(%{import_path}/dict) = %{version}-%{release}
Provides: golang(%{import_path}/html) = %{version}-%{release}
@@ -47,11 +53,43 @@ Provides: golang(%{import_path}/publicsuffix) = %{version}-%{release}
Provides: golang(%{import_path}/spdy) = %{version}-%{release}
Provides: golang(%{import_path}/websocket) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/encoding)
+BuildRequires: golang(golang.org/x/text/encoding/charmap)
+BuildRequires: golang(golang.org/x/text/encoding/japanese)
+BuildRequires: golang(golang.org/x/text/encoding/korean)
+BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese)
+BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese)
+BuildRequires: golang(golang.org/x/text/encoding/unicode)
+BuildRequires: golang(golang.org/x/text/transform)
+Requires: golang >= 1.2.1-3
+Summary: Supplementary Go networking libraries for golang.org/x/ imports
+Provides: golang(%{x_import_path}/context) = %{version}-%{release}
+Provides: golang(%{x_import_path}/dict) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/atom) = %{version}-%{release}
+Provides: golang(%{x_import_path}/html/charset) = %{version}-%{release}
+Provides: golang(%{x_import_path}/idna) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/iana) = %{version}-%{release}
+Provides: golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv4) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ipv6) = %{version}-%{release}
+Provides: golang(%{x_import_path}/proxy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
+Provides: golang(%{x_import_path}/spdy) = %{version}-%{release}
+Provides: golang(%{x_import_path}/websocket) = %{version}-%{release}
+
%description devel
%{summary}
This package contains library source intended for building other packages
-which use the supplementary Go networking libraries.
+which use the supplementary Go networking libraries with code.google.com/p/ imports.
+
+%description -n %{x_name}-devel
+
+This package contains library source intended for building other packages
+which use the supplementary Go text libraries with golang.org/x/ imports.
%prep
@@ -61,8 +99,10 @@ which use the supplementary Go networking libraries.
%install
install -dp %{buildroot}/%{gopath}/src/%{import_path}
+install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
for dir in */ ; do
cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
done
%check
@@ -74,17 +114,22 @@ done
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
+rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
%files devel
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/*
-%dir %{gopath}/src/%{import_path}/*/*
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*.s
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Mon Nov 24 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.17.hg90e232e2462d
+- Extend import paths for golang.org/x/
+ related: #1009967
+
* Mon Sep 29 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.16.hg90e232e2462d
- Resolves: rhbz#1147193 - update to latest upstream revision
90e232e2462dedc03bf3c93358da62d54d55dfb6
9 years, 6 months
[golang-googlecode-go-exp/el6] Extend import paths for golang.org/x/ - related: #1148481
by Jan Chaloupka
commit 492e73890af7936089c80d704259a75d98278081
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Nov 21 12:17:29 2014 +0100
Extend import paths for golang.org/x/
- related: #1148481
golang-googlecode-go-exp.spec | 74 ++++++++++++++++++++++++++++++----------
1 files changed, 55 insertions(+), 19 deletions(-)
---
diff --git a/golang-googlecode-go-exp.spec b/golang-googlecode-go-exp.spec
index 41a5536..ba83d85 100644
--- a/golang-googlecode-go-exp.spec
+++ b/golang-googlecode-go-exp.spec
@@ -1,17 +1,24 @@
+%global debug_package %{nil}
+
%global provider_prefix code
%global provider google
%global provider_tld com
%global project p
%global repo go.exp
%global commit bd8df7009305d6ada223ea3c95b94c0f38bfa119
-
-%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
%global shortcommit %(c=%{commit}; echo ${c:0:12})
-%global debug_package %{nil}
+%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
+
+%global x_provider golang
+%global x_provider_tld org
+%global x_project x
+%global x_repo exp
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{x_repo}
Name: golang-googlecode-go-exp
Version: 0
-Release: 0.2.hg%{shortcommit}%{?dist}
+Release: 0.3.hg%{shortcommit}%{?dist}
Summary: Experimental tools and packages for Go
License: BSD
URL: http://%{import_path}
@@ -30,8 +37,8 @@ BuildRequires: golang >= 1.2.1-3
BuildRequires: golang(code.google.com/p/go.text/language)
BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
Requires: golang >= 1.2.1-3
-BuildRequires: golang(code.google.com/p/go.text/language)
-BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
+Requires: golang(code.google.com/p/go.text/language)
+Requires: golang(code.google.com/p/go.text/collate/colltab)
Summary: %{summary}
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/ebnf) = %{version}-%{release}
@@ -44,6 +51,25 @@ Provides: golang(%{import_path}/old) = %{version}-%{release}
Provides: golang(%{import_path}/old/netchan) = %{version}-%{release}
Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/language)
+BuildRequires: golang(golang.org/x/text/collate/colltab)
+Requires: golang >= 1.2.1-3
+Requires: golang(golang.org/x/text/language)
+Requires: golang(golang.org/x/text/collate/colltab)
+Summary: %{summary}
+Provides: golang(%{x_import_path}) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnf) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnflint) = %{version}-%{release}
+Provides: golang(%{x_import_path}/fsnotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/inotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale/search) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old/netchan) = %{version}-%{release}
+Provides: golang(%{x_import_path}/utf8string) = %{version}-%{release}
+
# winfsnotify is for Windows only
%description devel
@@ -52,6 +78,12 @@ Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
This package contains library source intended for
building other packages which use %{project}/%{repo}.
+%description -n %{x_name}-devel
+%{summary}.
+
+This package contains library source intended for
+building other packages which use %{x_project}/%{x_repo}.
+
%prep
%setup -q -n %{repo}-%{shortcommit}
@@ -59,32 +91,36 @@ building other packages which use %{project}/%{repo}.
%install
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/
for d in ebnf ebnflint fsnotify inotify locale old utf8string; do
cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -pav $d %{buildroot}/%{gopath}/src/%{x_import_path}/
done
+cd %{buildroot}/%{gopath}/src/%{x_import_path}
+# from https://groups.google.com/forum/#!topic/golang-nuts/eD8dh3T9yyA, first post
+sed -i 's/"code\.google\.com\/p\/go\./"golang\.org\/x\//g' \
+ $(find . -name '*.go')
+
%check
GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/{ebnf,ebnflint,fsnotify,inotify,locale/search,old/netchan,utf8string}
%files devel
%doc LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/ebnf
-%dir %{gopath}/src/%{import_path}/ebnflint
-%dir %{gopath}/src/%{import_path}/fsnotify
-%dir %{gopath}/src/%{import_path}/inotify
-%dir %{gopath}/src/%{import_path}/locale
-%dir %{gopath}/src/%{import_path}/locale/search
-%dir %{gopath}/src/%{import_path}/old
-%dir %{gopath}/src/%{import_path}/old/netchan
-%dir %{gopath}/src/%{import_path}/utf8string
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Fri Nov 21 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.3.hgbd8df7009305
+- Extend import paths for golang.org/x/
+ related: #1148481
+
* Sun Oct 26 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.2.hgbd8df7009305
- Choose the correct architecture
- relates: #1148481
+ related: #1148481
* Mon Sep 15 2014 Eric Paris <eparis(a)redhat.com - 0-0.1.hgbd8df7009305
- Bump to upstream bd8df7009305d6ada223ea3c95b94c0f38bfa119
9 years, 6 months
[golang-googlecode-go-exp] Extend import paths for golang.org/x/ - related: #1148481
by Jan Chaloupka
commit 6e996586031c1117b0e1acdde6f7a809f560aa13
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Nov 21 12:17:29 2014 +0100
Extend import paths for golang.org/x/
- related: #1148481
golang-googlecode-go-exp.spec | 74 ++++++++++++++++++++++++++++++----------
1 files changed, 55 insertions(+), 19 deletions(-)
---
diff --git a/golang-googlecode-go-exp.spec b/golang-googlecode-go-exp.spec
index 41a5536..ba83d85 100644
--- a/golang-googlecode-go-exp.spec
+++ b/golang-googlecode-go-exp.spec
@@ -1,17 +1,24 @@
+%global debug_package %{nil}
+
%global provider_prefix code
%global provider google
%global provider_tld com
%global project p
%global repo go.exp
%global commit bd8df7009305d6ada223ea3c95b94c0f38bfa119
-
-%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
%global shortcommit %(c=%{commit}; echo ${c:0:12})
-%global debug_package %{nil}
+%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
+
+%global x_provider golang
+%global x_provider_tld org
+%global x_project x
+%global x_repo exp
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{x_repo}
Name: golang-googlecode-go-exp
Version: 0
-Release: 0.2.hg%{shortcommit}%{?dist}
+Release: 0.3.hg%{shortcommit}%{?dist}
Summary: Experimental tools and packages for Go
License: BSD
URL: http://%{import_path}
@@ -30,8 +37,8 @@ BuildRequires: golang >= 1.2.1-3
BuildRequires: golang(code.google.com/p/go.text/language)
BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
Requires: golang >= 1.2.1-3
-BuildRequires: golang(code.google.com/p/go.text/language)
-BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
+Requires: golang(code.google.com/p/go.text/language)
+Requires: golang(code.google.com/p/go.text/collate/colltab)
Summary: %{summary}
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/ebnf) = %{version}-%{release}
@@ -44,6 +51,25 @@ Provides: golang(%{import_path}/old) = %{version}-%{release}
Provides: golang(%{import_path}/old/netchan) = %{version}-%{release}
Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/language)
+BuildRequires: golang(golang.org/x/text/collate/colltab)
+Requires: golang >= 1.2.1-3
+Requires: golang(golang.org/x/text/language)
+Requires: golang(golang.org/x/text/collate/colltab)
+Summary: %{summary}
+Provides: golang(%{x_import_path}) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnf) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnflint) = %{version}-%{release}
+Provides: golang(%{x_import_path}/fsnotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/inotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale/search) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old/netchan) = %{version}-%{release}
+Provides: golang(%{x_import_path}/utf8string) = %{version}-%{release}
+
# winfsnotify is for Windows only
%description devel
@@ -52,6 +78,12 @@ Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
This package contains library source intended for
building other packages which use %{project}/%{repo}.
+%description -n %{x_name}-devel
+%{summary}.
+
+This package contains library source intended for
+building other packages which use %{x_project}/%{x_repo}.
+
%prep
%setup -q -n %{repo}-%{shortcommit}
@@ -59,32 +91,36 @@ building other packages which use %{project}/%{repo}.
%install
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/
for d in ebnf ebnflint fsnotify inotify locale old utf8string; do
cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -pav $d %{buildroot}/%{gopath}/src/%{x_import_path}/
done
+cd %{buildroot}/%{gopath}/src/%{x_import_path}
+# from https://groups.google.com/forum/#!topic/golang-nuts/eD8dh3T9yyA, first post
+sed -i 's/"code\.google\.com\/p\/go\./"golang\.org\/x\//g' \
+ $(find . -name '*.go')
+
%check
GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/{ebnf,ebnflint,fsnotify,inotify,locale/search,old/netchan,utf8string}
%files devel
%doc LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/ebnf
-%dir %{gopath}/src/%{import_path}/ebnflint
-%dir %{gopath}/src/%{import_path}/fsnotify
-%dir %{gopath}/src/%{import_path}/inotify
-%dir %{gopath}/src/%{import_path}/locale
-%dir %{gopath}/src/%{import_path}/locale/search
-%dir %{gopath}/src/%{import_path}/old
-%dir %{gopath}/src/%{import_path}/old/netchan
-%dir %{gopath}/src/%{import_path}/utf8string
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Fri Nov 21 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.3.hgbd8df7009305
+- Extend import paths for golang.org/x/
+ related: #1148481
+
* Sun Oct 26 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.2.hgbd8df7009305
- Choose the correct architecture
- relates: #1148481
+ related: #1148481
* Mon Sep 15 2014 Eric Paris <eparis(a)redhat.com - 0-0.1.hgbd8df7009305
- Bump to upstream bd8df7009305d6ada223ea3c95b94c0f38bfa119
9 years, 6 months
[golang-googlecode-go-exp/f21] Extend import paths for golang.org/x/ - related: #1148481
by Jan Chaloupka
commit 11786ccac51fcbb3d04d186a2630be2224c9c3b6
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Nov 21 12:17:29 2014 +0100
Extend import paths for golang.org/x/
- related: #1148481
golang-googlecode-go-exp.spec | 74 ++++++++++++++++++++++++++++++----------
1 files changed, 55 insertions(+), 19 deletions(-)
---
diff --git a/golang-googlecode-go-exp.spec b/golang-googlecode-go-exp.spec
index 41a5536..ba83d85 100644
--- a/golang-googlecode-go-exp.spec
+++ b/golang-googlecode-go-exp.spec
@@ -1,17 +1,24 @@
+%global debug_package %{nil}
+
%global provider_prefix code
%global provider google
%global provider_tld com
%global project p
%global repo go.exp
%global commit bd8df7009305d6ada223ea3c95b94c0f38bfa119
-
-%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
%global shortcommit %(c=%{commit}; echo ${c:0:12})
-%global debug_package %{nil}
+%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
+
+%global x_provider golang
+%global x_provider_tld org
+%global x_project x
+%global x_repo exp
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{x_repo}
Name: golang-googlecode-go-exp
Version: 0
-Release: 0.2.hg%{shortcommit}%{?dist}
+Release: 0.3.hg%{shortcommit}%{?dist}
Summary: Experimental tools and packages for Go
License: BSD
URL: http://%{import_path}
@@ -30,8 +37,8 @@ BuildRequires: golang >= 1.2.1-3
BuildRequires: golang(code.google.com/p/go.text/language)
BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
Requires: golang >= 1.2.1-3
-BuildRequires: golang(code.google.com/p/go.text/language)
-BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
+Requires: golang(code.google.com/p/go.text/language)
+Requires: golang(code.google.com/p/go.text/collate/colltab)
Summary: %{summary}
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/ebnf) = %{version}-%{release}
@@ -44,6 +51,25 @@ Provides: golang(%{import_path}/old) = %{version}-%{release}
Provides: golang(%{import_path}/old/netchan) = %{version}-%{release}
Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/language)
+BuildRequires: golang(golang.org/x/text/collate/colltab)
+Requires: golang >= 1.2.1-3
+Requires: golang(golang.org/x/text/language)
+Requires: golang(golang.org/x/text/collate/colltab)
+Summary: %{summary}
+Provides: golang(%{x_import_path}) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnf) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnflint) = %{version}-%{release}
+Provides: golang(%{x_import_path}/fsnotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/inotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale/search) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old/netchan) = %{version}-%{release}
+Provides: golang(%{x_import_path}/utf8string) = %{version}-%{release}
+
# winfsnotify is for Windows only
%description devel
@@ -52,6 +78,12 @@ Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
This package contains library source intended for
building other packages which use %{project}/%{repo}.
+%description -n %{x_name}-devel
+%{summary}.
+
+This package contains library source intended for
+building other packages which use %{x_project}/%{x_repo}.
+
%prep
%setup -q -n %{repo}-%{shortcommit}
@@ -59,32 +91,36 @@ building other packages which use %{project}/%{repo}.
%install
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/
for d in ebnf ebnflint fsnotify inotify locale old utf8string; do
cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -pav $d %{buildroot}/%{gopath}/src/%{x_import_path}/
done
+cd %{buildroot}/%{gopath}/src/%{x_import_path}
+# from https://groups.google.com/forum/#!topic/golang-nuts/eD8dh3T9yyA, first post
+sed -i 's/"code\.google\.com\/p\/go\./"golang\.org\/x\//g' \
+ $(find . -name '*.go')
+
%check
GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/{ebnf,ebnflint,fsnotify,inotify,locale/search,old/netchan,utf8string}
%files devel
%doc LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/ebnf
-%dir %{gopath}/src/%{import_path}/ebnflint
-%dir %{gopath}/src/%{import_path}/fsnotify
-%dir %{gopath}/src/%{import_path}/inotify
-%dir %{gopath}/src/%{import_path}/locale
-%dir %{gopath}/src/%{import_path}/locale/search
-%dir %{gopath}/src/%{import_path}/old
-%dir %{gopath}/src/%{import_path}/old/netchan
-%dir %{gopath}/src/%{import_path}/utf8string
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Fri Nov 21 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.3.hgbd8df7009305
+- Extend import paths for golang.org/x/
+ related: #1148481
+
* Sun Oct 26 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.2.hgbd8df7009305
- Choose the correct architecture
- relates: #1148481
+ related: #1148481
* Mon Sep 15 2014 Eric Paris <eparis(a)redhat.com - 0-0.1.hgbd8df7009305
- Bump to upstream bd8df7009305d6ada223ea3c95b94c0f38bfa119
9 years, 6 months
[golang-googlecode-go-exp/f20] Extend import paths for golang.org/x/ - related: #1148481
by Jan Chaloupka
commit ca31662301c822c9f96a6b7ae14727517911d387
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Nov 21 12:17:29 2014 +0100
Extend import paths for golang.org/x/
- related: #1148481
golang-googlecode-go-exp.spec | 74 ++++++++++++++++++++++++++++++----------
1 files changed, 55 insertions(+), 19 deletions(-)
---
diff --git a/golang-googlecode-go-exp.spec b/golang-googlecode-go-exp.spec
index 41a5536..ba83d85 100644
--- a/golang-googlecode-go-exp.spec
+++ b/golang-googlecode-go-exp.spec
@@ -1,17 +1,24 @@
+%global debug_package %{nil}
+
%global provider_prefix code
%global provider google
%global provider_tld com
%global project p
%global repo go.exp
%global commit bd8df7009305d6ada223ea3c95b94c0f38bfa119
-
-%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
%global shortcommit %(c=%{commit}; echo ${c:0:12})
-%global debug_package %{nil}
+%global import_path %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
+
+%global x_provider golang
+%global x_provider_tld org
+%global x_project x
+%global x_repo exp
+%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
+%global x_name golang-%{x_provider}%{x_provider_tld}-%{x_repo}
Name: golang-googlecode-go-exp
Version: 0
-Release: 0.2.hg%{shortcommit}%{?dist}
+Release: 0.3.hg%{shortcommit}%{?dist}
Summary: Experimental tools and packages for Go
License: BSD
URL: http://%{import_path}
@@ -30,8 +37,8 @@ BuildRequires: golang >= 1.2.1-3
BuildRequires: golang(code.google.com/p/go.text/language)
BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
Requires: golang >= 1.2.1-3
-BuildRequires: golang(code.google.com/p/go.text/language)
-BuildRequires: golang(code.google.com/p/go.text/collate/colltab)
+Requires: golang(code.google.com/p/go.text/language)
+Requires: golang(code.google.com/p/go.text/collate/colltab)
Summary: %{summary}
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/ebnf) = %{version}-%{release}
@@ -44,6 +51,25 @@ Provides: golang(%{import_path}/old) = %{version}-%{release}
Provides: golang(%{import_path}/old/netchan) = %{version}-%{release}
Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
+%package -n %{x_name}-devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(golang.org/x/text/language)
+BuildRequires: golang(golang.org/x/text/collate/colltab)
+Requires: golang >= 1.2.1-3
+Requires: golang(golang.org/x/text/language)
+Requires: golang(golang.org/x/text/collate/colltab)
+Summary: %{summary}
+Provides: golang(%{x_import_path}) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnf) = %{version}-%{release}
+Provides: golang(%{x_import_path}/ebnflint) = %{version}-%{release}
+Provides: golang(%{x_import_path}/fsnotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/inotify) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale) = %{version}-%{release}
+Provides: golang(%{x_import_path}/locale/search) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old) = %{version}-%{release}
+Provides: golang(%{x_import_path}/old/netchan) = %{version}-%{release}
+Provides: golang(%{x_import_path}/utf8string) = %{version}-%{release}
+
# winfsnotify is for Windows only
%description devel
@@ -52,6 +78,12 @@ Provides: golang(%{import_path}/utf8string) = %{version}-%{release}
This package contains library source intended for
building other packages which use %{project}/%{repo}.
+%description -n %{x_name}-devel
+%{summary}.
+
+This package contains library source intended for
+building other packages which use %{x_project}/%{x_repo}.
+
%prep
%setup -q -n %{repo}-%{shortcommit}
@@ -59,32 +91,36 @@ building other packages which use %{project}/%{repo}.
%install
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/
for d in ebnf ebnflint fsnotify inotify locale old utf8string; do
cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+ cp -pav $d %{buildroot}/%{gopath}/src/%{x_import_path}/
done
+cd %{buildroot}/%{gopath}/src/%{x_import_path}
+# from https://groups.google.com/forum/#!topic/golang-nuts/eD8dh3T9yyA, first post
+sed -i 's/"code\.google\.com\/p\/go\./"golang\.org\/x\//g' \
+ $(find . -name '*.go')
+
%check
GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/{ebnf,ebnflint,fsnotify,inotify,locale/search,old/netchan,utf8string}
%files devel
%doc LICENSE PATENTS README
-%dir %{gopath}/src/%{import_path}
-%dir %{gopath}/src/%{import_path}/ebnf
-%dir %{gopath}/src/%{import_path}/ebnflint
-%dir %{gopath}/src/%{import_path}/fsnotify
-%dir %{gopath}/src/%{import_path}/inotify
-%dir %{gopath}/src/%{import_path}/locale
-%dir %{gopath}/src/%{import_path}/locale/search
-%dir %{gopath}/src/%{import_path}/old
-%dir %{gopath}/src/%{import_path}/old/netchan
-%dir %{gopath}/src/%{import_path}/utf8string
-%{gopath}/src/%{import_path}/*/*.go
-%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}
+
+%files -n %{x_name}-devel
+%doc LICENSE PATENTS README
+%{gopath}/src/%{x_import_path}
%changelog
+* Fri Nov 21 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.3.hgbd8df7009305
+- Extend import paths for golang.org/x/
+ related: #1148481
+
* Sun Oct 26 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.2.hgbd8df7009305
- Choose the correct architecture
- relates: #1148481
+ related: #1148481
* Mon Sep 15 2014 Eric Paris <eparis(a)redhat.com - 0-0.1.hgbd8df7009305
- Bump to upstream bd8df7009305d6ada223ea3c95b94c0f38bfa119
9 years, 6 months