|
| 1 | +Vendor: Microsoft Corporation |
| 2 | +Distribution: Azure Linux |
| 3 | +Name: s-nail |
| 4 | +Version: 14.9.25 |
| 5 | +Release: 2%{?dist} |
| 6 | +Summary: Environment for sending and receiving mail, providing functionality of POSIX mailx |
| 7 | + |
| 8 | +# Everything is ISC except parts coming from the original Heirloom mailx which are BSD |
| 9 | +License: ISC AND BSD-4-Clause-UC AND BSD-3-Clause AND HPND-sell-variant |
| 10 | +URL: https://www.sdaoden.eu/code.html#s-nail |
| 11 | +Source0: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz |
| 12 | +Source1: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz.asc |
| 13 | +# https://ftp.sdaoden.eu/steffen.asc |
| 14 | +Source2: steffen.asc |
| 15 | + |
| 16 | +# https://bugzilla.redhat.com/show_bug.cgi?id=2171723 |
| 17 | +Patch0: s-nail-makeflags.patch |
| 18 | +Patch1: s-nail-14.9.25-test-sha256.patch |
| 19 | + |
| 20 | +BuildRequires: make |
| 21 | +BuildRequires: gnupg2 |
| 22 | +BuildRequires: gcc |
| 23 | +BuildRequires: openssl |
| 24 | +BuildRequires: openssl-devel |
| 25 | +BuildRequires: krb5-devel |
| 26 | +BuildRequires: libidn2-devel |
| 27 | +BuildRequires: ncurses-devel |
| 28 | + |
| 29 | +Requires(pre): %{_sbindir}/update-alternatives |
| 30 | + |
| 31 | +Provides: mailx = %{version}-%{release} |
| 32 | +Obsoletes: mailx < 12.6 |
| 33 | + |
| 34 | +# For backwards compatibility |
| 35 | +Provides: /bin/mail |
| 36 | +Provides: /bin/mailx |
| 37 | + |
| 38 | + |
| 39 | +%description |
| 40 | +S-nail provides a simple and friendly environment for sending |
| 41 | +and receiving mail. It is intended to provide the functionality |
| 42 | +of the POSIX mailx(1) command, but is MIME capable and optionally offers |
| 43 | +extensions for line editing, S/MIME, SMTP and POP3, among others. |
| 44 | +S-nail divides incoming mail into its constituent messages and allows |
| 45 | +the user to deal with them in any order. It offers many commands |
| 46 | +and internal variables for manipulating messages and sending mail. |
| 47 | +It provides the user simple editing capabilities to ease the composition |
| 48 | +of outgoing messages, and increasingly powerful and reliable |
| 49 | +non-interactive scripting capabilities. |
| 50 | + |
| 51 | + |
| 52 | +%prep |
| 53 | +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' |
| 54 | + |
| 55 | +%autosetup -p1 |
| 56 | + |
| 57 | +cat <<EOF >>nail.rc |
| 58 | + |
| 59 | +# Fedora-specific defaults |
| 60 | +set bsdcompat |
| 61 | +set noemptystart |
| 62 | +set prompt='& ' |
| 63 | +EOF |
| 64 | + |
| 65 | + |
| 66 | +%build |
| 67 | +%make_build \ |
| 68 | + CFLAGS="%{build_cflags}" \ |
| 69 | + LDFLAGS="%{build_ldflags}" \ |
| 70 | + OPT_AUTOCC=no \ |
| 71 | + OPT_DEBUG=yes \ |
| 72 | + OPT_NOMEMDBG=yes \ |
| 73 | + OPT_DOTLOCK=no \ |
| 74 | + VAL_PREFIX=%{_prefix} \ |
| 75 | + VAL_SYSCONFDIR=%{_sysconfdir} \ |
| 76 | + VAL_MAIL=%{_localstatedir}/mail \ |
| 77 | + config |
| 78 | + |
| 79 | +%make_build build |
| 80 | + |
| 81 | + |
| 82 | +%install |
| 83 | +%make_install |
| 84 | + |
| 85 | +# s-nail binary is installed with 0555 permissions, fix that |
| 86 | +chmod 0755 %{buildroot}%{_bindir}/%{name} |
| 87 | + |
| 88 | +# compatibility symlinks |
| 89 | +for f in Mail mail mailx nail; do |
| 90 | + ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/$f |
| 91 | + ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/$f.1 |
| 92 | +done |
| 93 | + |
| 94 | + |
| 95 | +%check |
| 96 | +%if %{defined rhel} |
| 97 | +# SHA-1 is disabled as insecure by RHEL default policies, but used in tests |
| 98 | +export OPENSSL_ENABLE_SHA1_SIGNATURES=yes |
| 99 | +%endif |
| 100 | +make test |
| 101 | + |
| 102 | + |
| 103 | +%pre |
| 104 | +%{_sbindir}/update-alternatives --remove-all mailx >/dev/null 2>&1 || : |
| 105 | + |
| 106 | + |
| 107 | +%files |
| 108 | +%license COPYING |
| 109 | +%doc README |
| 110 | +%{_bindir}/Mail |
| 111 | +%{_bindir}/mail |
| 112 | +%{_bindir}/nail |
| 113 | +%{_bindir}/mailx |
| 114 | +%{_bindir}/%{name} |
| 115 | +%config(noreplace) %{_sysconfdir}/%{name}.rc |
| 116 | +%{_mandir}/man1/Mail.1* |
| 117 | +%{_mandir}/man1/mail.1* |
| 118 | +%{_mandir}/man1/nail.1* |
| 119 | +%{_mandir}/man1/mailx.1* |
| 120 | +%{_mandir}/man1/%{name}.1* |
| 121 | + |
| 122 | + |
| 123 | +%changelog |
| 124 | +* Tue Apr 29 2025 Archana Shettigar <v-shettigara@microsoft.com> - 14.9.25-2 |
| 125 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
| 126 | +- License verified |
| 127 | + |
| 128 | +* Thu Aug 01 2024 Tomas Korbar <tkorbar@redhat.com> - 14.9.25-1 |
| 129 | +- Rebase to 14.9.25 |
| 130 | +- Resolves: rhbz#2301265 |
| 131 | +- Resolves: rhbz#2295570 |
| 132 | + |
| 133 | +* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-11 |
| 134 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 135 | + |
| 136 | +* Tue Jun 04 2024 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-10 |
| 137 | +- Remove RSA-MD from License tag |
| 138 | + |
| 139 | +* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-9 |
| 140 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 141 | + |
| 142 | +* Mon Dec 11 2023 Nikola Forró <nforro@redhat.com> - 14.9.24-8 |
| 143 | +- Replace and obsolete mailx |
| 144 | + |
| 145 | +* Wed Nov 01 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-7 |
| 146 | +- Add licenses to fully conform to SPDX |
| 147 | + |
| 148 | +* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-6 |
| 149 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 150 | + |
| 151 | +* Fri Apr 21 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-5 |
| 152 | +- Fix s-nail installation without docs |
| 153 | +- Resolves: rhbz#2188620 |
| 154 | + |
| 155 | +* Thu Apr 13 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-4 |
| 156 | +- Fix s-nail makeflags |
| 157 | +- Resolves: rhbz#2171723 |
| 158 | + |
| 159 | +* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-3 |
| 160 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 161 | + |
| 162 | +* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-2 |
| 163 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 164 | + |
| 165 | +* Sun Mar 27 2022 Nikola Forró <nforro@redhat.com> - 14.9.24-1 |
| 166 | +- New upstream release 14.9.24 |
| 167 | + resolves: #2068768 |
| 168 | + |
| 169 | +* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.23-2 |
| 170 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 171 | + |
| 172 | +* Fri Nov 12 2021 Nikola Forró <nforro@redhat.com> - 14.9.23-1 |
| 173 | +- New upstream release 14.9.23 |
| 174 | + resolves: #2022552 |
| 175 | + |
| 176 | +* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 14.9.22-6 |
| 177 | +- Rebuilt with OpenSSL 3.0.0 |
| 178 | + |
| 179 | +* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.22-5 |
| 180 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 181 | + |
| 182 | +* Fri May 07 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-4 |
| 183 | +- Provide /bin/mail{,x} for backwards compatibility |
| 184 | + |
| 185 | +* Wed Apr 14 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-3 |
| 186 | +- Remove globs in %%files |
| 187 | + |
| 188 | +* Tue Mar 16 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-2 |
| 189 | +- Fix alternatives |
| 190 | + related: #1897928 |
| 191 | + |
| 192 | +* Wed Feb 24 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-1 |
| 193 | +- New upstream release 14.9.22 |
| 194 | + resolves: #1932122 |
| 195 | + |
| 196 | +* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.21-2 |
| 197 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 198 | + |
| 199 | +* Fri Jan 22 2021 Nikola Forró <nforro@redhat.com> - 14.9.21-1 |
| 200 | +- New upstream release 14.9.21 |
| 201 | + resolves: #1919030 |
| 202 | + |
| 203 | +* Mon Dec 14 2020 Nikola Forró <nforro@redhat.com> - 14.9.20-1 |
| 204 | +- New upstream release 14.9.20 |
| 205 | + resolves: #1907112 |
| 206 | + |
| 207 | +* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.19-2 |
| 208 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
| 209 | + |
| 210 | +* Mon Apr 27 2020 Nikola Forró <nforro@redhat.com> - 14.9.19-1 |
| 211 | +- New upstream release 14.9.19 |
| 212 | +- Adjust default configuration to be closer to Heirloom mailx |
| 213 | +- Provide alternativized binaries and man pages |
| 214 | + resolves: #1827969 |
| 215 | + |
| 216 | +* Thu Apr 23 2020 Nikola Forró <nforro@redhat.com> - 14.9.18-1 |
| 217 | +- Update to the latest upstream release |
| 218 | + |
| 219 | +* Thu Apr 09 2020 Nikola Forró <nforro@redhat.com> - 14.9.17-1 |
| 220 | +- Initial package |
0 commit comments