0719b59
# Fedora review: http://bugzilla.redhat.com/249365
0719b59
0719b59
Summary: UW Alpine mail user agent
0719b59
Name: alpine
0719b59
Version: 0.9999
0a55746
Release: 4%{?dist}
0719b59
0719b59
License: Apache Software License
0719b59
Group: Applications/Internet
0719b59
URL: http://www.washington.edu/alpine
0719b59
#Source0: ftp://ftp.cac.washington.edu/alpine/%{name}-%{version}.tar.bz2
0719b59
# removed cc5.sol problem file, see BZ for details
0719b59
Source0: %{name}-%{version}.tar.bz2
0719b59
0719b59
Requires: /usr/sbin/sendmail aspell mailcap
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
0719b59
BuildRequires: /usr/sbin/sendmail
0719b59
BuildRequires: gettext inews krb5-devel ncurses-devel 
0719b59
BuildRequires: openldap-devel openssl-devel pam-devel passwd sendmail
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
0719b59
%prep
0719b59
%setup -q
0719b59
chmod -x alpine/arg.c pico/main.c
0719b59
0719b59
%build
0719b59
touch imap/ip6
0719b59
# --without-tcl disables the TCL-based CGI "Web Alpine"
0719b59
%configure \
0719b59
  --without-tcl \
0719b59
  --with-c-client-target=lfd \
0719b59
  --with-passfile=.alpine.passfile \
0719b59
  --with-spellcheck-prog=aspell
0719b59
make %{?_smp_mflags} EXTRACFLAGS="$RPM_OPT_FLAGS"
0719b59
0719b59
%install
0719b59
rm -rf $RPM_BUILD_ROOT
0719b59
make install DESTDIR=$RPM_BUILD_ROOT
0719b59
0a55746
# create/touch %ghost'd files
0a55746
mkdir -p $RPM_BUILD_ROOT/etc
0a55746
touch $RPM_BUILD_ROOT/etc/pine.conf
0a55746
touch $RPM_BUILD_ROOT/etc/pine.conf.fixed
7ffdc74
0719b59
%clean
0719b59
rm -rf $RPM_BUILD_ROOT
0719b59
0719b59
%files
0719b59
%defattr(-,root,root,-)
0719b59
%doc README LICENSE doc/tech-notes.txt
0a55746
%ghost %config(noreplace) /etc/pine.conf
0a55746
%ghost %config(noreplace) /etc/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
0719b59
%changelog
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