## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global goipath gitlab.com/shackra/goimapnotify %global forgeurl https://gitlab.com/shackra/goimapnotify Version: 2.4~rc3 %global tag 2.4-rc3 %gometa -f %global common_description %{expand: Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version.} %global golicenses LICENSE %global godocs CHANGELOG.rst README.md Name: goimapnotify Release: %autorelease Summary: Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version License: GPL-3.0-only URL: %{gourl} Source0: %{gosource} Source1: %{forgeurl}/-/raw/%{tag}/goimapnotify@.service BuildRequires: systemd-rpm-macros %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/goimapnotify %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_userunitdir} install -m 0644 -vp %{SOURCE1} %{buildroot}%{_userunitdir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CHANGELOG.rst README.md %{_bindir}/* %{_userunitdir}/goimapnotify@.service %gopkgfiles %changelog * Sat May 06 2023 Juraj Marcin - 2.4~rc3-2 - Add service file * Thu May 04 2023 Juraj Marcin - 2.4~rc3-1 - Add goimapnotify spec file