diff --git a/alpine-2.23-gcc10.patch b/alpine-2.23-gcc10.patch new file mode 100644 index 0000000000000000000000000000000000000000..fc72972251a5f7d0ba064791cc5d2896c8f382f8 --- /dev/null +++ b/alpine-2.23-gcc10.patch @@ -0,0 +1,12 @@ +diff -up alpine-2.21/alpine/alpine.c.me alpine-2.21/alpine/alpine.c +diff -up alpine-2.21/pith/smime.c.me alpine-2.21/pith/smime.c +--- alpine-2.21/pith/smime.c.me 2020-02-13 16:54:36.842373446 +0100 ++++ alpine-2.21/pith/smime.c 2020-02-13 17:13:37.930022666 +0100 +@@ -45,6 +45,7 @@ static char rcsid[] = "$Id: smime.c 1176 + #ifdef PASSFILE + #include "../pith/imap.h" + #endif /* PASSFILE */ ++#include "../pith/options.h" + + #include + #include diff --git a/alpine-2.24-useragent.patch b/alpine-2.24-useragent.patch new file mode 100644 index 0000000000000000000000000000000000000000..f68f911200942bc60bb41501aafebab95da40265 --- /dev/null +++ b/alpine-2.24-useragent.patch @@ -0,0 +1,42 @@ +diff --git a/doc/tech-notes/config.html b/doc/tech-notes/config.html +index b935483..751429c 100644 +--- a/doc/tech-notes/config.html ++++ b/doc/tech-notes/config.html +@@ -7695,7 +7695,7 @@ If you'd like to suppress the echoing of the asterisks set this feature. + +
suppress-user-agent-when-sending +
If this feature is set then Alpine will not generate a +-User-Agent header in outgoing messages. ++User-Agent header in outgoing messages. It is set by default. +

+ +

tab-checks-recent +diff --git a/doc/tech-notes/tech-notes.txt b/doc/tech-notes/tech-notes.txt +index 2762c5b..b2d8cdd 100644 +--- a/doc/tech-notes/tech-notes.txt ++++ b/doc/tech-notes/tech-notes.txt +@@ -6629,7 +6629,7 @@ John: on a job well done! + the echoing of the asterisks set this feature. + _suppress-user-agent-when-sending_ + If this feature is set then _Alpine_ will not generate a +- User-Agent header in outgoing messages. ++ User-Agent header in outgoing messages. It is set by default. + _tab-checks-recent_ + In a FOLDER LIST screen, the TAB key usually just changes which + folder is highlighted. If this feature is set, then the TAB key +diff --git a/pith/pine.hlp b/pith/pine.hlp +index 1da108f..3ca4ca8 100644 +--- a/pith/pine.hlp ++++ b/pith/pine.hlp +@@ -34823,7 +34823,7 @@ emit a beep to become silent. +

FEATURE:

+ + If this feature is set then Alpine will not generate a +-User-Agent header in outgoing messages. ++User-Agent header in outgoing messages. It is set by default. +

+

    +
  • Finding more information and requesting help +-- +2.20.1 + diff --git a/alpine-2.25.tar.xz b/alpine-2.25.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..90c0ac287f6cec0de1c57ab65c57d06bcbf1ee32 Binary files /dev/null and b/alpine-2.25.tar.xz differ diff --git a/alpine.spec b/alpine.spec new file mode 100644 index 0000000000000000000000000000000000000000..13be4f67141ed85d7f763004c985b99c1d25e1b6 --- /dev/null +++ b/alpine.spec @@ -0,0 +1,119 @@ +%undefine _hardened_build + +Summary: powerful, easy to use console email client +Name: alpine +Version: 2.25 +Release: 1 + +License: ASL 2.0 +URL: http://alpine.x10host.com/ +Source0: http://alpine.x10host.com/alpine/patches/alpine-%{version}/alpine-%{version}.tar.xz + +Patch1: alpine-2.24-useragent.patch +Patch2: alpine-2.23-gcc10.patch + +# Using "Conflicts" instead of Obsoletes because while alpine is substantially +# compatible with pine the change to Unicode breaks important user +# functionality such as non-ASCII encoded saved passwords. Additionally, there +# are also many patches to pine floating around that for political/technical +# reasons will not be integrated into alpine. (I'd like to stay out of it... +# just search "Mark Crispin maildir" for the gory details.) Since licensing +# prevents a Fedora pine package, I cannot predict what patches users might +# have and so want to warn them instead of automatically replacing their pine +# install with an alpine that could break their configuration. +# I understand this to be a special case of the "Optional Functionality" +Conflicts: pine + +Provides: re-alpine = %{version}-%{release} + +#BuildRequires: automake libtool +BuildRequires: gettext +BuildRequires: hunspell +## passing --with-npa=/usr/bin/inews +#BuildRequires: inews +BuildRequires: krb5-devel +BuildRequires: ncurses-devel +BuildRequires: openldap-devel +BuildRequires: openssl-devel +BuildRequires: pam-devel +BuildRequires: passwd +# passing --with-smtp-msa=/usr/sbin/sendmail instead +#BuildRequires: /usr/sbin/sendmail + +Requires: hunspell +Requires: mailcap +Requires: /usr/sbin/sendmail + +BuildRequires: gcc +BuildRequires: make + +%description +Alpine -- an Alternatively Licensed Program for Internet +News & Email -- is a tool for reading, sending, and managing +electronic messages. Alpine is the successor to Pine and was +developed by Computing & Communications at the University of +Washington. + Though originally designed for inexperienced email users, +Alpine supports many advanced features, and an ever-growing number of +configuration and personal-preference options. +Changes and enhancements over pine: + * Released under the Apache Software License, Version 2.0. + * Internationalization built around new internal Unicode support. + * Ground-up reorganization of source code around new "pith/" core +routine library. + * Ground-up reorganization of build and install procedure based on +GNU Build System's autotools. + + +%prep +%setup -q -n alpine-%{version} +%patch1 -p1 +%patch2 -p1 + +%build +touch imap/ip6 +# --without-tcl disables the TCL-based CGI "Web Alpine" +%configure \ + --enable-debug=no \ + --without-tcl \ + --with-c-client-target=lfd \ + --with-smtp-msa=/usr/sbin/sendmail \ + --with-npa=/usr/bin/inews \ + --with-passfile=.alpine.passfile \ + --with-simple-spellcheck=hunspell \ + --with-interactive-spellcheck=hunspell \ + --with-system-pinerc=%{_sysconfdir}/pine.conf \ + --with-system-fixed-pinerc=%{_sysconfdir}/pine.conf.fixed + +%make_build EXTRACFLAGS="$RPM_OPT_FLAGS" + + +%install +%make_install + +# create/touch %ghost'd files +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} +touch $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf +touch $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf.fixed + + +%files +%doc README +%license LICENSE +%ghost %config(noreplace) %{_sysconfdir}/pine.conf +%ghost %config(noreplace) %{_sysconfdir}/pine.conf.fixed +%{_bindir}/alpine +%{_bindir}/pico +%{_bindir}/pilot +%{_bindir}/rpload +%{_bindir}/rpdump +%{_mandir}/man1/alpine.1* +%{_mandir}/man1/pico.1* +%{_mandir}/man1/pilot.1* +%{_mandir}/man1/rpload.1* +%{_mandir}/man1/rpdump.1* + + +%changelog +* Thu Jun 9 2022 zhangfan - 2.25-1 +- Package init