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