# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/zmap/zlint %global goipath github.com/zmap/zlint/v3 %global forgeurl https://github.com/zmap/zlint Version: 3.5.0 %gometa %global common_description %{expand: ZLint is a X.509 certificate linter written in Go that checks for consistency with standards (e.g. RFC 5280) and other relevant PKI requirements (e.g. CA/Browser Forum Baseline Requirements).} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: X.509 Certificate Linter focused on Web PKI standards and requirements License: Apache-2.0 URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-github-zmap-zlint-3 = %{version}-%{release} Obsoletes: golang-github-zmap-zlint-3 < 3.5.0-3 %global godevelheader %{expand: Provides: golang-github-zmap-zlint-3-devel = %{version}-%{release} Obsoletes: golang-github-zmap-zlint-3-devel < 3.5.0-3} BuildRequires: help2man %description %{common_description} %gopkg %prep %goprep %autopatch -p1 mv v3/* ./. %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 help2man --no-discard-stderr --no-info --version-string=%{version} %{buildroot}%{_bindir}/zlint > %{buildroot}%{_mandir}/man1/zlint.1 help2man --no-discard-stderr --no-info --version-string=%{version} %{buildroot}%{_bindir}/zlint-gtld-update > %{buildroot}%{_mandir}/man1/zlint-gtld-update.1 %if %{with check} %check %gocheck -t cmd %endif %files %license LICENSE %doc CONTRIBUTING.md README.md %{_bindir}/zlint %{_bindir}/zlint-gtld-update %{_bindir}/genTestCerts %{_mandir}/man1/zlint.1* %{_mandir}/man1/zlint-gtld-update.1* %gopkgfiles %changelog %autochangelog