## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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.8.2 %bcond_without check # https://github.com/sibprogrammer/xq %global goipath github.com/sibprogrammer/xq Version: 1.1.2 %gometa -f %global goname xq %global common_description %{expand: Command-line XML and HTML beautifier and content extractor, similar to jq.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Command-line XML and HTML beautifier and content extractor License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/xq %{goipath}/ %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ mv ./docs/%{name}.man ./docs/%{name}.1 install -Dpm 0644 ./docs/%{name}.1 -t %{buildroot}%{_mandir}/man1/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %{_mandir}/man1/%{name}.1* %gopkgfiles %changelog * Sun Jan 15 2023 Mikel Olasagasti Uranga 1.1.2-1 - Update to 1.1.2 * Tue Dec 20 2022 Mikel Olasagasti Uranga 1.1.1-1 - Update to 1.1.1 * Mon Nov 28 2022 Mikel Olasagasti Uranga 1.1.0-1 - Update to 1.1.0 - Closes rhbz#2149052 * Mon Nov 07 2022 Mikel Olasagasti Uranga 1.0.0-1 - Update to 1.0.0 * Mon Aug 29 2022 Mikel Olasagasti Uranga 0.0.8-2 - Use correct package name * Mon Aug 29 2022 Mikel Olasagasti Uranga 0.0.8-1 - Update to 0.0.8 - Closes rhbz#2122039 * Sat Jul 23 2022 Fedora Release Engineering 0.0.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 0.0.7-5 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin 0.0.7-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Apr 16 2022 Fabio Alessandro Locati 0.0.7-3 - Rebuilt for CVE-2022-27191 * Sat Jan 22 2022 Fedora Release Engineering 0.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 09 2022 Mikel Olasagasti Uranga 0.0.7-1 - Update to 0.0.7 - Closes rhbz#2038698 * Mon Nov 22 2021 Mikel Olasagasti Uranga 0.0.6-1 - Initial import BZ#2023085