# Generated by go2rpm 1.6.0 # https://github.com/jaytaylor/html2text/issues/53 %bcond_with check # https://github.com/jaytaylor/html2text %global goipath jaytaylor.com/html2text %global forgeurl https://github.com/jaytaylor/html2text %global commit bc68cce691ba2dac2abfddc107f7f92d4615bd06 %gometa %global goaltipaths github.com/jaytaylor/html2text %global common_description %{expand: Golang HTML to plaintext conversion library.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: Golang HTML to plaintext conversion library License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/olekukonko/tablewriter) BuildRequires: golang(github.com/ssor/bom) BuildRequires: golang(golang.org/x/net/html) BuildRequires: golang(golang.org/x/net/html/atom) %description %{common_description} %gopkg %prep %goprep %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}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog