## 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.1 %bcond_without check # https://github.com/pelletier/go-toml %global goipath github.com/pelletier/go-toml Version: 1.9.5 %gometa %global common_description %{expand: Go-toml provides the following features for using data parsed from TOML documents: - Load TOML documents from files and string data - Easily navigate TOML structure using Tree - Mashaling and unmarshaling to and from data structures - Line & column position data for all parsed elements - Query support similar to JSON-Path - Syntax errors contain line and column numbers} %global golicenses LICENSE %global godocs SECURITY.md CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: Go library for the TOML file format License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/jsontoml cmd/tomljson cmd/tomll; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/{jsontoml,tomljson,tomll} %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc SECURITY.md CONTRIBUTING.md README.md %{_bindir}/{jsontoml,tomljson,tomll} %gopkgfiles %changelog * Sun Sep 25 2022 Robert-André Mauchin 1.9.5-1 - Update to 1.9.5 * Thu Jul 21 2022 Fedora Release Engineering 1.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 1.9.4-3 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin 1.9.4-2 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Wed Jan 26 2022 Maxwell G 1.9.4-1 - Update to 1.9.4. Fixes rhbz#1946422. * Thu Jan 20 2022 Fedora Release Engineering - 1.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 21 10:53:30 CET 2020 Robert-André Mauchin - 1.8.1-1 - Update to 1.8.1 - Close: rhbz#1878457 * Thu Jul 30 21:04:59 CEST 2020 Robert-André Mauchin - 1.8.0-1 - Update to 1.8.0 * Mon Jul 27 2020 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 17 2020 Elliott Sales de Andrade - 1.6.0-1 - Update to latest version * Wed Jan 29 2020 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 05 2019 Elliott Sales de Andrade - 1.4.0-2 - Add Obsoletes for old name * Fri Apr 26 12:23:07 CEST 2019 Robert-André Mauchin - 1.4.0-1 - Release 1.4.0 * Sat Apr 06 14:00:36 CEST 2019 Robert-André Mauchin - 1.3.0-1 - Release 1.3.0 (#1695289) * Tue Feb 05 2019 Elliott Sales de Andrade - 1.2.0-1 - Update to latest version * Fri Feb 01 2019 Fedora Release Engineering - Forge-specific packaging variables - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 1.0.0-0.8 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - Forge-specific packaging variables - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 20 2018 Jan Chaloupka - 1.0.0-0.6.gitb8b5e76 - Upload glide files * Sun Mar 18 2018 Jan Chaloupka - 1.0.0-0.5.gitb8b5e76 - Bump to b8b5e7696574464b2f9bf303a7b37781bb52889f related: #1464882 * Wed Feb 07 2018 Fedora Release Engineering - 1.0.0-0.4.git5ccdfb1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 1.0.0-0.3.git5ccdfb1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.0-0.2.git5ccdfb1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 26 2017 Jan Chaloupka - 1.0.0-0.1.git5ccdfb1 - Update to v1.0.0 resolves: #1464882 * Fri Feb 10 2017 Fedora Release Engineering - 0.3.5-0.2.git31055c2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Oct 20 2016 jchaloup - 0-0.1.git31055c2 - First package for Fedora resolves: #1387203