# Generated by go2rpm 1 %bcond_without check # https://github.com/skip2/go-qrcode %global goipath github.com/skip2/go-qrcode %global commit dc11ecdae0a9889dc81a343585516404e8dc6ead %gometa %global common_description %{expand: Package qrcode implements a QR Code encoder. Build Status A QR Code is a matrix (two-dimensional) barcode. Arbitrary content may be encoded, with URLs being a popular choice :) Each QR Code contains error recovery information to aid reading damaged or obscured codes. There are four levels of error recovery: Low, medium, high and highest. QR Codes with a higher recovery level are more robust to damage, at the cost of being physically larger.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: QR Code encoder (Go) License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %build for cmd in qrcode; 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}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sat Oct 05 05:52:47 EEST 2019 Artem Polishchuk - 0-0.1.20191005gitdc11ecd - Initial package