diff --git a/README.md b/README.md index 0bc6aeb..200364d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # s-nail +Environment for sending and receiving mail. + diff --git a/s-nail.spec b/s-nail.spec new file mode 100644 index 0000000..67ea58a --- /dev/null +++ b/s-nail.spec @@ -0,0 +1,71 @@ +Name: s-nail +Version: 14.9.24 +Release: 1mamba +Summary: Environment for sending and receiving mail +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.sdaoden.eu/code.html#s-nail +Source: https://ftp.sdaoden.eu/s-nail-%{version}.tar.xz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libe2fs-devel +BuildRequires: libidn2-devel +BuildRequires: libkrb5-devel +BuildRequires: libncurses-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +Provides: mailx +Obsoletes: mailx <= 12.5-3mamba + +%description +Environment for sending and receiving mail. + +%debug_package + +%prep +%setup -q + +%build +%make \ + VAL_PREFIX=%{_prefix} \ + VAL_SYSCONFDIR=%{_sysconfdir} \ + VAL_LIBEXECDIR=%{_libdir} \ + VAL_MAIL=%{_localstatedir}/mail \ + OPT_AUTOCC=no \ + OPT_DEBUG=yes \ + OPT_NOMEMDBG=yes \ + OPT_DOTLOCK=no \ + config + +%make build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# compatibility symlinks +for f in mailx nail; do + ln -s %{name} %{buildroot}%{_bindir}/$f + ln -s %{name}.1 %{buildroot}%{_mandir}/man1/$f.1 +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sysconfdir}/s-nail.rc +%{_bindir}/s-nail +%{_bindir}/mailx +%{_bindir}/nail +%{_mandir}/man1/mailx.1* +%{_mandir}/man1/nail.1* +%{_mandir}/man1/s-nail.1* +%doc COPYING THANKS + +%changelog +* Wed Jan 17 2024 Silvan Calarco 14.9.24-1mamba +- package created using the webbuild interface