|
|
8a1dd91 |
%global debug_package %{nil}
|
|
|
8a1dd91 |
%global provider_tld com
|
|
|
31fc8c4 |
%global provider github
|
|
|
31fc8c4 |
%global project golang
|
|
|
8a1dd91 |
%global repo net
|
|
|
31fc8c4 |
%global import_path code.google.com/p/go.net
|
|
|
31fc8c4 |
%global commit 71586c3cf98f806af322c5a361660eb046e00501
|
|
|
31fc8c4 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
4b66dc7 |
|
|
|
e9081e3 |
%global x_provider golang
|
|
|
e9081e3 |
%global x_provider_tld org
|
|
|
e9081e3 |
%global x_repo net
|
|
|
e9081e3 |
%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo}
|
|
|
e9081e3 |
%global x_name golang-%{x_provider}%{x_provider_tld}-%{repo}
|
|
|
e9081e3 |
|
|
|
31fc8c4 |
Name: golang-googlecode-net
|
|
|
8a1dd91 |
Version: 0
|
|
|
31fc8c4 |
Release: 0.19.git%{shortcommit}%{?dist}
|
|
|
8a1dd91 |
Summary: Supplementary Go networking libraries
|
|
|
8a1dd91 |
License: BSD
|
|
|
8a1dd91 |
URL: http://%{import_path}
|
|
|
31fc8c4 |
Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
31fc8c4 |
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
|
|
31fc8c4 |
BuildArch: noarch
|
|
|
31fc8c4 |
%else
|
|
|
31fc8c4 |
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
31fc8c4 |
%endif
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
%description
|
|
|
4b66dc7 |
%{summary}
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
%package devel
|
|
|
8a1dd91 |
BuildRequires: golang >= 1.2.1-3
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/charmap)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/japanese)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/korean)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/simplifiedchinese)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/traditionalchinese)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/encoding/unicode)
|
|
|
8a1dd91 |
BuildRequires: golang(code.google.com/p/go.text/transform)
|
|
|
8a1dd91 |
Requires: golang >= 1.2.1-3
|
|
|
e9081e3 |
Summary: Supplementary Go networking libraries for code.google.com/p/ imports
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/context) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/dict) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/html) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/html/atom) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/html/charset) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/idna) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/internal/iana) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/internal/icmp) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/ipv4) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/ipv6) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/proxy) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/publicsuffix) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/spdy) = %{version}-%{release}
|
|
|
8a1dd91 |
Provides: golang(%{import_path}/websocket) = %{version}-%{release}
|
|
|
4b66dc7 |
|
|
|
e9081e3 |
%package -n %{x_name}-devel
|
|
|
e9081e3 |
BuildRequires: golang >= 1.2.1-3
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/charmap)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/japanese)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/korean)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/encoding/unicode)
|
|
|
e9081e3 |
BuildRequires: golang(golang.org/x/text/transform)
|
|
|
e9081e3 |
Requires: golang >= 1.2.1-3
|
|
|
e9081e3 |
Summary: Supplementary Go networking libraries for golang.org/x/ imports
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/context) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/dict) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/html) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/html/atom) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/html/charset) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/idna) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/internal/iana) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/ipv4) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/ipv6) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/proxy) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/spdy) = %{version}-%{release}
|
|
|
e9081e3 |
Provides: golang(%{x_import_path}/websocket) = %{version}-%{release}
|
|
|
e9081e3 |
|
|
|
4b66dc7 |
%description devel
|
|
|
4b66dc7 |
%{summary}
|
|
|
4b66dc7 |
|
|
|
bc4883d |
This package contains library source intended for building other packages
|
|
|
e9081e3 |
which use the supplementary Go networking libraries with code.google.com/p/ imports.
|
|
|
e9081e3 |
|
|
|
e9081e3 |
%description -n %{x_name}-devel
|
|
|
e9081e3 |
|
|
|
e9081e3 |
This package contains library source intended for building other packages
|
|
|
e9081e3 |
which use the supplementary Go text libraries with golang.org/x/ imports.
|
|
|
bc4883d |
|
|
|
4b66dc7 |
%prep
|
|
|
bc4883d |
|
|
|
31fc8c4 |
%setup -q -n %{repo}-%{commit}
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
%build
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
%install
|
|
|
8a1dd91 |
install -dp %{buildroot}/%{gopath}/src/%{import_path}
|
|
|
e9081e3 |
install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
|
|
|
8a1dd91 |
for dir in */ ; do
|
|
|
8a1dd91 |
cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
e9081e3 |
cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
|
|
|
bc4883d |
done
|
|
|
4b66dc7 |
|
|
|
30a92d9 |
cd %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
30a92d9 |
sed -i 's/"golang\.org\/x\//"code\.google\.com\/p\/go\./g' \
|
|
|
30a92d9 |
$(find . -name '*.go')
|
|
|
30a92d9 |
|
|
|
f212b2f |
%check
|
|
|
30a92d9 |
# context, icmp failing
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/spdy
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/webdav
|
|
|
31fc8c4 |
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv4
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html
|
|
|
31fc8c4 |
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/charset
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/atom
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/idna
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/netutil
|
|
|
31fc8c4 |
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv6
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/websocket
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/publicsuffix
|
|
|
31fc8c4 |
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/proxy
|
|
|
8a1dd91 |
|
|
|
8a1dd91 |
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
|
|
|
8a1dd91 |
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
|
|
|
e9081e3 |
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
|
|
|
e9081e3 |
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
|
|
|
f212b2f |
|
|
|
4b66dc7 |
%files devel
|
|
|
bc4883d |
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
|
|
|
e9081e3 |
%{gopath}/src/%{import_path}
|
|
|
e9081e3 |
|
|
|
e9081e3 |
%files -n %{x_name}-devel
|
|
|
e9081e3 |
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
|
|
|
e9081e3 |
%{gopath}/src/%{x_import_path}
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
%changelog
|
|
|
31fc8c4 |
* Fri Feb 06 2015 jchaloup <jchaloup@redhat.com> - 0-0.19.git71586c3
|
|
|
31fc8c4 |
- Bump to upstream 71586c3cf98f806af322c5a361660eb046e00501
|
|
|
31fc8c4 |
- Repo moved to github, changing spec file header and globals
|
|
|
31fc8c4 |
|
|
|
30a92d9 |
* Tue Dec 09 2014 jchaloup <jchaloup@redhat.com> - 0-0.18.hg937a34c9de13
|
|
|
30a92d9 |
- Update to the latest commit 937a34c9de13c766c814510f76bca091dee06028
|
|
|
30a92d9 |
related: #1009967
|
|
|
30a92d9 |
|
|
|
e9081e3 |
* Mon Nov 24 2014 jchaloup <jchaloup@redhat.com> - 0-0.17.hg90e232e2462d
|
|
|
e9081e3 |
- Extend import paths for golang.org/x/
|
|
|
e9081e3 |
related: #1009967
|
|
|
e9081e3 |
|
|
|
8a1dd91 |
* Mon Sep 29 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.16.hg90e232e2462d
|
|
|
8a1dd91 |
- Resolves: rhbz#1147193 - update to latest upstream revision
|
|
|
8a1dd91 |
90e232e2462dedc03bf3c93358da62d54d55dfb6
|
|
|
8a1dd91 |
- don't redefine gopath, don't own dirs owned by golang
|
|
|
8a1dd91 |
- use golang >= 1.2.1-3 for golang specific rpm macros
|
|
|
8a1dd91 |
- preserve timestamps of copied files
|
|
|
8a1dd91 |
- br stuff from golang-googlecode-text
|
|
|
8a1dd91 |
|
|
Vincent Batts |
fe7eaf7 |
* Fri Jul 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 0-0.15.hg84a4013f96e0
|
|
Vincent Batts |
fe7eaf7 |
- don't fail on ipv6 test bz1056185
|
|
Vincent Batts |
fe7eaf7 |
|
|
|
9d51816 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.14.hg84a4013f96e0
|
|
|
9d51816 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
9d51816 |
|
|
|
f212b2f |
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.13.hg84a4013f96e0
|
|
|
f212b2f |
- golang exclusivearch for el6+
|
|
|
f212b2f |
- add check
|
|
|
f212b2f |
|
|
|
4cd6095 |
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.12.hg84a4013f96e0
|
|
|
4cd6095 |
- revert golang >= 1.2 version requirement
|
|
|
4cd6095 |
|
|
|
0237aff |
* Wed Jan 15 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.11.hg84a4013f96e0
|
|
|
0237aff |
- require golang 1.2 and up
|
|
|
0237aff |
|
|
|
cc40863 |
* Wed Oct 16 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.10.hg84a4013f96e0
|
|
|
cc40863 |
- removed double quotes from Provides
|
|
|
cc40863 |
|
|
|
d255514 |
* Tue Oct 08 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.9.hg84a4013f96e0
|
|
|
d255514 |
- noarch for f19+ and rhel7+, exclusivearch otherwise
|
|
|
d255514 |
|
|
|
9355824 |
* Mon Oct 07 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.8.hg84a4013f96e0
|
|
|
9355824 |
- exclusivearch as per golang package
|
|
|
9355824 |
- debug_package nil
|
|
|
9355824 |
|
|
|
bc4883d |
* Sun Sep 22 2013 Matthew Miller <mattdm@fedoraproject.org> 0-0.7.hg
|
|
|
bc4883d |
- install just the source code for devel package
|
|
|
bc4883d |
|
|
|
ce564c4 |
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.6.hg
|
|
|
ce564c4 |
- All Provides listed explicitly
|
|
|
ce564c4 |
|
|
|
4b66dc7 |
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.5.hg
|
|
|
4b66dc7 |
- Provides corrected
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.4.hg
|
|
|
4b66dc7 |
- comment cleanup
|
|
|
4b66dc7 |
- build explanation
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.3.hg
|
|
|
4b66dc7 |
- html/webkit/scripted ownership set
|
|
|
4b66dc7 |
- codereview.cfg not packaged
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.2.hg
|
|
|
4b66dc7 |
- IPv6 doesn't build
|
|
|
4b66dc7 |
- Typo correction
|
|
|
4b66dc7 |
- directory ownership taken care of
|
|
|
4b66dc7 |
|
|
|
4b66dc7 |
* Thu Sep 19 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.1.hg
|
|
|
4b66dc7 |
- Initial fedora package
|