|
|
@@ -63,8 +63,8 @@ AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
Mutt is a small but very powerful text based program for reading
|
|
|
- electronic mail under Unix operating systems, including support
|
|
|
- color terminals, MIME, and a threaded sorting mode
|
|
|
+ electronic mail under Unix operating systems, including support for
|
|
|
+ color terminals, MIME, and a threaded sorting mode.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n mutt-%{V_mutt}
|
|
|
@@ -76,6 +76,7 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
|
|
|
%build
|
|
|
+ # configure for particular platform
|
|
|
options=''
|
|
|
case "%{l_target}" in
|
|
|
*-freebsd* ) options="--enable-flock --disable-fcntl" ;;
|
|
|
@@ -91,34 +92,50 @@ AutoReqProv: no
|
|
|
--with-ssl=%{l_prefix} \
|
|
|
--enable-pop \
|
|
|
--enable-imap \
|
|
|
- --without-iconv \
|
|
|
- --without-wc-funcs \
|
|
|
- --disable-nls \
|
|
|
%if "%{with_comp}" == "yes"
|
|
|
--enable-compressed \
|
|
|
%endif
|
|
|
%if "%{with_nntp}" == "yes"
|
|
|
--enable-nntp \
|
|
|
%endif
|
|
|
+ --enable-buffy-size \
|
|
|
+ --without-iconv \
|
|
|
+ --without-wc-funcs \
|
|
|
+ --disable-nls \
|
|
|
$options
|
|
|
+
|
|
|
+ # perform standard build procedure
|
|
|
%{l_make} %{l_mflags}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
- %{l_shtool} subst -e "s;chmod 2755;true;" -e "s;chgrp mail;true;" Makefile
|
|
|
+
|
|
|
+ # 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
|
|
|
- rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/[A-Za-d]*
|
|
|
+
|
|
|
+ # strip down installation tree
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/[A-Za-d]*
|
|
|
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
|
|
|
- %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
+ 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 \
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
%{SOURCE muttrc} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/Muttrc
|
|
|
- %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
%{SOURCE mailcap} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/mailcap
|
|
|
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+
|
|
|
+ # determine installation files
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
%files -f files
|