]> git.pld-linux.org Git - packages/mutt.git/blob - mutt.spec
- added libesmtp support (not enabled by default)
[packages/mutt.git] / mutt.spec
1 #
2 # Conditional build:
3 # _with_slang   - use slang library instead of ncurses
4 # _with_nntp    - use VVV's NNTP patch
5 # _with_esmtp   - use esmtp patch
6 # _without_sasl - don't use sasl
7 #
8 Summary:        The Mutt Mail User Agent
9 Summary(de):    Der Mutt Mail-User-Agent
10 Summary(es):    Mutt, cliente de correo electrónico
11 Summary(fr):    Agent courrier Mutt
12 Summary(ko):    ÅؽºÆ® ±â¹ÝÀÇ MUA
13 Summary(pl):    Program pocztowy Mutt
14 Summary(pt_BR): Mutt, cliente de correio eletrônico
15 Summary(ru):    ðÏÞÔÏ×ÁÑ ËÌÉÅÎÔÓËÁÑ ÐÒÏÇÒÁÍÍÁ Mutt
16 Summary(tr):    Mutt elektronik posta programý
17 Summary(uk):    ðÏÛÔÏ×Á Ë̦¤ÎÔÓØËÁ ÐÒÏÇÒÁÍÁ Mutt
18 Name:           mutt
19 Version:        1.4.1
20 Release:        3
21 Epoch:          5
22 License:        GPL
23 Group:          Applications/Mail
24 Source0:        ftp://ftp.mutt.org/mutt/%{name}-%{version}i.tar.gz
25 # Source0-md5: fb5418135c5be2638964eef2f654f847
26 Source1:        %{name}.desktop
27 Source2:        %{name}.png
28 Source3:        %{name}.1.pl
29 Source4:    %{name}-esmtp.rc
30 Patch0:         %{name}-home_etc.patch
31 Patch1:         %{name}-forcedotlock.patch
32 Patch2:         %{name}-muttbug-tmp.patch
33 Patch3:         %{name}-rr.compressed.patch
34 Patch4:         %{name}-cd.edit_threads.patch
35 Patch5:         %{name}-bj.status-time.patch
36 Patch6:         %{name}-devl.narrow_tree.patch
37 Patch7:         %{name}-vvv.quote.gz
38 Patch8:         %{name}-null_name.patch
39 Patch9:         %{name}-cd.trash_folder.patch
40 Patch10:        %{name}-cd.purge_message.patch
41 Patch11:        %{name}-cd.signatures_menu.patch
42 Patch12:        %{name}-folder_columns.patch
43 Patch13:        %{name}-nr.tag_prefix_cond.patch
44 Patch14:        %{name}-LIBOBJ.patch
45 Patch15:        %{name}-pgp_hook.patch
46 Patch16:        %{name}-manual.patch
47 Patch17:        %{name}-send_charset.patch
48 Patch18:        %{name}-xface.patch
49 Patch19:        %{name}-sasl2.patch
50 Patch20:        %{name}-nntp.patch
51 Patch21:    %{name}-esmtp.patch
52 URL:            http://www.mutt.org/
53 BuildRequires:  autoconf
54 BuildRequires:  automake
55 %{!?_without_sasl:BuildRequires:        cyrus-sasl-devel >= 2.1.0}
56 BuildRequires:  gettext-devel
57 %{!?_with_slang:BuildRequires:          ncurses-devel >= 5.0}
58 BuildRequires:  openssl-devel >= 0.9.7
59 BuildRequires:  sgml-tools
60 BuildRequires:  sgml-tools-dtd
61 %{?_with_slang:BuildRequires:           slang-devel}
62 %{?_with_esmtp:BuildRequires:       libesmtp-devel}
63 Requires:       iconv
64 Requires:       mailcap
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %define         specflags_ia32  "-fomit-frame-pointer"
68
69 %description
70 Mutt is a small but very poweful full-screen Unix mail client.
71 Features include MIME support, color, POP3 support, message threading,
72 bindable keys, and threaded sorting mode.
73
74 %description -l de
75 Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für
76 Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung,
77 Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads.
78
79 %description -l es
80 Mutt es un pequeño, pero muy potente cliente de correo en pantalla
81 llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de
82 mensajes, teclas configurables y clasificaciones por encadenamiento.
83
84 %description -l fr
85 mutt est un client courrier Unix plein écran, petit mais très
86 puissant. Il dispose de la gestion MIME, des couleurs, de la gestion
87 POP, des fils de discussion, des touches liées et d'un mode de tri sur
88 les fils.
89
90 %description -l ko
91 Mutt´Â ÀÛÁö¸¸ ¸Å¿ì °­·ÂÇÑ ÅؽºÆ® ±â¹ÝÀÇ ¸ÞÀϠŬ¶óÀ̾ðÆ®ÀÌ´Ù. Mutt´Â
92 ¸¹Àº ¼³Á¤ÀÌ °¡´ÉÇÏ´Ù. ±×¸®°í, Å°¹ÙÀεù, Å°º¸µå ¸ÞÅ©·Î, ¸ÞÀÏ ½º·¹µù°ú
93 °°Àº Áøº¸µÈ ÇüÅ¿͠Á¤±ÔÇ¥Çö½Ä °Ë»ö, ¸ÞÀÏ¿¡¼­ ¼±ÅõȠ±×·ìÀÇ ³»¿ë¿¡¼­
94 °­·ÂÇÏ°Ô ÀÏÁ¤ÇÑ ÆÐÅÏÀ» Ã£¾Æ³»´Â °ÍÀ» Áö¿øÇÔÀ¸·Î½á ¸ÞÀÏÀÇ ÆÄ¿ö À¯Àú¿¡°Ô
95 °¡Àå ÀûÇÕÇÏ´Ù.
96
97 %description -l pl
98 Mutt jest niewielkim programem pocztowym dla terminali tekstowych,
99 posiadaj±cym du¿e mo¿liwo¶ci. Obs³uguje MIME, POP3, cztery formaty
100 skrzynek pocztowych, kolory, w±tki, ocenê wa¿no¶ci listów (scoring)
101 oraz skompresowane foldery.
102
103 %description -l pt_BR
104 O Mutt é um pequeno mas muito poderoso cliente de correio em tela
105 cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de
106 mensagens, teclas configuráveis e classificação por encadeamento.
107
108 %description -l ru
109 Mutt - ÜÔÏ ÎÅÂÏÌØÛÏÊ, ÎÏ ÍÏÝÎÙÊ ÐÏÌÎÏÜËÒÁÎÎÙÊ ÐÏÞÔÏ×ÙÊ ËÌÉÅÎÔ.
110 ÷ËÌÀÞÁÅÔ ÐÏÄÄÅÒÖËÕ MIME, Ã×ÅÔ, ÐÏÄÄÅÒÖËÕ POP3 É IMAP, ÇÒÕÐÐÉÒÏ×ËÕ
111 ÓÏÏÂÝÅÎÉÊ ÐÏ ÃÅÐÏÞËÁÍ, ÐÅÒÅÏÐÒÅÄÅÌÑÅÍÙÅ ËÌÁ×ÉÛÉ, ÐÏÄÄÅÒÖËÕ pgp/gpg É
112 ÓÏÒÔÉÒÏ×ËÕ ÓÏÏÂÝÅÎÉÊ × ÃÅÐÏÞËÁÈ. ÷ËÌÀÞÁÅÔ ÔÁËÖÅ (ÐÏËÁ ÞÔÏ
113 ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÕÀ) ÐÏÄÄÅÒÖËÕ NNTP.
114
115 %description -l tr
116 Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME
117 desteði, renk ve POP3 desteði içerir.
118
119 %description -l uk
120 Mutt - ÃÅ ÎÅ×ÅÌÉËÉÊ, ÁÌÅ ÐÏÔÕÖÎÉÊ ÐÏ×ÎÏÅËÒÁÎÎÉÊ ÐÏÛÔÏ×ÉÊ Ë̦¤ÎÔ.
121 í¦ÓÔÉÔؠЦÄÔÒÉÍËÕ MIME, ËÏ̦Ò, Ð¦ÄÔÒÉÍËÕ POP3 ÔÁ IMAP, ÇÒÕÐÕ×ÁÎÎÑ
122 ÐÏצÄÏÍÌÅÎØ ÐÏ ÌÁÎÃÀÖËÁÍ, ÐÅÒÅ×ÉÚÎÁÞÅÎÎÑ ËÌÁצÛ, Ð¦ÄÔÒÉÍËÕ pgp/gpg ÔÁ
123 ÓÏÒÔÕ×ÁÎÎÑ ÐÏצÄÏÍÌÅÎØ Õ ÌÁÎÃÀÖËÁÈ. í¦ÓÔÉÔØ ÔÁËÏÖ (ÐÏËÉ ÝÏ
124 ÅËÓÐÅÒÉÍÅÎÔÁÌØÎÕ) Ð¦ÄÔÒÉÍËÕ NNTP.
125
126 %prep
127 %setup -q -n %{name}-%(echo %{version} | sed 's/i$//')
128 %patch0 -p1
129 %patch1 -p1
130 %patch2 -p1
131 %patch3 -p1
132 %patch4 -p1
133 %patch5 -p1
134 %patch6 -p1
135 %patch7 -p1
136 %patch8 -p1
137 %patch9 -p1
138 %patch10 -p1
139 %patch11 -p1
140 %patch12 -p1
141 #%patch13 -p0
142 %patch14 -p1
143 %patch15 -p1
144 %patch16 -p1
145 %patch18 -p1
146 %{!?_without_sasl:%patch19 -p1}
147 %{?_with_nntp:%patch20 -p1}
148 %{?_with_esmtp:%patch21 -p1}
149
150 # force regeneration (manual.sgml is modified by some patches)
151 rm -f doc/{manual*.html,manual.txt}
152
153 %build
154 %{__aclocal} -I m4
155 %{__autoconf}
156 %{__automake}
157 %configure \
158         %{!?debug:--disable-debug} %{?debug:--enable-debug} \
159         %{!?_with_slang:--with-curses} \
160         %{?_with_slang:--with-slang} \
161         --enable-compressed \
162         --enable-external-dotlock \
163         --enable-imap \
164         --without-included-gettext \
165         --enable-mailtool \
166         --with-mixmaster \
167         --enable-pop \
168         %{?_with_nntp:--enable-nntp} \
169         --with-regex \
170         %{!?_without_sasl:--with-sasl} %{?_without_sasl:--without-sasl} \
171     %{?_with_esmtp:--enable-libesmtp --with-libesmtp=/usr} \
172         --with-ssl \
173         --disable-warnings \
174         --with-docdir=%{_docdir}/%{name}-%{version} \
175         --with-homespool=Maildir \
176         --with-mailpath=/var/mail \
177         --with-sharedir=%{_datadir} \
178         --prefix=%{_prefix} \
179         --bindir=%{_bindir} \
180         --datadir=%{_datadir} \
181         --mandir=%{_mandir} \
182         --sysconfdir=%{_sysconfdir}
183
184 %{__make}
185 %{__make} manual.txt -C doc
186
187 %install
188 rm -rf $RPM_BUILD_ROOT
189 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Mail,%{_pixmapsdir}} \
190         $RPM_BUILD_ROOT%{_mandir}/pl/man1
191
192 %{__make} install DESTDIR=$RPM_BUILD_ROOT
193
194 %{__patch} -p0 -d $RPM_BUILD_ROOT%{_sysconfdir} < %PATCH17
195
196 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
197 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
198 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
199
200 # conflict with qmail
201 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
202
203 rm -f $RPM_BUILD_ROOT/etc/mime.types
204
205 %find_lang %{name}
206
207 %clean
208 rm -rf $RPM_BUILD_ROOT
209
210 %files -f %{name}.lang
211 %defattr(644,root,root,755)
212 %doc contrib/{*rc*,*cap*} ChangeLog README TODO NEWS README.SECURITY README.SSL doc/manual.txt README.xface %{?_with_esmtp: Muttrc.esmtp}
213 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/Muttrc
214 %attr(755,root,root) %{_bindir}/mutt
215 %attr(755,root,root) %{_bindir}/flea
216 %attr(755,root,root) %{_bindir}/muttbug
217 %attr(755,root,root) %{_bindir}/pgp*
218 %attr(2755,root,mail) %{_bindir}/mutt_dotlock
219
220 %{_applnkdir}/Network/Mail/mutt.desktop
221 %{_pixmapsdir}/mutt.png
222 %{_mandir}/man*/*
223 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.099453 seconds and 4 git commands to generate.