## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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.6.0 %bcond_without check # https://github.com/pgaskin/koboutils %global goipath github.com/pgaskin/koboutils Version: 2.1.1 %gometa %global common_description %{expand: Small utilities for doing stuff with Kobo eReaders.} %global golicenses LICENSE.md %global godocs README.md kobo-find.md kobo-versionextract.md Name: %{goname} Release: %autorelease Summary: Small utilities for doing stuff with Kobo eReaders License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %package -n koboutils Summary: %{summary} %description -n koboutils %{common_description} %gopkg %prep %goprep for util in kobo-find kobo-versionextract; do mv "${util}/README.md" "${util}.md" done %generate_buildrequires %go_generate_buildrequires %build for cmd in kobo-versionextract kobo-find kobo-info; 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 -n koboutils %license LICENSE.md %doc README.md kobo-find.md kobo-versionextract.md %{_bindir}/* %gopkgfiles %changelog * Wed Jan 24 2024 Fedora Release Engineering - 2.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 2.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 2.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Davide Cavalca - 2.1.1-1 - Initial import; Fixes: RHBZ#2106190