# # rpm spec for pine # # this is meant to mimic closely red hat's pine rpm, which # appears on the way out of the main distro due to UW's # license, which prohibits the distribution of patched binaries. %define pgpver 0.18.0 %define with_gpgpine 1 Summary: A commonly used, MIME compliant mail and news reader Name: pine Version: 4.64 Release: 1%{?redhatvers:.%{redhatvers}} Group: Applications/Internet License: University of Washington Free-Fork License Packager: Paul Heinlein URL: http://www.washington.edu/pine/ Source0: ftp://ftp.cac.washington.edu/pine/pine4.64.tar.gz Source1: http://www.megaloman.com/~hany/_data/pinepgp/pinepgp-0.18.0.tar.gz Source2: pine.conf Source3: pine.conf.fixed Source4: pine-spellcheck Patch0: http://www.math.washington.edu/~chappa/pine/patches/pine4.64/fillpara.patch.gz BuildPrereq: pam-devel, perl, ncurses-devel BuildPrereq: krb5-devel, openssl-devel, openldap-devel Requires: krb5-libs, mailcap BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Pine is a very popular, easy to use, full-featured email user agent that includes a simple text editor called pico. Pine supports MIME extensions and can also be used to read news. Pine also supports IMAP, mail, and MH style folders. This package also includes Peter Soos' excellent PinePgp filters that enable pine to send and receive signed and/or encrypted messages. PinePgp can be found at http://www.megaloman.com/~hany/. %prep %setup -q -n %{name}%{version} -a 1 %patch0 -p1 # this wants /usr/local/bin/perl, which messes with Requires stuff chmod 644 contrib/utils/pwd2pine perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|" contrib/utils/pwd2pine # set up kerberos, if so desired %{?!nokerberos: rm -f krb5 && mkdir krb5 && ln -s /usr/include krb5/include && ln -s /usr/%{_lib} krb5/lib} %{?!nokerberos: ./contrib/krb5-setup lnp lnp} # set up ldap, if so desired %{?!noldap:rm -fr ldap && mkdir ldap && ln -s %{_libdir} ldap/libraries && ln -s /usr/include ldap/include} %{?!noldap:./contrib/ldap-setup lnp lnp || true} %build ./build \ OPTIMIZE="%{optflags}" \ DEBUG="%{optflags}" \ %{!?nokerberos:EXTRAAUTHENTICATORS=gss} \ %{!?noldap:EXTRALDFLAGS="-lsasl2"} \ %{!?nossl:SPECIALAUTHENTICATORS=ssl} \ %{!?nossl:SSLTYPE=unix} \ %{!?nossl:SSLDIR=/usr} \ %{!?nossl:SSLCERTS=/usr/share/ssl} \ %{!?nossl:SSLINCLUDE=/usr/include/openssl} \ %{!?nossl:SSLLIB="-lssl -lcrypto"} \ lrh %if %{with_gpgpine} cd pinepgp-%{pgpver} %configure --with-gpg=/usr/bin/gpg make %endif %install [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} # create some installation directories install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_sysconfdir} # install binaries and configs install -m 755 bin/{pine,pico,pilot,rpdump,rpload} %{buildroot}%{_bindir} install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pine.conf install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pine.conf.fixed install -m 755 %{SOURCE4} %{buildroot}%{_bindir} # install man pages cd doc for n in pine pico pilot rpdump rpload; do install -m 644 ${n}.1 %{buildroot}/%{_mandir}/man1/ done cd .. # install pinegpg %if %{with_gpgpine} cd pinepgp-%{pgpver} make install-pinegpg DESTDIR=%{buildroot} cd .. %endif %clean [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc README CPYRIGHT doc/*.txt doc/pine-ports doc/tech-notes/*.html %doc doc/mailcap.unx imap/docs/bugs.txt %{_bindir}/pine %{_bindir}/pine-spellcheck %{_bindir}/pico %{_bindir}/pilot %{_bindir}/rpdump %{_bindir}/rpload %{_mandir}/man1/* %attr(0644,root,root) %config %{_sysconfdir}/pine.conf %attr(0644,root,root) %config %{_sysconfdir}/pine.conf.fixed %if %{with_gpgpine} %attr(0755,root,root) %{_bindir}/pinepgpgpg-install %attr(0755,root,root) %{_bindir}/pinegpg-install %attr(0755,root,root) %{_bindir}/pinegpg %attr(0755,root,root) %{_bindir}/gpg-sign %attr(0755,root,root) %{_bindir}/gpg-sign+encrypt %attr(0755,root,root) %{_bindir}/gpg-encrypt %attr(0755,root,root) %{_bindir}/gpg-check %endif %changelog * Tue Oct 11 2005 Paul Heinlein 4.64-1 - new upstream version - update License tag * Tue Jul 12 2005 Paul Heinlein 4.63-1 - new upstream version - minor .spec tweaks * Wed Jan 19 2005 Paul Heinlein 4.62-1 - new upstream version * Mon Jul 19 2004 Paul Heinlein 4.61-1 - new upstream version - remove 8-bit patch, which is fixed in main distro * Wed Jun 16 2004 Paul Heinlein 4.60-2 - use sasl2 libs - use updated fillpara patch - use Steve Hubert's 8-bit char set patch - update kerberos file paths for fedora core * Fri May 13 2004 Paul Heinlein 4.60-1 - new upstream version - don't need pine.ldapperson.patch; it's part of the distribution tarball now. :-) - back out the utf-8 patch, for now * Fri Dec 19 2003 Paul Heinlein 4.58-4 - add Bernhard Kaindl's utf-8 patch * Wed Nov 26 2003 Paul Heinlein 4.58-2 - add Eduardo Chappa's excellent multi-level quote justification patch * Thu Sep 11 2003 Paul Heinlein 4.58-1 - version 4.58 * Wed Jun 25 2003 Paul Heinlein - initial release, based on Red Hat's pine.spec ### ### eof ###