## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease %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.15.0 %bcond check 1 # https://git.sr.ht/~rockorager/mjmap %global goipath git.sr.ht/~rockorager/mjmap %global version0 1.0.1 %global tag v%{version0} %gometa -L -f %global common_description %{expand: mjmap uses the JMAP EmailSubmission resource to send email. Emails are uploaded to the JMAP server over https. Initially they are put in your drafts folder with the draft flag. On a successful send, the emails are moved to your sent folder and the draft flag is removed.} Name: mjmap Version: %{forgeversion} Release: %{autorelease} Summary: sendmail compatible JMAP client # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: scdoc %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build GO_LDFLAGS="-X main.Version=%{tag}-%{release} -X main.Date=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d)" %gobuild -o %{gobuilddir}/bin/mjmap %{goipath} scdoc < mjmap.1.scd > mjmap.1 %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 install -m 0644 -vp mjmap.1 %{buildroot}%{_mandir}/man1/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/mjmap %{_mandir}/man1/mjmap.1.* %changelog * Sun Mar 09 2025 Robin Jarry - 1.0.1-1 - init