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