alpine/alpine.spec

Name: alpine
Summary: Alternative Pine mail user agent implementation
Version: 2.02
Release: 2
License: Apache License
Group: Applications/Internet
URL: http://www.washington.edu/alpine/
Description: Alpine (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.

CentOS 7 x86_64

The build could not start because the following file is missing: re-alpine-2.02.tar.bz2

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: re-alpine-2.02.tar.bz2

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id: alpine-test.spec 9166 2010-10-07 13:05:43Z dag $
# Authority: dag

### EL2 ships with pine-4.44-20
%{?el2:# Tag: rfx}

%{?el6:%define _without_inews 1}

%define _default_patch_fuzz 2

%define real_name re-alpine

Summary: Alternative Pine mail user agent implementation
Name: alpine
Version: 2.02
Release: 2%{?dist}
License: Apache License
Group: Applications/Internet
URL: http://www.washington.edu/alpine/

Source0: http://dl.sf.net/project/%{real_name}/%{real_name}-%{version}.tar.bz2
Source1: pine.conf
Source2: pine.conf.fixed
### http://patches.freeiz.com/alpine/info/maildir.html
Patch0: alpine-2.01-maildir.patch
### http://patches.freeiz.com/alpine/info/rules.html
Patch1: alpine-2.01-rules.patch
### http://patches.freeiz.com/alpine/info/fillpara.html
Patch2: alpine-2.01-fillpara.patch
### http://patches.freeiz.com/alpine/info/searchheader.html
Patch3: alpine-2.01-searchheader.patch
Patch4: alpine-1.10-select-bold-x.patch
### http://patches.freeiz.com/alpine/info/colorfolder.html
Patch5: alpine-2.01-colorfolder.patch
### http://patches.freeiz.com/alpine/info/longurl.html
Patch6: alpine-2.01-longurl.patch
### http://patches.freeiz.com/alpine/info/tokencolor.html
Patch7: alpine-2.01-tokencolor.patch
### http://patches.freeiz.com/alpine/info/outgoing.html
Patch8: alpine-2.01-outgoing.patch
### http://patches.freeiz.com/alpine/info/fancy.html
Patch9: alpine-2.01-fancy.patch
Patch10: alpine-2.02-openssl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: aspell
#BuildRequires: inews
BuildRequires: krb5-devel
BuildRequires: ncurses-devel
BuildRequires: openldap-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel
### RPM bug causes package to conflict with itself
#Conflicts: pine
Obsoletes: pine <= 4.64
Provides: pine = 4.64

Provides: realpine = %{version}-%{release}
Provides: re-alpine = %{version}-%{release}

%description
Alpine (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.

%prep
%setup -n %{real_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0 -b .orig
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
#patch9 -p1
%patch10 -p1

#%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' configure */Makefile */*/Makefile imap/src/osdep/unix/Makefile.gss
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' imap/src/osdep/unix/Makefile.gss

%build
touch imap/ip6
%configure \
    --with-spellcheck-prog="aspell" \
    --with-system-pinerc="%{_sysconfdir}/pine.conf" \
    --with-system-fixed-pinerc="%{_sysconfdir}/pine.conf.fixed"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 alpine/alpine %{buildroot}%{_bindir}/alpine
%{__install} -Dp -m0755 pico/pico %{buildroot}%{_bindir}/pico
%{__install} -Dp -m0755 pico/pilot %{buildroot}%{_bindir}/pilot
%{__install} -Dp -m0755 alpine/rpload %{buildroot}%{_bindir}/rpload
%{__install} -Dp -m0755 alpine/rpdump %{buildroot}%{_bindir}/rpdump
%{__install} -Dp -m0755 imap/mailutil/mailutil %{buildroot}%{_bindir}/mailutil
#if ! install -D -m2755 -gmail imap/mlock/mlock $RPM_BUILD_ROOT%{_sbindir}/mlock; then
%{__install} -Dp -m0755 imap/mlock/mlock %{buildroot}%{_sbindir}/mlock
%{__install} -Dp -m0644 doc/alpine.1 %{buildroot}%{_mandir}/man1/alpine.1
%{__install} -Dp -m0644 doc/pico.1 %{buildroot}%{_mandir}/man1/pico.1
%{__install} -Dp -m0644 doc/pilot.1 %{buildroot}%{_mandir}/man1/pilot.1
%{__install} -Dp -m0644 doc/rpload.1 %{buildroot}%{_mandir}/man1/rpload.1
%{__install} -Dp -m0644 doc/rpdump.1 %{buildroot}%{_mandir}/man1/rpdump.1
%{__install} -Dp -m0644 imap/src/mailutil/mailutil.1 %{buildroot}%{_mandir}/man1/mailutil.1

%{__install} -Dp -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pine.conf
%{__install} -Dp -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pine.conf.fixed

%{__ln_s} -f alpine %{buildroot}%{_bindir}/pine
%{__ln_s} -f alpine.1.gz %{buildroot}%{_mandir}/man1/pine.1.gz

%pre
### Clean up mess
if [ -r %{_sysconfdir}/alpine.conf -a -r %{_sysconfdir}/pine.conf ]; then
    %{__mv} -f %{_sysconfdir}/pine.conf %{_sysconfdir}/pine.conf.rpmsave
fi

if [ -r %{_sysconfdir}/alpine.conf ]; then
    %{__mv} -f %{_sysconfdir}/alpine.conf %{_sysconfdir}/pine.conf
fi

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc LICENSE NOTICE README* VERSION doc/*.txt doc/tech-notes/*.html
%doc %{_mandir}/man1/alpine.1*
%doc %{_mandir}/man1/mailutil.1*
%doc %{_mandir}/man1/pico.1*
%doc %{_mandir}/man1/pilot.1*
%doc %{_mandir}/man1/pine.1*
%doc %{_mandir}/man1/rpdump.1*
%doc %{_mandir}/man1/rpload.1*
%config(noreplace) %{_sysconfdir}/pine.conf
%config(noreplace) %{_sysconfdir}/pine.conf.fixed
%{_bindir}/alpine
%{_bindir}/mailutil
%{_bindir}/pico
%{_bindir}/pilot
%{_bindir}/pine
%{_bindir}/rpdump
%{_bindir}/rpload

%defattr(2755, root, mail, 0755)
%{_sbindir}/mlock

%changelog
* Thu May 03 2012 Dag Wieers <dag@wieers.com> - 2.02-2
- Added more alpine patches from Eduardo Chappa.

* Tue Oct 05 2010 Dag Wieers <dag@wieers.com> - 2.02-1
- Updated to release 2.02 (re-alpine).

* Sat May 23 2009 Dag Wieers <dag@wieers.com> - 2.00-2
- Added searchheader patch.

* Thu Sep 11 2008 Dag Wieers <dag@wieers.com> - 2.00-1
- Updated to release 2.00.

* Thu Sep 11 2008 Dag Wieers <dag@wieers.com> - 1.10-4
- Updated rules patch. (Joe Pruett)

* Wed Jul 30 2008 Dag Wieers <dag@wieers.com> - 1.10-3
- Added rules patch.

* Sun Jul 27 2008 Dag Wieers <dag@wieers.com> - 1.10-2
- Added patch to show both X and bold on selection. (Dag Wieers)
- Added maildir and fillpara patch.
- Restore original pine.conf location.

* Tue Mar 18 2008 Dag Wieers <dag@wieers.com> - 1.10-1
- Updated to release 1.10.
- Included original pine.conf, lacking anything better.
- Disable --passfile, use platform-specific password caching.

* Fri Dec 21 2007 Dag Wieers <dag@wieers.com> - 1.00-1
- Updated to release 1.00.

* Tue Nov 20 2007 Dag Wieers <dag@wieers.com> - 0.99999-1
- Updated to release 0.99999.

* Sun Oct 28 2007 Dag Wieers <dag@wieers.com> - 0.9999-2
- Enabled passfile support.

* Sun Sep 30 2007 Dag Wieers <dag@wieers.com> - 0.9999-1
- Updated to release 0.9999.

* Mon Aug 27 2007 Dag Wieers <dag@wieers.com> - 0.999-2
- Removed Conflicts: pine as RPM bug causes package to conflict with itself. (Bart Schaefer)

* Fri Aug 24 2007 Dag Wieers <dag@wieers.com> - 0.999-1
- Initial package. (using DAR)