Blame golang-googlecode-net.spec

8a1dd91
%global debug_package   %{nil}
8a1dd91
%global provider_tld    com
8a1dd91
%global provider        google
8a1dd91
%global provider_prefix code
8a1dd91
%global project         p
8a1dd91
%global repo            net
8a1dd91
%global import_path     %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/go.%{repo}
f4f3f43
%global rev             937a34c9de13c766c814510f76bca091dee06028
4b66dc7
%global shortrev        %(r=%{rev}; echo ${r:0:12})
4b66dc7
e126878
%global x_provider      golang
e126878
%global x_provider_tld  org
e126878
%global x_repo          net
e126878
%global x_import_path   %{x_provider}.%{x_provider_tld}/x/%{x_repo}
e126878
%global x_name          golang-%{x_provider}%{x_provider_tld}-%{repo}
e126878
8a1dd91
Name:       golang-%{provider}%{provider_prefix}-%{repo}
8a1dd91
Version:    0
f4f3f43
Release:    0.18.hg%{shortrev}%{?dist}
8a1dd91
Summary:    Supplementary Go networking libraries
8a1dd91
License:    BSD
8a1dd91
URL:        http://%{import_path}
8a1dd91
Source0:    https://%{repo}.go.%{provider}%{provider_prefix}.%{provider_tld}/archive/%{rev}.tar.gz
8a1dd91
BuildArch:  noarch
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
e126878
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
e126878
%package -n %{x_name}-devel
e126878
BuildRequires:  golang >= 1.2.1-3
e126878
BuildRequires:  golang(golang.org/x/text/encoding)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/charmap)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/japanese)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/korean)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/simplifiedchinese)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/traditionalchinese)
e126878
BuildRequires:  golang(golang.org/x/text/encoding/unicode)
e126878
BuildRequires:  golang(golang.org/x/text/transform)
e126878
Requires:   golang >= 1.2.1-3
e126878
Summary:    Supplementary Go networking libraries for golang.org/x/ imports
e126878
Provides:   golang(%{x_import_path}/context) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/dict) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/html) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/html/atom) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/html/charset) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/idna) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/internal/iana) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/internal/icmp) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/ipv4) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/ipv6) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/proxy) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/publicsuffix) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/spdy) = %{version}-%{release}
e126878
Provides:   golang(%{x_import_path}/websocket) = %{version}-%{release}
e126878
4b66dc7
%description devel
4b66dc7
%{summary}
4b66dc7
bc4883d
This package contains library source intended for building other packages
e126878
which use the supplementary Go networking libraries with code.google.com/p/ imports.
e126878
e126878
%description -n %{x_name}-devel
e126878
e126878
This package contains library source intended for building other packages
e126878
which use the supplementary Go text libraries with golang.org/x/ imports.
bc4883d
4b66dc7
%prep
bc4883d
8a1dd91
%setup -qn net.go-%{shortrev}
4b66dc7
4b66dc7
%build
4b66dc7
4b66dc7
%install
8a1dd91
install -dp %{buildroot}/%{gopath}/src/%{import_path}
e126878
install -dp %{buildroot}/%{gopath}/src/%{x_import_path}
8a1dd91
for dir in */ ; do
8a1dd91
   cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
e126878
   cp -rpav $dir %{buildroot}/%{gopath}/src/%{x_import_path}/
bc4883d
done
4b66dc7
f4f3f43
cd %{buildroot}/%{gopath}/src/%{import_path}/
f4f3f43
sed -i 's/"golang\.org\/x\//"code\.google\.com\/p\/go\./g' \
f4f3f43
        $(find . -name '*.go')
f4f3f43
f212b2f
%check
f4f3f43
# context, icmp failing
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/spdy
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/webdav
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/ipv4
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html/charset
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html/atom
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/idna
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/netutil
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/ipv6
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/websocket
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/publicsuffix
f4f3f43
GOPATH=%{gopath}:%{buildroot}%{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
e126878
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/testdata
e126878
rm -rf %{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
f212b2f
4b66dc7
%files devel
bc4883d
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
e126878
%{gopath}/src/%{import_path}
e126878
e126878
%files -n %{x_name}-devel
e126878
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
e126878
%{gopath}/src/%{x_import_path}
4b66dc7
4b66dc7
%changelog
f4f3f43
* Tue Dec 09 2014 jchaloup <jchaloup@redhat.com> - 0-0.18.hg937a34c9de13
f4f3f43
- Update to the latest commit 937a34c9de13c766c814510f76bca091dee06028
f4f3f43
  related: #1009967
f4f3f43
e126878
* Mon Nov 24 2014 jchaloup <jchaloup@redhat.com> - 0-0.17.hg90e232e2462d
e126878
- Extend import paths for golang.org/x/
e126878
  related: #1009967
e126878
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