diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72833b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/go-httpclient-31f0106b4474f14bc441575c19d3a5fa21aa1f6c.tar.gz diff --git a/glide.lock b/glide.lock new file mode 100644 index 0000000..dcfce7e --- /dev/null +++ b/glide.lock @@ -0,0 +1,4 @@ +hash: cdf54652f4198498ad4590815d6ea89169b85e17cfb699d2cadf19738bffa053 +imports: [] +updated: '2018-07-08T17:32:59.434932+00:00' + diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..b20bdc5 --- /dev/null +++ b/glide.yaml @@ -0,0 +1,3 @@ +import: [] +package: github.com/mreiferson/go-httpclient + diff --git a/golang-github-mreiferson-httpclient.spec b/golang-github-mreiferson-httpclient.spec new file mode 100644 index 0000000..184e1d6 --- /dev/null +++ b/golang-github-mreiferson-httpclient.spec @@ -0,0 +1,116 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/mreiferson/go-httpclient +%global goipath github.com/mreiferson/go-httpclient +%global commit 31f0106b4474f14bc441575c19d3a5fa21aa1f6c + +%gometa + +%global common_description %{expand: +Go-httpclient provides an HTTP Transport that implements the RoundTripper +interface and can be used as a built in replacement for the standard library's, +providing: + + - connection timeouts + - request timeouts + +This is a thin wrapper around http.Transport that sets dial timeouts and uses +Go's internal timer scheduler to call the Go 1.1+ CancelRequest() API.} + +%global golicenses LICENSE +%global godocs README.md + +%global gosupfiles glide.lock glide.yaml + +Name: %{goname} +Version: 0 +Release: 0.15%{?dist} +Summary: Go HTTP client with timeouts + +License: MIT +URL: %{gourl} +Source0: %{gosource} +Source1: glide.yaml +Source2: glide.lock + +%description +%{common_description} + +%gopkg + +%prep +%goprep +cp %{S:1} %{S:2} . + +%install +%gopkginstall + +# Remove in F33 +# Remove erroneous glide.lock folder +%pretrans devel -p +path = "%{gopath}/src/%{goipath}/glide.lock" +st = posix.stat(path) +if st and st.type == "directory" then + os.remove(path) +end + +%if %{with check} +%check +# .: needs network +%gocheck -d . +%endif + +%gopkgfiles + +%changelog +* Mon Jun 03 19:46:17 CEST 2019 Robert-André Mauchin - 0-0.15.20190703git31f0106 +- Bump to commit 31f0106b4474f14bc441575c19d3a5fa21aa1f6c + +* Fri Feb 01 2019 Fedora Release Engineering - 0-0.14.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Oct 23 2018 Nicolas Mailhot - 0-0.13.gitc121dfe +- 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.12.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Jan Chaloupka - 0-0.11.gitc121dfe +- Upload glide files + +* Wed Feb 07 2018 Fedora Release Engineering - 0-0.10.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 0-0.9.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0-0.8.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0-0.7.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jul 21 2016 Fedora Release Engineering - 0-0.6.gitc121dfe +- https://fedoraproject.org/wiki/Changes/golang1.7 + +* Mon Feb 22 2016 Fedora Release Engineering - 0-0.5.gitc121dfe +- https://fedoraproject.org/wiki/Changes/golang1.6 + +* Wed Feb 03 2016 Fedora Release Engineering - 0-0.4.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Aug 07 2015 Fridolin Pokorny - 0-0.3.gitc121dfe +- Update spec file to spec-2.0 + resolves: #1250495 + +* Wed Jun 17 2015 Fedora Release Engineering - 0-0.2.gitc121dfe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Sep 19 2014 Lokesh Mandvekar - 0-0.1.gitc121dfe +- main package doesn't need arch specification, only devel package generated +- comment out test + +* Thu Jul 17 2014 Colin Walters - 0-0.0gitc121dfe +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b117a60 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (go-httpclient-31f0106b4474f14bc441575c19d3a5fa21aa1f6c.tar.gz) = e14ee59ae87563893ff4f112b5a5d3cb1ac241e65f9eecd3ec2fbf36c255779d7671cf6325db3f22d81ad00d966ba4ec9442a711a7bcc2e4f268730f32c51932