]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with slang # use slang library instead of ncurses | |
4 | %bcond_with nntp # use VVV's NNTP patch | |
5 | %bcond_with folder_column # build with folder_column patch | |
6 | %bcond_without sasl # don't use sasl | |
7 | %bcond_without home_etc # don't use home_etc | |
8 | # | |
9 | Summary: The Mutt Mail User Agent | |
10 | Summary(de.UTF-8): Der Mutt Mail-User-Agent | |
11 | Summary(es.UTF-8): Mutt, cliente de correo electrónico | |
12 | Summary(fr.UTF-8): Agent courrier Mutt | |
13 | Summary(ko.UTF-8): 텍스트 기반의 MUA | |
14 | Summary(pl.UTF-8): Program pocztowy Mutt | |
15 | Summary(pt_BR.UTF-8): Mutt, cliente de correio eletrônico | |
16 | Summary(ru.UTF-8): Почтовая клиентская программа Mutt | |
17 | Summary(tr.UTF-8): Mutt elektronik posta programı | |
18 | Summary(uk.UTF-8): Поштова клієнтська програма Mutt | |
19 | Name: mutt | |
20 | Version: 1.5.15 | |
21 | Release: 2 | |
22 | Epoch: 6 | |
23 | License: GPL | |
24 | Group: Applications/Mail | |
25 | Source0: ftp://ftp.mutt.org/mutt/devel/%{name}-%{version}.tar.gz | |
26 | # Source0-md5: b2c1eb45fd958f6589ee52a98f2a3ce1 | |
27 | Source1: %{name}.desktop | |
28 | Source2: %{name}.png | |
29 | Source3: %{name}.1.pl | |
30 | Patch0: %{name}-pl.po-update.patch | |
31 | Patch1: %{name}-forcedotlock.patch | |
32 | Patch2: %{name}-rr.compressed.patch | |
33 | Patch3: %{name}-bj.status-time.patch | |
34 | Patch4: %{name}-vvv.quote.patch | |
35 | Patch5: %{name}-null_name.patch | |
36 | Patch6: %{name}-cd.trash_folder.patch | |
37 | Patch7: %{name}-cd.purge_message.patch | |
38 | Patch8: %{name}-cd.signatures_menu.patch | |
39 | Patch9: %{name}-crypt-autoselectkey.patch | |
40 | Patch10: %{name}-pgp_hook.patch | |
41 | Patch11: %{name}-manual.patch | |
42 | Patch12: %{name}-send_charset.patch | |
43 | Patch13: %{name}-xface.patch | |
44 | Patch14: %{name}-Muttrc_mbox_path.patch | |
45 | Patch15: %{name}-po.patch | |
46 | Patch16: %{name}-vvv.nntp.patch | |
47 | Patch17: %{name}-home_etc.patch | |
48 | Patch18: %{name}-Muttrc.patch | |
49 | Patch19: %{name}-muttbug-tmp.patch | |
50 | Patch20: %{name}-folder_columns.patch | |
51 | Patch21: %{name}-nr.tag_prefix_cond.patch | |
52 | URL: http://www.mutt.org/ | |
53 | BuildRequires: autoconf | |
54 | BuildRequires: automake | |
55 | %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0} | |
56 | BuildRequires: db-devel >= 4.0 | |
57 | BuildRequires: docbook-dtd42-xml | |
58 | BuildRequires: docbook-style-xsl | |
59 | %{?with_home_etc:BuildRequires: home-etc-devel >= 1.0.8} | |
60 | BuildRequires: gettext-devel | |
61 | BuildRequires: gpgme-devel >= 1:1.0.0 | |
62 | BuildRequires: libidn-devel | |
63 | BuildRequires: lynx | |
64 | %{!?with_slang:BuildRequires: ncurses-devel >= 5.0} | |
65 | BuildRequires: openssl-devel >= 0.9.7d | |
66 | %{?with_slang:BuildRequires: slang-devel} | |
67 | BuildRequires: libxslt-progs | |
68 | Requires: iconv | |
69 | Requires: mailcap | |
70 | %{?with_home_etc:Requires: home-etc >= 1.0.8} | |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %define specflags_ia32 -fomit-frame-pointer | |
74 | ||
75 | %description | |
76 | Mutt is a small but very poweful full-screen Unix mail client. | |
77 | Features include MIME support, color, POP3 support, message threading, | |
78 | bindable keys, and threaded sorting mode. | |
79 | ||
80 | %description -l de.UTF-8 | |
81 | Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für | |
82 | Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung, | |
83 | Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads. | |
84 | ||
85 | %description -l es.UTF-8 | |
86 | Mutt es un pequeño, pero muy potente cliente de correo en pantalla | |
87 | llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de | |
88 | mensajes, teclas configurables y clasificaciones por encadenamiento. | |
89 | ||
90 | %description -l fr.UTF-8 | |
91 | mutt est un client courrier Unix plein écran, petit mais très | |
92 | puissant. Il dispose de la gestion MIME, des couleurs, de la gestion | |
93 | POP, des fils de discussion, des touches liées et d'un mode de tri sur | |
94 | les fils. | |
95 | ||
96 | %description -l ko.UTF-8 | |
97 | Mutt는 작지만 매우 강력한 텍스트 기반의 메일 클라이언트이다. Mutt는 | |
98 | 많은 설정이 가능하다. 그리고, 키바인딩, 키보드 메크로, 메일 스레딩과 | |
99 | 같은 진보된 형태와 정규표현식 검색, 메일에서 선택된 그룹의 내용에서 | |
100 | 강력하게 일정한 패턴을 찾아내는 것을 지원함으로써 메일의 파워 유저에게 | |
101 | 가장 적합하다. | |
102 | ||
103 | %description -l pl.UTF-8 | |
104 | Mutt jest niewielkim programem pocztowym dla terminali tekstowych, | |
105 | posiadającym duże możliwości. Obsługuje MIME, POP3, cztery formaty | |
106 | skrzynek pocztowych, kolory, wątki, ocenę ważności listów (scoring) | |
107 | oraz skompresowane foldery. | |
108 | ||
109 | %description -l pt_BR.UTF-8 | |
110 | O Mutt é um pequeno mas muito poderoso cliente de correio em tela | |
111 | cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de | |
112 | mensagens, teclas configuráveis e classificação por encadeamento. | |
113 | ||
114 | %description -l ru.UTF-8 | |
115 | Mutt - это небольшой, но мощный полноэкранный почтовый клиент. | |
116 | Включает поддержку MIME, цвет, поддержку POP3 и IMAP, группировку | |
117 | сообщений по цепочкам, переопределяемые клавиши, поддержку pgp/gpg и | |
118 | сортировку сообщений в цепочках. Включает также (пока что | |
119 | экспериментальную) поддержку NNTP. | |
120 | ||
121 | %description -l tr.UTF-8 | |
122 | Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME | |
123 | desteği, renk ve POP3 desteği içerir. | |
124 | ||
125 | %description -l uk.UTF-8 | |
126 | Mutt - це невеликий, але потужний повноекранний поштовий клієнт. | |
127 | Містить підтримку MIME, колір, підтримку POP3 та IMAP, групування | |
128 | повідомлень по ланцюжкам, перевизначення клавіш, підтримку pgp/gpg та | |
129 | сортування повідомлень у ланцюжках. Містить також (поки що | |
130 | експериментальну) підтримку NNTP. | |
131 | ||
132 | %prep | |
133 | %setup -q | |
134 | %patch0 -p1 | |
135 | %patch1 -p1 | |
136 | %patch2 -p1 | |
137 | %patch3 -p1 | |
138 | %patch4 -p1 | |
139 | %patch5 -p1 | |
140 | %patch6 -p1 | |
141 | %patch7 -p1 | |
142 | %patch8 -p1 | |
143 | %patch9 -p1 | |
144 | %patch10 -p1 | |
145 | %patch11 -p1 | |
146 | %patch12 -p1 | |
147 | %patch13 -p1 | |
148 | %patch14 -p1 | |
149 | %patch15 -p1 | |
150 | %{?with_nntp:%patch16 -p1} | |
151 | %{?with_home_etc:%patch17 -p1} | |
152 | %patch18 -p1 | |
153 | %patch19 -p1 | |
154 | # breaks display if arrow_cursor is set | |
155 | %{?with_folder_column:%patch20 -p1} | |
156 | # disabled - changes default behaviour | |
157 | #%patch21 -p0 | |
158 | ||
159 | # force regeneration (manual.sgml is modified by some patches) | |
160 | rm -f doc/{manual*.html,manual.txt} | |
161 | ||
162 | %build | |
163 | %{__aclocal} -I m4 | |
164 | %{__autoconf} | |
165 | %{__autoheader} | |
166 | %{__automake} | |
167 | %configure \ | |
168 | mutt_cv_groupwrite=yes \ | |
169 | mutt_cv_worldwrite=no \ | |
170 | %{!?debug:--disable-debug} %{?debug:--enable-debug} \ | |
171 | --disable-warnings \ | |
172 | --enable-compressed \ | |
173 | --enable-external-dotlock \ | |
174 | --enable-gpgme \ | |
175 | --enable-hcache \ | |
176 | --enable-imap \ | |
177 | --enable-mailtool \ | |
178 | %{?with_nntp:--enable-nntp} \ | |
179 | --enable-pop \ | |
180 | --enable-smtp \ | |
181 | --with-bdb=/usr --without-gdbm \ | |
182 | %{!?with_slang:--with-curses} \ | |
183 | --with-docdir=%{_docdir}/%{name} \ | |
184 | %{?with_home_etc:--with-home-etc} \ | |
185 | --with-mailpath=/var/mail \ | |
186 | --with-mixmaster \ | |
187 | --with-regex \ | |
188 | %{?with_sasl:--with-sasl2} \ | |
189 | %{?with_slang:--with-slang} \ | |
190 | --with-ssl | |
191 | ||
192 | %{__make} | |
193 | %{__make} manual.txt -C doc | |
194 | ||
195 | %install | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/pl/man1} | |
198 | ||
199 | %{__make} install \ | |
200 | DESTDIR=$RPM_BUILD_ROOT \ | |
201 | DOTLOCK_GROUP= | |
202 | ||
203 | %{__patch} -p0 -d $RPM_BUILD_ROOT%{_sysconfdir} < %{PATCH12} | |
204 | ||
205 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
206 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
207 | install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1 | |
208 | ||
209 | # keep manual.txt.gz, the rest is installed as %doc | |
210 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]* | |
211 | gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.txt | |
212 | ||
213 | # conflict with qmail | |
214 | rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5* | |
215 | ||
216 | rm -f $RPM_BUILD_ROOT/etc/mime.types | |
217 | ||
218 | %find_lang %{name} | |
219 | ||
220 | %clean | |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
223 | %files -f %{name}.lang | |
224 | %defattr(644,root,root,755) | |
225 | %doc contrib/{*rc*,*cap*} ChangeLog README TODO NEWS README.SECURITY README.SSL README.xface | |
226 | %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/Muttrc | |
227 | %attr(755,root,root) %{_bindir}/mutt | |
228 | %attr(755,root,root) %{_bindir}/flea | |
229 | %attr(755,root,root) %{_bindir}/muttbug | |
230 | %attr(755,root,root) %{_bindir}/pgp* | |
231 | %attr(755,root,root) %{_bindir}/smime_keys | |
232 | %attr(2755,root,mail) %{_bindir}/mutt_dotlock | |
233 | ||
234 | %{_docdir}/%{name} | |
235 | %{_desktopdir}/*.desktop | |
236 | %{_pixmapsdir}/mutt.png | |
237 | %{_mandir}/man*/* | |
238 | %lang(pl) %{_mandir}/pl/man*/* |