File alpine.spec of Package alpine

#
# spec file for package alpine
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Summary:        University of Washington Pine mail user agent
License:        Apache-2.0
Group:          Productivity/Networking/Email/Clients
Name:           alpine
Version:        2.26
Release:        1000
Source:         https://alpineapp.email//alpine/release/src/%{name}-%{version}.tar.xz
Source1:        %{name}.rpmlintrc
Patch0:         https://alpineapp.email//alpine/patches/alpine-%{version}/all.patch.gz
Url:            https://alpineapp.email/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  aspell
BuildRequires:  krb5-devel
BuildRequires:  libtool
BuildRequires:  ncurses-devel
BuildRequires:  openldap2-devel
BuildRequires:  openssl-devel
BuildRequires:  pam-devel
BuildRequires:  update-desktop-files
PreReq:         permissions

%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.

%prep
%setup -q -n %{name}-%{version}
%patch -P0 -p1

%build
touch imap/ip6
#autoreconf -fiv
%configure --with-spellcheck-prog=aspell --with-passfile=.pinepw --disable-debug
make -j1 EXTRACFLAGS="$CFLAGS" EXTRALDFLAGS="$LDFLAGS"

%install
install -D -m755 alpine/alpine $RPM_BUILD_ROOT%{_bindir}/alpine
install -D -m755 pico/pico $RPM_BUILD_ROOT%{_bindir}/pico
install -D -m755 pico/pilot $RPM_BUILD_ROOT%{_bindir}/pilot
install -D -m755 alpine/rpload $RPM_BUILD_ROOT%{_bindir}/rpload
install -D -m755 alpine/rpdump $RPM_BUILD_ROOT%{_bindir}/rpdump
if ! install -D -m2755 -gmail imap/mlock/mlock $RPM_BUILD_ROOT%{_sbindir}/mlock; then
echo "*** DO NOT FORGET TO DO THE FOLLOWING BY HAND while root:
***  chgrp mail $RPM_BUILD_ROOT%{_sysconfdir}/mlock
***  echo chmod 2755 $RPM_BUILD_ROOT%{_sysconfdir}/mlock"
fi
install -D -m644 doc/man1/alpine.1 $RPM_BUILD_ROOT%{_mandir}/man1/alpine.1
install -D -m644 doc/man1/pico.1 $RPM_BUILD_ROOT%{_mandir}/man1/pico.1
install -D -m644 doc/man1/pilot.1 $RPM_BUILD_ROOT%{_mandir}/man1/pilot.1
install -D -m644 doc/man1/rpload.1 $RPM_BUILD_ROOT%{_mandir}/man1/rpload.1
install -D -m644 doc/man1/rpdump.1 $RPM_BUILD_ROOT%{_mandir}/man1/rpdump.1

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README LICENSE doc/tech-notes/tech-notes.txt
%{_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
openSUSE Build Service is sponsored by