0719b59
# Fedora review: http://bugzilla.redhat.com/249365
0719b59
Rex Dieter f9d711a
# crasher workaround, http://bugzilla.redhat.com/1282092
Rex Dieter f9d711a
%undefine _hardened_build
Rex Dieter f9d711a
e9f5124
Summary: powerful, easy to use console email client
0719b59
Name: alpine
82aa483
Version: 2.26
b1e9f3f
Release: 2%{?dist}
0719b59
948ae01
License: ASL 2.0
16927c9
URL:     http://alpine.x10host.com/
16927c9
Source0: http://alpine.x10host.com/alpine/patches/alpine-%{version}/alpine-%{version}.tar.xz
Rex Dieter d558dde
Source1: README.fedora
0719b59
76618bc
Patch1: alpine-2.24-useragent.patch
c54a245
Patch2: alpine-2.23-gcc10.patch
43f65ee
0719b59
# Using "Conflicts" instead of Obsoletes because while alpine is substantially
0719b59
# compatible with pine the change to Unicode breaks important user
0719b59
# functionality such as non-ASCII encoded saved passwords. Additionally, there
0719b59
# are also many patches to pine floating around that for political/technical
0719b59
# reasons will not be integrated into alpine. (I'd like to stay out of it...
0719b59
# just search "Mark Crispin maildir" for the gory details.) Since licensing
0719b59
# prevents a Fedora pine package, I cannot predict what patches users might
0719b59
# have and so want to warn them instead of automatically replacing their pine
0719b59
# install with an alpine that could break their configuration. 
0719b59
# I understand this to be a special case of the "Optional Functionality"
0719b59
# description at http://fedoraproject.org/wiki/Packaging/Conflicts
0719b59
Conflicts: pine
0719b59
a150d08
Provides: re-alpine = %{version}-%{release}
a150d08
a150d08
#BuildRequires: automake libtool
789ddf4
BuildRequires: gettext
20dacc7
BuildRequires: hunspell
849598f
## passing --with-npa=/usr/bin/inews
849598f
#BuildRequires: inews
789ddf4
BuildRequires: krb5-devel
789ddf4
BuildRequires: ncurses-devel 
789ddf4
BuildRequires: openldap-devel
789ddf4
BuildRequires: openssl-devel
789ddf4
BuildRequires: pam-devel
789ddf4
BuildRequires: passwd
849598f
# passing --with-smtp-msa=/usr/sbin/sendmail instead
849598f
#BuildRequires: /usr/sbin/sendmail 
789ddf4
20dacc7
Requires: hunspell
789ddf4
Requires: mailcap
789ddf4
Requires: /usr/sbin/sendmail
789ddf4
8e6e2e4
BuildRequires: gcc
a47785f
BuildRequires: make
0719b59
0719b59
%description
0719b59
Alpine -- an Alternatively Licensed Program for Internet
0719b59
News & Email -- is a tool for reading, sending, and managing
0719b59
electronic messages.  Alpine is the successor to Pine and was
0719b59
developed by Computing & Communications at the University of
0719b59
Washington.  
0719b59
  Though originally designed for inexperienced email users,
0719b59
Alpine supports many advanced features, and an ever-growing number of
0719b59
configuration and personal-preference options.
0719b59
Changes and enhancements over pine:
0719b59
  * Released under the Apache Software License, Version 2.0.
0719b59
  * Internationalization built around new internal Unicode support.
0719b59
  * Ground-up reorganization of source code around new "pith/" core 
0719b59
routine library.
0719b59
  * Ground-up reorganization of build and install procedure based on 
0719b59
GNU Build System's autotools.
0719b59
5408d0d
0719b59
%prep
9b811e9
%setup -q -n alpine-%{version}
43f65ee
%patch1 -p1
9da6884
%patch2 -p1
0719b59
Rex Dieter d558dde
install -m644 -p %{SOURCE1} .
Rex Dieter d558dde
5408d0d
0719b59
%build
0719b59
touch imap/ip6
0719b59
# --without-tcl disables the TCL-based CGI "Web Alpine"
0719b59
%configure \
948ae01
  --enable-debug=no \
0719b59
  --without-tcl \
0719b59
  --with-c-client-target=lfd \
849598f
  --with-smtp-msa=/usr/sbin/sendmail \
849598f
  --with-npa=/usr/bin/inews \
0719b59
  --with-passfile=.alpine.passfile \
20dacc7
  --with-simple-spellcheck=hunspell \
20dacc7
  --with-interactive-spellcheck=hunspell \
15af692
  --with-system-pinerc=%{_sysconfdir}/pine.conf \
15af692
  --with-system-fixed-pinerc=%{_sysconfdir}/pine.conf.fixed
15af692
16927c9
%make_build EXTRACFLAGS="$RPM_OPT_FLAGS"
0719b59
5408d0d
0719b59
%install
16927c9
%make_install
0719b59
0a55746
# create/touch %ghost'd files
15af692
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
15af692
touch $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf
15af692
touch $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf.fixed
7ffdc74
5408d0d
0719b59
%files
16927c9
%doc README
Rex Dieter d558dde
%doc README.fedora
16927c9
%license LICENSE
15af692
%ghost %config(noreplace) %{_sysconfdir}/pine.conf
15af692
%ghost %config(noreplace) %{_sysconfdir}/pine.conf.fixed
0719b59
%{_bindir}/alpine
0719b59
%{_bindir}/pico
0719b59
%{_bindir}/pilot
0719b59
%{_bindir}/rpload
0719b59
%{_bindir}/rpdump
0719b59
%{_mandir}/man1/alpine.1*
0719b59
%{_mandir}/man1/pico.1*
0719b59
%{_mandir}/man1/pilot.1*
0719b59
%{_mandir}/man1/rpload.1*
0719b59
%{_mandir}/man1/rpdump.1*
0719b59
5408d0d
0719b59
%changelog
b1e9f3f
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-2
b1e9f3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b1e9f3f
82aa483
* Thu Jun 09 2022 josef radinger <cheese@nosuchhost.net> - 2.26-1
82aa483
- bump version
82aa483
00dea0b
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-2
00dea0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
00dea0b
fdcd375
* Tue Nov 16 2021 josef radinger <cheese@nosuchhost.net> - 2.25-1
fdcd375
- bump version
fdcd375
1834f6e
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2.24-4
1834f6e
- Rebuilt with OpenSSL 3.0.0
1834f6e
e1c3ad9
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-3
e1c3ad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e1c3ad9
b436d2c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-2
b436d2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b436d2c
059b4ee
* Sun Oct 11 2020 josef radinger <cheese@nosuchhost.net> - 2.24-1
059b4ee
- bump version
76618bc
- modify %%patch1
059b4ee
6bbbac3
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23-4
6bbbac3
- Second attempt - Rebuilt for
6bbbac3
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6bbbac3
980977d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23-3
980977d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
980977d
9d6b023
* Tue Jun 23 2020 josef radinger <cheese@nosuchhost.net> - 2.23-2
9d6b023
- 2.23 fixes CVE-2020-14929 (#1850048) and new version (#1848786)
9d6b023
c54a245
* Mon Jun 22 2020 josef radinger <cheese@nosuchhost.net> - 2.23-1
c54a245
- bump version
c54a245
- update patch2 alpine-2.23-gcc10.patch
c54a245
7df45d8
* Tue Mar 24 2020 josef radinger <cheese@nosuchhost.net> - 2.22-1
7df45d8
- bump version
7df45d8
9da6884
* Thu Feb 13 2020 Than Ngo <than@redhat.com> - 2.21-13
9da6884
- fixed multiple definition of symbols
9da6884
80c1ef4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-12
80c1ef4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
80c1ef4
6268bb4
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-11
6268bb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6268bb4
43f65ee
* Sun Jul 21 2019 Paul Wouters <pwouters@redhat.com> - 2.21-10
43f65ee
- Patch to suppress sending the user-agent per default
43f65ee
17f642d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-9
17f642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
17f642d
c969a93
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-8
c969a93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c969a93
16927c9
* Mon May 21 2018 Rex Dieter <rdieter@fedoraproject.org> - 2.21-7
16927c9
- new URL
16927c9
- use %%license, %%make_build, %%make_install
16927c9
8e6e2e4
* Tue Mar 06 2018 josef radinger <cheese@nosuchhost.net> - 2.21-6
8e6e2e4
- add Buildrequires: gcc
8e6e2e4
  https://fedoraproject.org/wiki/Packaging:C_and_C++
8e6e2e4
b1296b7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-5
b1296b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b1296b7
b6aac75
* Wed Nov 15 2017 Rex Dieter <rdieter@fedoraproject.org> - 2.21-4
b6aac75
- use patched features release tarball, adjust Source0 URL accordingly (#1486899)
b6aac75
7d6e841
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-3
7d6e841
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7d6e841
0f13dce
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-2
0f13dce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0f13dce
Rex Dieter 12a8ca6
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 2.21-1
Rex Dieter 12a8ca6
- alpine 2.21, update URL, .spec cosmetics
Rex Dieter 12a8ca6
b80e08b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-5
b80e08b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b80e08b
Rex Dieter f9d711a
* Thu Feb 04 2016 Rex Dieter <rdieter@fedoraproject.org> 2.20-4
Rex Dieter f9d711a
- workaround crash on imap login (#1282092)
Rex Dieter f9d711a
3d2fb87
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-3
3d2fb87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3d2fb87
Rex Dieter fa5dc5b
* Fri Oct 09 2015 Rex Dieter <rdieter@fedoraproject.org> 2.20-2
Rex Dieter fa5dc5b
- use patched alpine sources (#1270331,#1270183)
Rex Dieter fa5dc5b
Joshua Daniel Franklin 3b0463a
* Mon Jul 06 2015 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2.20-1
Rex Dieter fa5dc5b
- Build from new upstream for 2.20, fixes rhbz#1092688 rhbz#1142890
Joshua Daniel Franklin 3b0463a
385324c
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4
385324c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
385324c
f46bffc
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3
f46bffc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f46bffc
1cd9217
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-2
1cd9217
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1cd9217
Rex Dieter d0f882c
* Wed Nov 06 2013 Rex Dieter <rdieter@fedoraproject.org> 2.11-1
Rex Dieter d0f882c
- alpine-2.11, drop old/unused patches
Rex Dieter d0f882c
Rex Dieter d558dde
* Thu Oct 31 2013 Rex Dieter <rdieter@fedoraproject.org> 2.10-4
Rex Dieter d558dde
- re-add README.fedora
Rex Dieter d558dde
1fb2359
* Sat Aug 03 2013 Dennis Gilmore <dennis@ausil.us> - 2.10-3
1fb2359
- remove refrences to non existant README.fedora file
1fb2359
7907d47
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-2
7907d47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7907d47
9b811e9
* Fri Mar 15 2013 Paul Wouters <pwouters@redhat.com> - 2.10-1
9b811e9
- Build from new upstream for 2.10, fixes rhbz#838359
9b811e9
011d113
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-3
011d113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
011d113
Joshua Daniel Franklin 78f8a1a
* Thu Dec 20 2012 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2.03-2
Joshua Daniel Franklin 78f8a1a
- add README.fedora
Joshua Daniel Franklin 78f8a1a
Joshua Daniel Franklin 78f8a1a
* Thu Dec 20 2012 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2.03-1
Joshua Daniel Franklin 78f8a1a
- re-alpine-2.03 (#880328,#888204)
Joshua Daniel Franklin 78f8a1a
9b850c9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.02-4
9b850c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9b850c9
d4e1139
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.02-3
d4e1139
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d4e1139
fb48f11
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.02-2
fb48f11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fb48f11
a150d08
* Fri Oct 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.02-1
a150d08
- re-alpine-2.02 (#465341)
a150d08
849598f
* Mon Jul 19 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.00-9
849598f
- --with-npa=/usr/bin/inews
849598f
- --with-smtp-msa=/usr/sbin/sendmail
849598f
e653ffc
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.00-8
e653ffc
- rebuilt with new openssl
e653ffc
8341761
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-7
8341761
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8341761
20dacc7
* Thu Jul 02 2009 Caolán McNamara <caolanm@redhat.com> - 2.00-6
20dacc7
- --with-spellcheck-prog isn't a configure option use
20dacc7
  --with-simple-spellcheck/--with-interactive-spellcheck and patch
20dacc7
  to prefer hunspell to aspell (#509387)
20dacc7
78f7c24
* Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 2.00-5
78f7c24
- "reply to all recipients" doesn't include anyone on the Cc list (#496400)
78f7c24
0f22bd9
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-4
0f22bd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0f22bd9
57ece67
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 2.00-3
57ece67
- rebuild with new openssl
57ece67
e9f5124
* Wed Nov 26 2008 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2.00-2
e9f5124
- Fix package Summary text to not include package name
e9f5124
- http://www.redhat.com/archives/fedora-devel-list/2008-November/msg01484.html
e9f5124
8380720
* Wed Aug 27 2008 Rex Dieter <rdieter@fedoraproject.org> 2.00-1
9a80791
- alpine-2.00 (#460332)
8380720
9169dca
* Mon Mar 24 2008 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 1.10-4
9169dca
- No changes; Bump for tag system
9169dca
9169dca
* Mon Mar 24 2008 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 1.10-3
9169dca
- No changes; Bump for tag system
9169dca
948ae01
* Mon Mar 24 2008 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 1.10-2
948ae01
- Change License string to "ASL 2.0" instead of "Apache Software License"
948ae01
- Disable debug files with "--enable-debug=no" (BZ #427013)
948ae01
789ddf4
* Mon Mar 24 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.10-1
789ddf4
- alpine-1.10
789ddf4
- cosmetic (Build)Req cleanup
789ddf4
3450211
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.00-3
3450211
- Autorebuild for GCC 4.3
3450211
36c5620
* Sat Dec 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.00-2
15af692
- --with-system-pinerc=%%_sysconfdir/pine.conf
15af692
  --with-system-fixed-pinerc=%%_sysconfdir/pine.conf.fixed (#426512)
15af692
5408d0d
* Fri Dec 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.00-1
5408d0d
- alpine-1.00
5408d0d
b860dbd
* Tue Dec 04 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.99999-4
b860dbd
- Bump-n-build for openldap/openssl soname changes
b860dbd
74591f2
* Thu Nov 15 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.99999-3
74591f2
- BuildRequires aspell to make configure happy
74591f2
36c5620
* Fri Nov 09 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.99999-2
137f493
- update to latest 
137f493
0a55746
* Thu Oct 25 2007 Rex Dieter 
0a55746
- omit sample pine.conf, instead use %%ghost to preserve existing pine.conf's
0a55746
7ffdc74
* Wed Oct 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9999-3
7ffdc74
- include stock pine.conf, pine.conf.fixed
7ffdc74
0719b59
* Fri Sep 07 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.9999-2
0719b59
- update to latest 
0719b59
0719b59
* Fri Aug 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.999-3
0719b59
- EXTRACFLAGS=$RPM_OPT_FLAGS
0719b59
- --with-c-client-target=lfd
0719b59
- --with-passfile=.alpine.passfile
0719b59
- Requires: mailcap
0719b59
36c5620
* Tue Jul 24 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.2
0719b59
- remove problem cc5.sol file
0719b59
- integrate changes from Patrick "Jima" Laughton <jima@beer.tclug.org>
0719b59
36c5620
* Tue Jul 24 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.1
0719b59
- correct spec syntax, explain Conflicts tag
0719b59
0719b59
* Mon Jul 23 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.0
0719b59
- initial alpine spec
0719b59
- Apache Software License 2.0
0719b59