Blame golang-googlecode-net.spec

9355824
%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}
8a1dd91
%global rev             90e232e2462dedc03bf3c93358da62d54d55dfb6
4b66dc7
%global shortrev        %(r=%{rev}; echo ${r:0:12})
4b66dc7
8a1dd91
Name:       golang-%{provider}%{provider_prefix}-%{repo}
8a1dd91
Version:    0
8a1dd91
Release:    0.16.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
33e846c
ExclusiveArch:  %{ix86} x86_64 %{arm}
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
8a1dd91
Summary:    Supplementary Go networking libraries
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
4b66dc7
%description devel
4b66dc7
%{summary}
4b66dc7
bc4883d
This package contains library source intended for building other packages
bc4883d
which use the supplementary Go networking libraries.
bc4883d
4b66dc7
%prep
bc4883d
8a1dd91
%setup -qn net.go-%{shortrev}
4b66dc7
4b66dc7
%build
4b66dc7
4b66dc7
%install
8a1dd91
install -dp %{buildroot}/%{gopath}/src/%{import_path}
8a1dd91
for dir in */ ; do
8a1dd91
   cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
bc4883d
done
4b66dc7
370b18e
%check
8a1dd91
for dir in $(find . -mindepth 0 -maxdepth 3 -type d); do
8a1dd91
    if [ $(find $dir -maxdepth 1 -name *_test.go | wc -l) != '0' ]; then
8a1dd91
        GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/$dir
8a1dd91
    fi
8a1dd91
done
8a1dd91
8a1dd91
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
8a1dd91
rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
370b18e
4b66dc7
%files devel
bc4883d
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
8a1dd91
%dir %{gopath}/src/%{import_path}
8a1dd91
%dir %{gopath}/src/%{import_path}/*
8a1dd91
%dir %{gopath}/src/%{import_path}/*/*
8a1dd91
%{gopath}/src/%{import_path}/*/*.go
8a1dd91
%{gopath}/src/%{import_path}/*/*.s
8a1dd91
%{gopath}/src/%{import_path}/*/*/*.go
4b66dc7
4b66dc7
%changelog
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