## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/katalix/go-l2tp %global goipath github.com/katalix/go-l2tp Version: 0.1.8 %gometa -f %global common_description %{expand: Go library for building L2TP applications on Linux systems.} %global golicenses LICENSE %global godocs doc CHANGELOG.md README.md Name: %{goname} Release: %autorelease Summary: Go library for building L2TP applications on Linux systems License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %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}%{_sbindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_sbindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man8 install -m 0644 -vp %{_builddir}/go-l2tp-%{version}/doc/kl2tpd.8 %{buildroot}%{_mandir}/man8 install -m 0644 -vp %{_builddir}/go-l2tp-%{version}/doc/kpppoed.8 %{buildroot}%{_mandir}/man8 install -m 0644 -vp %{_builddir}/go-l2tp-%{version}/doc/ql2tpd.8 %{buildroot}%{_mandir}/man8 install -m 0755 -vd %{buildroot}%{_mandir}/man5 install -m 0644 -vp %{_builddir}/go-l2tp-%{version}/doc/kl2tpd.toml.5 %{buildroot}%{_mandir}/man5 install -m 0644 -vp %{_builddir}/go-l2tp-%{version}/doc/ql2tpd.toml.5 %{buildroot}%{_mandir}/man5 %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CHANGELOG.md README.md %{_sbindir}/kl2tpd %{_sbindir}/kpppoed %{_sbindir}/ql2tpd %{_mandir}/man{8,5}/*.{8,5}* %gopkgfiles %changelog ## START: Generated by rpmautospec * Tue May 21 2024 John Doe - 0.1.8-1 - Uncommitted changes ## END: Generated by rpmautospec