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