| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- ##
- ## mutt15.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.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_mutt 1.5.11
- %define V_mutt_patches 1.5.11
- %define V_mutt_patches_sidebar 1.5.10i.sidebar.20050816
- # package information
- Name: mutt15
- Summary: Mail User Agent
- URL: http://www.mutt.org/
- Vendor: Michael Elkins
- Packager: OpenPKG
- Distribution: OpenPKG
- Class: EVAL
- Group: Mail
- License: BSD
- Version: %{V_mutt}i
- Release: 20050930
- # build options
- %option with_comp no
- %option with_nntp no
- %option with_initials no
- %option with_quote no
- %option with_sidebar no
- %option with_ncurses no
- # list of sources
- Source0: ftp://ftp.mutt.org/mutt/devel/mutt-%{V_mutt}.tar.gz
- Source1: mailcap
- Source2: muttrc
- Patch0: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt_patches}/patch-%{V_mutt_patches}.rr.compressed.gz
- Patch1: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt_patches}/patch-%{V_mutt_patches}.vvv.nntp.gz
- Patch2: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt_patches}/patch-%{V_mutt_patches}.vvv.initials.gz
- Patch3: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt_patches}/patch-%{V_mutt_patches}.vvv.quote.gz
- Patch4: http://thomer.com/mutt/patch-%{V_mutt_patches_sidebar}.txt
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, make
- PreReq: OpenPKG, openpkg >= 20040130
- BuildPreReq: openssl, libidn, libiconv
- PreReq: openssl, libidn, libiconv
- %if "%{with_ncurses}" == "yes"
- BuildPreReq: ncurses
- PreReq: ncurses
- %else
- BuildPreReq: slang
- PreReq: slang
- %endif
- AutoReq: no
- AutoReqProv: no
- Provides: mutt
- %description
- Mutt is a small but very powerful text based program for reading
- electronic mail under Unix operating systems, including support for
- color terminals, MIME, and a threaded sorting mode.
- Notice: this is the development series of Mutt. Use it at your own risk!
- %track
- prog mutt15 = {
- version = %{V_mutt}
- url = ftp://ftp.mutt.org/mutt/devel/
- regex = mutt-(__VER__)\.tar\.gz
- }
- prog mutt15:patch_rr_compressed = {
- version = %{V_mutt_patches}
- url = ftp://ftp.mutt.org.ua/pub/mutt/
- regex = mutt-(1\.5(\.\d+)+)
- url = ftp://ftp.mutt.org.ua/pub/mutt/mutt-__NEWVER__/
- regex = patch-(__VER__)\.rr\.compressed\.gz
- }
- prog mutt15:patch_vvv_initials = {
- version = %{V_mutt_patches}
- url = ftp://ftp.mutt.org.ua/pub/mutt/
- regex = mutt-(1\.5(\.\d+)+)
- url = ftp://ftp.mutt.org.ua/pub/mutt/mutt-__NEWVER__/
- regex = patch-(__VER__)\.vvv\.initials\.gz
- }
- prog mutt15:patch_vvv_nntp = {
- version = %{V_mutt_patches}
- url = ftp://ftp.mutt.org.ua/pub/mutt/
- regex = mutt-(1\.5(\.\d+)+)
- url = ftp://ftp.mutt.org.ua/pub/mutt/mutt-__NEWVER__/
- regex = patch-(__VER__)\.vvv\.nntp\.gz
- }
- prog mutt15:patch_vvv_quote = {
- version = %{V_mutt_patches}
- url = ftp://ftp.mutt.org.ua/pub/mutt/
- regex = mutt-(1\.5(\.\d+)+)
- url = ftp://ftp.mutt.org.ua/pub/mutt/mutt-__NEWVER__/
- regex = patch-(__VER__)\.vvv\.quote\.gz
- }
- prog mutt15:patch_sidebar = {
- version = %{V_mutt_patches_sidebar}
- url = http://thomer.com/mutt/
- regex = patch-(.+?i.sidebar.__VER__)\.txt
- }
- %prep
- %setup -q -n mutt-%{V_mutt}
- %if "%{with_comp}" == "yes"
- %{l_gzip} -d -c <%{PATCH0} |\
- sed -e '/^diff.*Makefile\.am/,/^diff/d' \
- -e '/^diff.*configure\.in /,/^diff/d' \
- -e '/^diff.*acconfig\.h /,/^diff/d' |\
- %{l_patch} -p1
- %endif
- %if "%{with_nntp}" == "yes"
- %{l_gzip} -d -c <%{PATCH1} |\
- sed -e '/^diff.*configure\.in /,/^diff/d' \
- -e '/^diff.*acconfig\.h /,/^diff/d' |\
- %{l_patch} -p1
- %endif
- %if "%{with_initials}" == "yes"
- %patch -p1 -P 2
- %endif
- %if "%{with_quote}" == "yes"
- %patch -p1 -P 3
- %endif
- %if "%{with_sidebar}" == "yes"
- %patch -p1 -P 4
- %endif
- %{l_shtool} subst \
- -e 's;\(Mutt/%%s\);\1 %{l_openpkg_release -F "OpenPKG/%%s"};' \
- sendlib.c
- %build
- # configure for particular platform
- options=''
- case "%{l_platform -t}" in
- *-freebsd* ) options="--enable-flock --disable-fcntl" ;;
- esac
- CC="%{l_cc}" \
- CFLAGS="%{l_cflags -O}" \
- %if "%{with_ncurses}" == "yes"
- CPPFLAGS="%{l_cppflags ncurses libidn .}" \
- %else
- CPPFLAGS="%{l_cppflags libidn .}" \
- %endif
- LDFLAGS="-Limap %{l_ldflags}" \
- ./configure \
- --prefix=%{l_prefix} \
- --sysconfdir=%{l_prefix}/etc/mutt \
- --with-docdir=%{l_prefix}/share/mutt \
- %if "%{with_ncurses}" == "yes"
- --with-curses=%{l_prefix} \
- %else
- --with-slang=%{l_prefix} \
- %endif
- --with-ssl=%{l_prefix} \
- --enable-pop \
- --enable-imap \
- %if "%{with_comp}" == "yes"
- --enable-compressed \
- %endif
- %if "%{with_nntp}" == "yes"
- --enable-nntp \
- %endif
- --enable-buffy-size \
- --disable-warnings \
- --with-iconv \
- --disable-nls \
- $options
- # perform standard build procedure
- %{l_make} %{l_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- # perform standard installation procedure
- %{l_shtool} subst \
- -e "s;chmod 2755;true;" \
- -e "s;chgrp mail;true;" \
- Makefile
- %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
- # strip down installation tree
- rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/[A-Za-d]*
- rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/patch-notes.txt
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mutt/html
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mutt/samples
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flea
- rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/flea.1
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/muttbug
- rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/muttbug.1
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
- # install additional files
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- %{SOURCE muttrc} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/Muttrc
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- %{SOURCE mailcap} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/mailcap
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%config %{l_prefix}/etc/mutt/*'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|