0719b59
# Fedora review: http://bugzilla.redhat.com/249365
0719b59
e9f5124
Summary: powerful, easy to use console email client
0719b59
Name: alpine
8380720
Version: 2.00 
0f22bd9
Release: 4%{?dist}
0719b59
948ae01
License: ASL 2.0
0719b59
Group: Applications/Internet
0719b59
URL: http://www.washington.edu/alpine
137f493
# FTP: ftp://ftp.cac.washington.edu/alpine/
137f493
# SVN: https://svn.cac.washington.edu/public/alpine/snapshots/
5408d0d
Source0: ftp://ftp.cac.washington.edu/alpine/alpine-%{version}.tar.bz2
0719b59
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
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
0719b59
789ddf4
BuildRequires: aspell
789ddf4
BuildRequires: gettext
789ddf4
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
789ddf4
BuildRequires: sendmail /usr/sbin/sendmail
789ddf4
789ddf4
Requires: aspell
789ddf4
Requires: mailcap
789ddf4
Requires: /usr/sbin/sendmail
789ddf4
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
0719b59
%setup -q
0719b59
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 \
0719b59
  --with-passfile=.alpine.passfile \
15af692
  --with-spellcheck-prog=aspell \
15af692
  --with-system-pinerc=%{_sysconfdir}/pine.conf \
15af692
  --with-system-fixed-pinerc=%{_sysconfdir}/pine.conf.fixed
15af692
0719b59
make %{?_smp_mflags} EXTRACFLAGS="$RPM_OPT_FLAGS"
0719b59
5408d0d
0719b59
%install
0719b59
rm -rf $RPM_BUILD_ROOT
0719b59
make install DESTDIR=$RPM_BUILD_ROOT
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
%clean
0719b59
rm -rf $RPM_BUILD_ROOT
0719b59
5408d0d
0719b59
%files
0719b59
%defattr(-,root,root,-)
0719b59
%doc README LICENSE doc/tech-notes.txt
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
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
15af692
* Fri 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
137f493
* Thu 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
0719b59
* Mon 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
0719b59
* Mon 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