Blame golang-github-hashicorp-syslog.spec

cb3c02b
# Generated by go2rpm
cb3c02b
%bcond_without check
cb3c02b
cb3c02b
# https://github.com/hashicorp/go-syslog
cb3c02b
%global goipath         github.com/hashicorp/go-syslog
cb3c02b
Version:                1.0.0
cb3c02b
cb3c02b
%gometa
cb3c02b
274b15f
# Remove in F33:
274b15f
%global godevelheader %{expand:
274b15f
Obsoletes:      golang-github-hashicorp-go-syslog-devel < 0-0.16
274b15f
}
274b15f
cb3c02b
%global common_description %{expand:
cb3c02b
This package provides a very simple gsyslog package. The point of this package
cb3c02b
is to allow safe importing of syslog without introducing cross-compilation
cb3c02b
issues. The stdlib log/syslog cannot be imported on Windows systems, and without
cb3c02b
conditional compilation this adds complications.
cb3c02b
cb3c02b
Instead, gsyslog provides a very simple wrapper around log/syslog but returns a
cb3c02b
runtime error if attempting to initialize on a non Linux or OSX system.}
cb3c02b
cb3c02b
%global golicenses      LICENSE
cb3c02b
%global godocs          README.md
cb3c02b
cb3c02b
%global gosupfiles glide.lock glide.yaml
cb3c02b
cb3c02b
Name:           %{goname}
2fb8b33
Release:        6%{?dist}
cb3c02b
Summary:        Golang syslog wrapper, cross-compile friendly
cb3c02b
cb3c02b
License:        MIT
cb3c02b
URL:            %{gourl}
cb3c02b
Source0:        %{gosource}
cb3c02b
Source1:        glide.yaml
cb3c02b
Source2:        glide.lock
cb3c02b
cb3c02b
%description
cb3c02b
%{common_description}
cb3c02b
cb3c02b
%gopkg
cb3c02b
cb3c02b
%prep
cb3c02b
%goprep
cb3c02b
cp %{S:1} %{S:2} .
cb3c02b
cb3c02b
%install
cb3c02b
%gopkginstall
cb3c02b
cb3c02b
# Remove in F33
cb3c02b
# Remove erroneous glide.lock folder
cb3c02b
%pretrans devel -p <lua>
cb3c02b
path = "%{gopath}/src/%{goipath}/glide.lock"
cb3c02b
st = posix.stat(path)
cb3c02b
if st and st.type == "directory" then
cb3c02b
  os.remove(path)
cb3c02b
end
cb3c02b
cb3c02b
%if %{with check}
cb3c02b
%check
cb3c02b
%gocheck
cb3c02b
%endif
cb3c02b
cb3c02b
%gopkgfiles
cb3c02b
cb3c02b
%changelog
2fb8b33
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
2fb8b33
- Second attempt - Rebuilt for
2fb8b33
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2fb8b33
22397ff
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
22397ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
22397ff
7ede5f7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
7ede5f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7ede5f7
25824f4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org>
25824f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
25824f4
274b15f
* Fri Jul 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-2
274b15f
- Add Obsoletes for old name
274b15f
cb3c02b
* Sun Apr 21 16:50:58 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1
cb3c02b
- Release 1.0.0
cb3c02b
cb3c02b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.15.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cb3c02b
cb3c02b
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.14.git42a2b57
cb3c02b
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
cb3c02b
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
cb3c02b
cb3c02b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cb3c02b
cb3c02b
* Tue Jun 12 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.12.git42a2b57
cb3c02b
- Upload glide files
cb3c02b
cb3c02b
* Wed Feb 28 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.11.20151218git42a2b57
cb3c02b
- Autogenerate some parts using the new macros
cb3c02b
cb3c02b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cb3c02b
cb3c02b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cb3c02b
cb3c02b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cb3c02b
cb3c02b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cb3c02b
cb3c02b
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.git42a2b57
cb3c02b
- https://fedoraproject.org/wiki/Changes/golang1.7
cb3c02b
cb3c02b
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.5.git42a2b57
cb3c02b
- https://fedoraproject.org/wiki/Changes/golang1.6
cb3c02b
cb3c02b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.git42a2b57
cb3c02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb3c02b
cb3c02b
* Sat Sep 12 2015 jchaloup <jchaloup@redhat.com> - 0-0.3.git42a2b57
cb3c02b
- Update to spec-2.1
cb3c02b
  related: #1250467
cb3c02b
cb3c02b
* Wed Aug 05 2015 Fridolin Pokorny <fpokorny@redhat.com> - 0-0.2.git42a2b57
cb3c02b
- Update spec file to spec-2.0
cb3c02b
  resolves: #1250467
cb3c02b
cb3c02b
* Wed Apr 15 2015 jchaloup <jchaloup@redhat.com> - 0-0.1.git42a2b57
cb3c02b
- First package for Fedora
cb3c02b
  resolves: #1212047