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