%bcond_without bootstrap %bcond_without check %global debug_package %{nil} %global source_release 0.58 %global go_module0 golang.org/x/net %global go_url0 https://github.com/golang/net %global go_commit0 627f9648deb96c27737b83199d44bb5c1010cbcf # Upstream license specification: BSD-3-Clause %global go_license0 BSD %global go_licenses0 LICENSE PATENTS %global go_docs0 AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md %global go_summary0 Go supplementary network libraries %global go_description0 %{ This module provides Go supplementary networking libraries. } # Split modules that depend on: # – golang.org/x/crypto/acme/autocert or # – golang.org/x/text, # directly or via  golang.org/x/net/idna # http2 → autocert → idna # http → idna # publicsuffix → idna → text # html → text %if %{without bootstrap} %global go_module1 golang.org/x/net/idna %global go_url1 %{go_url0} %global go_summary1 Go supplementary idna libraries %global go_description1 %{expand: This module provides an IDNA2008 implementation using the compatibility processing defined by UTS (Unicode Technical Standard) #46, which defines a standard to deal with the transition from IDNA2003. IDNA2008 (Internationalized Domain Names for Applications), is defined in RFC 5890, RFC 5891, RFC 5892, RFC 5893 and RFC 5894. } %global go_module2 golang.org/x/net/html %global go_url2 %{go_url0} %global go_summary2 Go supplementary html libraries %global go_description2 %{expand: This module provides an HTML5-compliant tokenizer and parser. } %global go_module3 golang.org/x/net/http %global go_url3 %{go_url0} %global go_summary3 Go supplementary http libraries %global go_description3 %{expand: This module provides HTTP client and server implementations. } %global go_module4 golang.org/x/net/http2 %global go_url4 %{go_url0} %global go_summary4 Go supplementary http2 libraries %global go_description4 %{expand: This module provides an HTTP/2 protocol implementation. It is low-level and intended to be used directly by very few people. Most users will use it indirectly through the golang.org/x/net/http module.} %global go_module5 golang.org/x/net/publicsuffic %global go_url5 %{go_url0} %global go_summary5 Go public suffix list %global go_description5 %{expand: This module provides a public suffix list based on data from https://publicsuffix.org/ A public suffix is one under which Internet users can directly register names. It is related to, but different from, a TLD (top level domain) “com” is a TLD (top level domain). Top level means it has no dots. “com.au” isn’t an actual TLD, because it’s not at the top level (it has dots). But it is an eTLD (effective TLD), because that‘s the branching point for domain name registrars. Another name for “an eTLD” is “a public suffix”. } %endif %dnl %ifnarch s390x %dnl %bcond_without check %dnl %endif %dnl %bcond_with bootstrap %dnl %global goipaths0 golang.org/x/net %dnl %global goipathsex0 golang.org/x/net/http golang.org/x/net/http2 golang.org/x/net/html/charset golang.org/x/net/idna golang.org/x/net/publicsuffix %dnl %if %{without bootstrap} %dnl %global goipaths1 golang.org/x/net/http golang.org/x/net/http2 golang.org/x/net/html/charset golang.org/x/net/idna golang.org/x/net/publicsuffix %dnl %endif %dnl %global gosupfiles glide.lock glide.yaml %dnl # BuildRequires: golang(cloud.google.com/go/storage) %dnl # BuildRequires: golang(go4.org/syncutil/singleflight) %dnl # BuildRequires: golang(golang.org/x/build/autocertcache) %dnl # BuildRequires: golang(golang.org/x/crypto/acme/autocert) %dnl # BuildRequires: golang(golang.org/x/crypto/ssh/terminal) %dnl # BuildRequires: golang(golang.org/x/sys/unix) %dnl %if %{without bootstrap} %dnl BuildRequires: golang(golang.org/x/text/encoding) %dnl BuildRequires: golang(golang.org/x/text/encoding/charmap) %dnl BuildRequires: golang(golang.org/x/text/encoding/htmlindex) %dnl BuildRequires: golang(golang.org/x/text/secure/bidirule) %dnl BuildRequires: golang(golang.org/x/text/transform) %dnl BuildRequires: golang(golang.org/x/text/unicode/bidi) %dnl BuildRequires: golang(golang.org/x/text/unicode/norm) %dnl %endif %go_pkg %sourcelist %forge_sources glide.lock glide.yaml %{source_name}-idna.mod %{source_name}-html.mod %{source_name}-http.mod %{source_name}-http2.mod %{source_name}-publicsuffix.mod %prep %go_prep cp -pr %{_sourcedir}/glide.{lock,yaml} . for sub in idna html http http2 publicsuffix ; do cp -pr %{_sourcedir}/%{source_name}-${sub}.mod ${sub}/go.mod done sed -i -E '\@^[[:blank:]]*golang.org/x/crypto[[:blank:]].*$@d' go.mod sed -i -E '\@^[[:blank:]]*golang.org/x/text[[:blank:]].*$@d' go.mod %dnl # Demo, with cyclic dependency on cloud.google.com/go/storage %dnl rm -rf http2/h2demo %dnl clean those? %dnl %if %{with bootstrap} %dnl %gocheck -t http/httpguts -t http/httpproxy -t http2 -t html/charset -t idna -t publicsuffix %dnl %endif %generate_buildrequires %go_generate_buildrequires %build %go_build %install %go_install %if %{with check} %check %go_check %endif %go_files %changelog * Wed Jan 29 2020 Fedora Release Engineering - 0-0.56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 29 00:03:56 CET 2019 Robert-André Mauchin - 0-0.55.20191228gitc0dbc17 - Bump to commit c0dbc17a35534bf2e581d7a942408dc936316da4 * Fri Oct 18 2019 Elliott Sales de Andrade - 0-0.54.20191018gitda9a3fd - Update to da9a3fd4c5820e74b24a6cb7fb438dc9b0dd377c * Thu Jul 25 2019 Fedora Release Engineering - 0-0.53.20190416git1da14a5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 05 2019 Elliott Sales de Andrade - 0-0.52.20190416git1da14a5 - Add Obsoletes for old name * Tue Apr 16 00:50:39 CEST 2019 Robert-André Mauchin - 0-0.51.20190416git1da14a5 - Bump to commit 1da14a5a36f220ea3f03470682b737b1dfd5de22 - Bootstrap * Sat Mar 02 2019 Robert-André Mauchin - 0-0.50.20190302git16b79f2 - Bump to commit 16b79f2e4e95ea23b2bf9903c9809ff7b013ce85 * Fri Feb 01 2019 Fedora Release Engineering - 0-0.49.20180614gitdb08ff0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 0-0.48.20180614gitdb08ff0 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - 0-0.47.20180614gitdb08ff0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 02 2018 Jan Chaloupka - 0-0.46.20180614gitdb08ff0 - Upload glide files * Thu Jun 14 2018 Robert-André Mauchin - 0-0.45.20180614gitdb08ff0 - Bump to db08ff08e8622530d9ed3a0e8ac279f6d4c02196 * Tue Mar 13 2018 Jan Chaloupka - 0-0.44.git66aacef - Upload handcrated glide.lock and glide.yaml files * Thu Mar 08 2018 Jan Chaloupka - 0-0.43.git66aacef - Bump to 66aacef3dd8a676686c7ae3716979581e8b03c47 related: #1326890 * Tue Feb 20 2018 Jan Chaloupka - 0-0.42.git1c05540 - Autogenerate some parts using the new macros * Wed Feb 07 2018 Fedora Release Engineering - 0-0.41.git1c05540 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 24 2017 Jan Chaloupka - 0-0.40.git1c05540 - Bump to upstream 1c05540f6879653db88113bc4a2b70aec4bd491f related: #1326890 * Wed Aug 02 2017 Fedora Release Engineering - 0-0.39.gitf249948 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0-0.38.gitf249948 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 15 2017 Jan Chaloupka - 0-0.37.gitf249948 - Bump to upstream f2499483f923065a842d38eb4c7f1927e6fc6e6d related: #1326890 * Fri Feb 10 2017 Fedora Release Engineering - 0-0.36.git4d38db7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 14 2016 Jan Chaloupka - 0-0.35.git4d38db7 - Polish the spec file related: #1326890 * Tue Aug 09 2016 jchaloup - 0-0.34.git4d38db7 - Enable devel and unit-test for epel7 related: #1326890 * Mon Jul 25 2016 jchaloup - 0-0.33.git4d38db7 - Bump to upstream 4d38db76854b199960801a1734443fd02870d7e1 resolves: #1326890 * Thu Jul 21 2016 Fedora Release Engineering - 0-0.32.git6acef71 - https://fedoraproject.org/wiki/Changes/golang1.7 * Tue Mar 22 2016 jchaloup - 0-0.31.git6acef71 - Bump to upstream 6acef71eb69611914f7a30939ea9f6e194c78172 related: #1230677 * Mon Feb 22 2016 Fedora Release Engineering - 0-0.30.git04b9de9 - https://fedoraproject.org/wiki/Changes/golang1.6 * Fri Feb 19 2016 jchaloup - 0-0.29.git04b9de9 - Bump to upstream 04b9de9b512f58addf28c9853d50ebef61c3953e related: #1230677 * Wed Feb 03 2016 Fedora Release Engineering - 0-0.28.git1bc0720 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Oct 19 2015 jchaloup - 0-0.27.git1bc0720 - Bump to upstream 1bc0720082d79ce7ffc6ef6e523d00d46b0dee45 related: #1230677 * Thu Sep 24 2015 Peter Robinson 0-0.6.git446d52d - Change deps on compiler(go-compiler) - Update Arches - Use %%license * Wed Jul 29 2015 jchaloup - 0-0.25.git446d52d - Update of spec file to spec-2.0 related: #1230677 * Thu Jul 23 2015 jchaloup - 0-0.24.git446d52d - No debuginfo related: #1230677 * Thu Jul 23 2015 jchaloup - 0-0.23.git446d52d - Bump to upstream 446d52dd4018303a13b36097e26d0888aca5d6ef related: #1230677 * Wed Jun 17 2015 Fedora Release Engineering - 0-0.22.git7dbad50 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 11 2015 jchaloup - 0-0.21.git7dbad50 - Bump to 7dbad50ab5b31073856416cdcfeb2796d682f844 resolves: #1230677 * Fri Feb 06 2015 jchaloup - 0-0.20.git71586c3 - Bump to upstream 71586c3cf98f806af322c5a361660eb046e00501 - Repo moved to github, changing spec file header and globals * Thu Dec 18 2014 Lokesh Mandvekar - 0-0.19.hg937a34c9de13 - Resolves: rhbz#1056185 disable ipv6 test - also disable html/charset test * Tue Dec 09 2014 jchaloup - 0-0.18.hg937a34c9de13 - Update to the latest commit 937a34c9de13c766c814510f76bca091dee06028 related: #1009967 * Mon Nov 24 2014 jchaloup - 0-0.17.hg90e232e2462d - Extend import paths for golang.org/x/ - context test failing on master related: #1009967 * Mon Sep 29 2014 Lokesh Mandvekar - 0-0.16.hg90e232e2462d - Resolves: rhbz#1147193 - update to latest upstream revision 90e232e2462dedc03bf3c93358da62d54d55dfb6 - don't redefine gopath, don't own dirs owned by golang - use golang >= 1.2.1-3 for golang specific rpm macros - preserve timestamps of copied files - br stuff from golang-googlecode-text * Fri Jul 11 2014 Vincent Batts - 0-0.15.hg84a4013f96e0 - don't fail on ipv6 test bz1056185 * Sat Jun 07 2014 Fedora Release Engineering - 0-0.14.hg84a4013f96e0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Jan 17 2014 Lokesh Mandvekar 0-0.13.hg84a4013f96e0 - golang exclusivearch for el6+ - add check * Fri Jan 17 2014 Lokesh Mandvekar 0-0.12.hg84a4013f96e0 - revert golang >= 1.2 version requirement * Wed Jan 15 2014 Lokesh Mandvekar 0-0.11.hg84a4013f96e0 - require golang 1.2 and up * Wed Oct 16 2013 Lokesh Mandvekar 0-0.10.hg84a4013f96e0 - removed double quotes from Provides * Tue Oct 08 2013 Lokesh Mandvekar 0-0.9.hg84a4013f96e0 - noarch for f19+ and rhel7+, exclusivearch otherwise * Mon Oct 07 2013 Lokesh Mandvekar 0-0.8.hg84a4013f96e0 - exclusivearch as per golang package - debug_package nil * Sun Sep 22 2013 Matthew Miller 0-0.7.hg - install just the source code for devel package * Fri Sep 20 2013 Lokesh Mandvekar 0-0.6.hg - All Provides listed explicitly * Fri Sep 20 2013 Lokesh Mandvekar 0-0.5.hg - Provides corrected * Fri Sep 20 2013 Lokesh Mandvekar 0-0.4.hg - comment cleanup - build explanation * Fri Sep 20 2013 Lokesh Mandvekar 0-0.3.hg - html/webkit/scripted ownership set - codereview.cfg not packaged * Fri Sep 20 2013 Lokesh Mandvekar 0-0.2.hg - IPv6 doesn't build - Typo correction - directory ownership taken care of * Thu Sep 19 2013 Lokesh Mandvekar 0-0.1.hg - Initial fedora package