Blame golang-github-mreiferson-httpclient.spec

1a8456c
# Generated by go2rpm
1a8456c
%bcond_without check
1a8456c
1a8456c
# https://github.com/mreiferson/go-httpclient
1a8456c
%global goipath         github.com/mreiferson/go-httpclient
1a8456c
%global commit          31f0106b4474f14bc441575c19d3a5fa21aa1f6c
1a8456c
1a8456c
%gometa
1a8456c
1a8456c
%global common_description %{expand:
1a8456c
Go-httpclient provides an HTTP Transport that implements the RoundTripper
1a8456c
interface and can be used as a built in replacement for the standard library's,
1a8456c
providing:
1a8456c
1a8456c
 - connection timeouts
1a8456c
 - request timeouts
1a8456c
1a8456c
This is a thin wrapper around http.Transport that sets dial timeouts and uses
1a8456c
Go's internal timer scheduler to call the Go 1.1+ CancelRequest() API.}
1a8456c
1a8456c
%global golicenses      LICENSE
1a8456c
%global godocs          README.md
1a8456c
1a8456c
%global gosupfiles      glide.lock glide.yaml
1a8456c
1a8456c
Name:           %{goname}
1a8456c
Version:        0
1a8456c
Release:        0.15%{?dist}
1a8456c
Summary:        Go HTTP client with timeouts
1a8456c
1a8456c
License:        MIT
1a8456c
URL:            %{gourl}
1a8456c
Source0:        %{gosource}
1a8456c
Source1:        glide.yaml
1a8456c
Source2:        glide.lock
1a8456c
1a8456c
%description
1a8456c
%{common_description}
1a8456c
1a8456c
%gopkg
1a8456c
1a8456c
%prep
1a8456c
%goprep
1a8456c
cp %{S:1} %{S:2} .
1a8456c
1a8456c
%install
1a8456c
%gopkginstall
1a8456c
1a8456c
# Remove in F33
1a8456c
# Remove erroneous glide.lock folder
1a8456c
%pretrans devel -p <lua>
1a8456c
path = "%{gopath}/src/%{goipath}/glide.lock"
1a8456c
st = posix.stat(path)
1a8456c
if st and st.type == "directory" then
1a8456c
  os.remove(path)
1a8456c
end
1a8456c
1a8456c
%if %{with check}
1a8456c
%check
1a8456c
# .: needs network
1a8456c
%gocheck -d .
1a8456c
%endif
1a8456c
1a8456c
%gopkgfiles
1a8456c
1a8456c
%changelog
1a8456c
* Mon Jun 03 19:46:17 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.15.20190703git31f0106
1a8456c
- Bump to commit 31f0106b4474f14bc441575c19d3a5fa21aa1f6c
1a8456c
1a8456c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1a8456c
1a8456c
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.13.gitc121dfe
1a8456c
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
1a8456c
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
1a8456c
1a8456c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.12.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1a8456c
1a8456c
* Sun Jul 08 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.11.gitc121dfe
1a8456c
- Upload glide files
1a8456c
1a8456c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1a8456c
1a8456c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1a8456c
1a8456c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1a8456c
1a8456c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1a8456c
1a8456c
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.gitc121dfe
1a8456c
- https://fedoraproject.org/wiki/Changes/golang1.7
1a8456c
1a8456c
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.5.gitc121dfe
1a8456c
- https://fedoraproject.org/wiki/Changes/golang1.6
1a8456c
1a8456c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a8456c
1a8456c
* Fri Aug 07 2015 Fridolin Pokorny <fpokorny@redhat.com> - 0-0.3.gitc121dfe
1a8456c
- Update spec file to spec-2.0
1a8456c
  resolves: #1250495
1a8456c
1a8456c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.2.gitc121dfe
1a8456c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1a8456c
1a8456c
* Fri Sep 19 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.1.gitc121dfe
1a8456c
- main package doesn't need arch specification, only devel package generated
1a8456c
- comment out test
1a8456c
1a8456c
* Thu Jul 17 2014 Colin Walters <walters@verbum.org> - 0-0.0gitc121dfe
1a8456c
- Initial package