# Fedora review: http://bugzilla.redhat.com/249365
Summary: UW Alpine mail user agent
Name: alpine
Version: 0.9999
Release: 4%{?dist}
License: Apache Software License
Group: Applications/Internet
URL: http://www.washington.edu/alpine
#Source0: ftp://ftp.cac.washington.edu/alpine/%{name}-%{version}.tar.bz2
# removed cc5.sol problem file, see BZ for details
Source0: %{name}-%{version}.tar.bz2
Requires: /usr/sbin/sendmail aspell mailcap
# 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"
# description at http://fedoraproject.org/wiki/Packaging/Conflicts
Conflicts: pine
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: /usr/sbin/sendmail
BuildRequires: gettext inews krb5-devel ncurses-devel
BuildRequires: openldap-devel openssl-devel pam-devel passwd sendmail
%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
chmod -x alpine/arg.c pico/main.c
%build
touch imap/ip6
# --without-tcl disables the TCL-based CGI "Web Alpine"
%configure \
--without-tcl \
--with-c-client-target=lfd \
--with-passfile=.alpine.passfile \
--with-spellcheck-prog=aspell
make %{?_smp_mflags} EXTRACFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# create/touch %ghost'd files
mkdir -p $RPM_BUILD_ROOT/etc
touch $RPM_BUILD_ROOT/etc/pine.conf
touch $RPM_BUILD_ROOT/etc/pine.conf.fixed
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README LICENSE doc/tech-notes.txt
%ghost %config(noreplace) /etc/pine.conf
%ghost %config(noreplace) /etc/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 Oct 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org. 0.9999-4
- omit sample pine.conf, instead use %%ghost to preserve existing pine.conf's
* Wed Oct 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9999-3
- include stock pine.conf, pine.conf.fixed
* Fri Sep 07 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.9999-2
- update to latest
* Fri Aug 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.999-3
- EXTRACFLAGS=$RPM_OPT_FLAGS
- --with-c-client-target=lfd
- --with-passfile=.alpine.passfile
- Requires: mailcap
* Mon Jul 24 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.2
- remove problem cc5.sol file
- integrate changes from Patrick "Jima" Laughton <jima@beer.tclug.org>
* Mon Jul 24 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.1
- correct spec syntax, explain Conflicts tag
* Mon Jul 23 2007 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 0.999-2.0
- initial alpine spec
- Apache Software License 2.0