Blame golang-github-zmap-zlint.spec

cb00081
# Generated by go2rpm 1
cb00081
%bcond_without check
cb00081
cb00081
# https://github.com/zmap/zlint
cb00081
%global goipath         github.com/zmap/zlint
b0f0a3d
Version:                1.1.0
cb00081
cb00081
%gometa
cb00081
cb00081
%global common_description %{expand:
cb00081
ZLint is a X.509 certificate linter written in Go that checks for consistency
cb00081
with RFC 5280 and the CA/Browser Forum Baseline Requirements (v.1.4.8).}
cb00081
cb00081
%global golicenses      LICENSE
cb00081
%global godocs          README.md
cb00081
cb00081
Name:           %{goname}
b0f0a3d
Epoch:          1
162d949
Release:        1%{?dist}
cb00081
Summary:        X.509 Certificate Linter based on CA/B Forum Baseline Requirements and RFC 5280
cb00081
cb00081
# Upstream license specification: Apache-2.0
cb00081
License:        ASL 2.0
cb00081
URL:            %{gourl}
cb00081
Source0:        %{gosource}
cb00081
cb00081
BuildRequires:  golang(github.com/sirupsen/logrus)
cb00081
BuildRequires:  golang(github.com/weppos/publicsuffix-go/publicsuffix)
cb00081
BuildRequires:  golang(github.com/zmap/zcrypto/util)
cb00081
BuildRequires:  golang(github.com/zmap/zcrypto/x509)
cb00081
BuildRequires:  golang(github.com/zmap/zcrypto/x509/ct)
cb00081
BuildRequires:  golang(github.com/zmap/zcrypto/x509/pkix)
cb00081
BuildRequires:  golang(golang.org/x/crypto/cryptobyte)
cb00081
BuildRequires:  golang(golang.org/x/crypto/cryptobyte/asn1)
cb00081
BuildRequires:  golang(golang.org/x/net/idna)
cb00081
BuildRequires:  golang(golang.org/x/text/unicode/norm)
cb00081
BuildRequires:  help2man
cb00081
cb00081
%description
cb00081
%{common_description}
cb00081
cb00081
%gopkg
cb00081
cb00081
%prep
cb00081
%goprep
cb00081
cb00081
%build
b0f0a3d
for cmd in cmd/* ; do
cb00081
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
cb00081
done
cb00081
cb00081
%install
cb00081
%gopkginstall
cb00081
install -m 0755 -vd                     %{buildroot}%{_bindir}
cb00081
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
cb00081
install -m 0755 -vd                     %{buildroot}%{_mandir}/man1
cb00081
help2man --no-discard-stderr --no-info --version-string=%{version} %{buildroot}%{_bindir}/zlint > %{buildroot}%{_mandir}/man1/zlint.1
cb00081
help2man --no-discard-stderr --no-info --version-string=%{version} %{buildroot}%{_bindir}/zlint-gtld-update > %{buildroot}%{_mandir}/man1/zlint-gtld-update.1
cb00081
cb00081
%if %{with check}
cb00081
%check
48f1ac4
# https://github.com/zmap/zlint/issues/461
b0f0a3d
%gocheck -d lints
cb00081
%endif
cb00081
cb00081
%files
cb00081
%license LICENSE
cb00081
%doc README.md
cb00081
%{_bindir}/*
cb00081
%{_mandir}/man1/zlint.1*
cb00081
%{_mandir}/man1/zlint-gtld-update.1*
cb00081
cb00081
%gopkgfiles
cb00081
cb00081
%changelog
b0f0a3d
* Thu Aug 06 14:49:06 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1:1.1.0-1
b0f0a3d
- v1 package: downgrade to to 1.1.0
b0f0a3d
162d949
* Tue Aug 04 22:24:53 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.0-1
162d949
- Update to 2.1.0
162d949
1c358ff
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
1c358ff
- Second attempt - Rebuilt for
1c358ff
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c358ff
343b896
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
343b896
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
343b896
ad2e37e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
ad2e37e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ad2e37e
cb00081
* Thu Aug 01 15:44:20 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190815git9971d62
cb00081
- Initial package