|
|
|
|
##
|
|
|
|
|
## elm.spec -- OpenPKG RPM Specification
|
|
|
|
|
## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
|
|
|
|
|
## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
|
|
|
|
|
## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
|
|
|
|
|
##
|
|
|
|
|
## Permission to use, copy, modify, and distribute this software for
|
|
|
|
|
## any purpose with or without fee is hereby granted, provided that
|
|
|
|
|
## the above copyright notice and this permission notice appear in all
|
|
|
|
|
## copies.
|
|
|
|
|
##
|
|
|
|
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
|
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
|
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
|
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
|
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
## SUCH DAMAGE.
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# package version
|
|
|
|
|
%define V_base 2.4
|
|
|
|
|
%define V_me 111
|
|
|
|
|
|
|
|
|
|
# package information
|
|
|
|
|
Name: elm
|
|
|
|
|
Summary: Electronic Mail
|
|
|
|
|
URL: http://www.ozone.fmi.fi/KEH/
|
|
|
|
|
Vendor: Dave Taylor et al.
|
|
|
|
|
Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [EVAL]
|
|
|
|
|
Group: Mail
|
|
|
|
|
License: ELM License
|
|
|
|
|
Version: %{V_base}.%{V_me}
|
|
|
|
|
Release: 20040124
|
|
|
|
|
|
|
|
|
|
# list of sources
|
|
|
|
|
Source0: http://www.ozone.fmi.fi/KEH/elm-%{V_base}ME+%{V_me}.tar.gz
|
|
|
|
|
|
|
|
|
|
# build information
|
|
|
|
|
Prefix: %{l_prefix}
|
|
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030103
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20030103
|
|
|
|
|
AutoReq: no
|
|
|
|
|
AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Elm (Electronic Mail) is the most popular Mail User Agent (MUA) from
|
|
|
|
|
the good USENET days. It contains enhanced MIME and character set
|
|
|
|
|
support, can read mail from POP or IMAP folders and can pass mail
|
|
|
|
|
to the PGP or GPG programs. It also includes modules for TLS/SSL,
|
|
|
|
|
iconv, and SMTP.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n elm%{V_base}.ME+.%{V_me}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# configure program
|
|
|
|
|
%{l_shtool} subst \
|
|
|
|
|
-e 's;d_shared="$define";d_shared="$undef";g' \
|
|
|
|
|
-e 's;install_prefix/var/stage-$package;install_prefix/var/elm;g' \
|
|
|
|
|
-e 's;install_prefix/lib;install_prefix/lib/elm;g' \
|
|
|
|
|
-e 's;shlib="$install_prefix/$libdirname";shlib="$install_prefix/lib/elm";g' \
|
|
|
|
|
Configure
|
|
|
|
|
export cc="%{l_cc}"
|
|
|
|
|
export optimize="%{l_cflags -O}"
|
|
|
|
|
./Configure -d -b -P%{l_prefix}
|
|
|
|
|
|
|
|
|
|
# build program
|
|
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# install program
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/elm
|
|
|
|
|
%{l_shtool} subst \
|
|
|
|
|
-e "s;\\(bin/elmregister master\\);\1 -F %{l_prefix}/lib/elm.filelist -R $RPM_BUILD_ROOT;" \
|
|
|
|
|
-e 's;\(bin/elmregister replay\);#\1;' \
|
|
|
|
|
-e 's;\(bin/elmregister unstage\);#\1;' \
|
|
|
|
|
Makefile
|
|
|
|
|
%{l_make} %{l_mflags} install
|
|
|
|
|
|
|
|
|
|
# strip down installation
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/elm/elm.filelist
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/elm/elm.map.*
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/cat1
|
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/lib/elm/* >/dev/null 2>&1 || true
|
|
|
|
|
|
|
|
|
|
# determine installation files
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
|
|
|
%files -f files
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|