Blame golang-googlecode-net.spec

9355824
%global debug_package   %{nil}
8a1dd91
%global provider_tld    com
a3a538f
%global provider        github
a3a538f
%global project         golang
8a1dd91
%global repo            net
a3a538f
%global import_path     code.google.com/p/go.net
a3a538f
%global commit          71586c3cf98f806af322c5a361660eb046e00501
a3a538f
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
4b66dc7
31bd9c2
%global x_provider      golang
31bd9c2
%global x_provider_tld  org
31bd9c2
%global x_repo          net
31bd9c2
%global x_import_path   %{x_provider}.%{x_provider_tld}/x/%{x_repo}
31bd9c2
%global x_name          golang-%{x_provider}%{x_provider_tld}-%{repo}
31bd9c2
a3a538f
Name:       golang-googlecode-net
8a1dd91
Version:    0
a3a538f
Release:    0.20.git%{shortcommit}%{?dist}
8a1dd91
Summary:    Supplementary Go networking libraries
8a1dd91
License:    BSD
8a1dd91
URL:        http://%{import_path}
a3a538f
Source0:    https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
a3a538f
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
a3a538f
BuildArch:      noarch
a3a538f
%else
33e846c
ExclusiveArch:  %{ix86} x86_64 %{arm}
a3a538f
%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
31bd9c2
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
31bd9c2
%package -n %{x_name}-devel
31bd9c2
BuildRequires:  golang >= 1.2.1-3
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/charmap)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/japanese)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/korean)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/simplifiedchinese)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/traditionalchinese)
31bd9c2
BuildRequires:  golang(golang.org/x/text/encoding/unicode)
31bd9c2
BuildRequires:  golang(golang.org/x/text/transform)
31bd9c2
Requires:   golang >= 1.2.1-3
31bd9c2
Summary:    Supplementary Go networking libraries for golang.org/x/ imports
31bd9c2
Provides:   golang(%{x_import_path}/context) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/dict) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/html) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/html/atom) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/html/charset) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/idna) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/internal/iana) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/ipv4) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/ipv6) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/proxy) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/spdy) = %{version}-%{release}
31bd9c2
Provides:   golang(%{x_import_path}/websocket) = %{version}-%{release}
31bd9c2
4b66dc7
%description devel
4b66dc7
%{summary}
4b66dc7
bc4883d
This package contains library source intended for building other packages
31bd9c2
which use the supplementary Go networking libraries with code.google.com/p/ imports.
31bd9c2
31bd9c2
%description -n %{x_name}-devel
31bd9c2
31bd9c2
This package contains library source intended for building other packages
31bd9c2
which use the supplementary Go text libraries with golang.org/x/ imports.
bc4883d
4b66dc7
%prep
bc4883d
a3a538f
%setup -q -n %{repo}-%{commit}
4b66dc7
4b66dc7
%build
4b66dc7
4b66dc7
%install
8a1dd91
install -dp %{buildroot}/%{gopath}/src/%{import_path}
31bd9c2
install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
8a1dd91
for dir in */ ; do
8a1dd91
   cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
31bd9c2
   cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
bc4883d
done
4b66dc7
ef99c93
cd %{buildroot}/%{gopath}/src/%{import_path}/
ef99c93
sed -i 's/"golang\.org\/x\//"code\.google\.com\/p\/go\./g' \
ef99c93
        $(find . -name '*.go')
ef99c93
370b18e
%check
ef99c93
# context, icmp failing
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/spdy
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/webdav
a3a538f
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv4
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html
a3a538f
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/charset
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/atom
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/idna
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/netutil
a3a538f
#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv6
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/websocket
a3a538f
GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/publicsuffix
a3a538f
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
31bd9c2
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
31bd9c2
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
370b18e
4b66dc7
%files devel
bc4883d
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
31bd9c2
%{gopath}/src/%{import_path}
31bd9c2
31bd9c2
%files -n %{x_name}-devel
31bd9c2
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
31bd9c2
%{gopath}/src/%{x_import_path}
4b66dc7
4b66dc7
%changelog
a3a538f
* Fri Feb 06 2015 jchaloup <jchaloup@redhat.com> - 0-0.20.git71586c3
a3a538f
- Bump to upstream 71586c3cf98f806af322c5a361660eb046e00501
a3a538f
- Repo moved to github, changing spec file header and globals
a3a538f
f0b07f3
* Thu Dec 18 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.19.hg937a34c9de13
f0b07f3
- Resolves: rhbz#1056185 disable ipv6 test
f0b07f3
- also disable html/charset test
f0b07f3
ef99c93
* Tue Dec 09 2014 jchaloup <jchaloup@redhat.com> - 0-0.18.hg937a34c9de13
ef99c93
- Update to the latest commit 937a34c9de13c766c814510f76bca091dee06028
ef99c93
  related: #1009967
ef99c93
31bd9c2
* Mon Nov 24 2014 jchaloup <jchaloup@redhat.com> - 0-0.17.hg90e232e2462d
31bd9c2
- Extend import paths for golang.org/x/
31bd9c2
  related: #1009967
31bd9c2
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
370b18e
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.13.hg84a4013f96e0
370b18e
- golang exclusivearch for el6+
370b18e
- add check
370b18e
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