|
|
@@ -22,7 +22,12 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
-%define V_mutt 1.3.23
|
|
|
+# version
|
|
|
+%define V_mutt 1.3.23
|
|
|
+
|
|
|
+# build options
|
|
|
+%define with_comp yes
|
|
|
+%define with_nntp yes
|
|
|
|
|
|
# package information
|
|
|
Name: mutt
|
|
|
@@ -34,12 +39,14 @@ Distribution: OpenPKG [EXP]
|
|
|
Group: Mail
|
|
|
License: BSD
|
|
|
Version: %{V_mutt}i
|
|
|
-Release: 0
|
|
|
+Release: 1
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.mutt.org/pub/mutt/devel/mutt-%{V_mutt}i.tar.gz
|
|
|
+Source0: ftp://ftp.mutt.org/pub/mutt/mutt-%{V_mutt}i.tar.gz
|
|
|
Source1: mailcap
|
|
|
Source2: muttrc
|
|
|
+Patch0: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.rr.compressed.gz
|
|
|
+Patch1: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.nntp.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -56,6 +63,12 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n mutt-%{V_mutt}
|
|
|
+%if "%{with_comp}" == "yes"
|
|
|
+ %patch0 -p1
|
|
|
+%endif
|
|
|
+%if "%{with_nntp}" == "yes"
|
|
|
+ %patch1 -p1
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
options=''
|
|
|
@@ -75,6 +88,12 @@ AutoReqProv: no
|
|
|
--enable-pop \
|
|
|
--enable-imap \
|
|
|
--disable-nls \
|
|
|
+%if "%{with_comp}" == "yes"
|
|
|
+ --enable-compressed \
|
|
|
+%endif
|
|
|
+%if "%{with_nntp}" == "yes"
|
|
|
+ --enable-nntp \
|
|
|
+%endif
|
|
|
$options
|
|
|
%{l_make} %{l_mflags}
|
|
|
|