| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- ##
- ## 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 117
- # 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
- Class: PLUS
- Group: Mail
- License: ELM License
- Version: %{V_base}.%{V_me}
- Release: 20040702
- # 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 >= 20040130
- PreReq: OpenPKG, openpkg >= 20040130
- 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.
- %track
- prog elm = {
- version = %{V_base}ME+%{V_me}
- url = http://www.ozone.fmi.fi/KEH/
- regex = elm-(2.4ME\+1\d+S?)\.tar\.gz
- }
- %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
|