# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/katalix/go-l2tp %global goipath github.com/katalix/go-l2tp Version: 0.1.8 %gometa -L -f Name: go-l2tp Release: %autorelease Summary: Go library for building L2TP applications on Linux systems # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools Provides: golang-github-katalix-l2tp = %{version}-%{release} Obsoletes: golang-github-katalix-l2tp < 0.1.8-5 %description Go library for building L2TP applications on Linux systems. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_sbindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_sbindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man8 install -m 0644 -vp doc/kl2tpd.8 %{buildroot}%{_mandir}/man8 install -m 0644 -vp doc/kpppoed.8 %{buildroot}%{_mandir}/man8 install -m 0644 -vp doc/ql2tpd.8 %{buildroot}%{_mandir}/man8 install -m 0755 -vd %{buildroot}%{_mandir}/man5 install -m 0644 -vp doc/kl2tpd.toml.5 %{buildroot}%{_mandir}/man5 install -m 0644 -vp doc/ql2tpd.toml.5 %{buildroot}%{_mandir}/man5 %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck2 %endif %files -f %{go_vendor_license_filelist} %doc doc CHANGELOG.md README.md %{_sbindir}/kl2tpd %{_sbindir}/kpppoed %{_sbindir}/ql2tpd %{_mandir}/man5/kl2tpd.toml.5* %{_mandir}/man5/ql2tpd.toml.5* %{_mandir}/man8/kl2tpd.8* %{_mandir}/man8/kpppoed.8* %{_mandir}/man8/ql2tpd.8* %changelog %autochangelog