]>
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 JB |
7 | %bcond_without sasl # don't use sasl |
8 | %bcond_without home_etc # don't use home_etc | |
1944845a | 9 | # |
8ee43b54 | 10 | Summary: The Mutt Mail User Agent |
526e9628 JR |
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 |
c6886254 | 21 | Version: 1.4.2.2 |
22 | Release: 1 | |
f668f5c2 | 23 | Epoch: 6 |
3315847b | 24 | License: GPL |
8ee43b54 | 25 | Group: Applications/Mail |
fc04ca15 | 26 | Source0: ftp://ftp.mutt.org/mutt/%{name}-%{version}i.tar.gz |
c6886254 | 27 | # Source0-md5: 51a08429c5bd5c34af3f4268b8cbcda3 |
9410fa3a | 28 | Source1: %{name}.desktop |
e59f0c62 | 29 | Source2: %{name}.png |
0c5cc6f4 | 30 | Source3: %{name}.1.pl |
fc04ca15 | 31 | Patch0: %{name}-paths.patch |
ba050ae5 | 32 | Patch1: %{name}-forcedotlock.patch |
fc04ca15 JB |
33 | Patch2: %{name}-muttbug-tmp.patch |
34 | Patch3: %{name}-rr.compressed.patch | |
35 | Patch4: %{name}-cd.edit_threads.patch | |
36 | Patch5: %{name}-bj.status-time.patch | |
37 | Patch6: %{name}-devl.narrow_tree.patch | |
38 | Patch7: %{name}-vvv.quote.gz | |
39 | Patch8: %{name}-null_name.patch | |
40 | Patch9: %{name}-cd.trash_folder.patch | |
41 | Patch10: %{name}-cd.purge_message.patch | |
42 | Patch11: %{name}-cd.signatures_menu.patch | |
43 | Patch12: %{name}-folder_columns.patch | |
44 | Patch13: %{name}-nr.tag_prefix_cond.patch | |
45 | Patch14: %{name}-pgp_hook.patch | |
46 | Patch15: %{name}-manual.patch | |
47 | Patch16: %{name}-send_charset.patch | |
48 | Patch17: %{name}-xface.patch | |
49 | Patch18: %{name}-sasl2.patch | |
50 | Patch19: %{name}-nntp.patch | |
51 | Patch20: %{name}-esmtp.patch | |
52 | Patch21: %{name}-home_etc.patch | |
53 | Patch22: %{name}-kill_warnings.patch | |
54 | Patch23: %{name}-Muttrc_mbox_path.patch | |
55 | Patch24: %{name}-po.patch | |
37b65dca | 56 | Patch25: %{name}-sasl-fixes.patch |
8ee43b54 | 57 | URL: http://www.mutt.org/ |
fc04ca15 | 58 | %{!?with_slang:BuildRequires: ncurses-devel >= 5.4-0.7} |
c8e7ecb3 | 59 | BuildRequires: autoconf |
60 | BuildRequires: automake | |
5b7e3013 | 61 | %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0} |
f5cfef59 | 62 | BuildRequires: gettext-devel |
fc04ca15 JB |
63 | BuildRequires: groff |
64 | %{?with_home_etc:BuildRequires: home-etc-devel >= 1.0.8} | |
65 | %{?with_esmtp:BuildRequires: libesmtp-devel} | |
432bdad3 | 66 | BuildRequires: openssl-devel >= 0.9.7d |
fc04ca15 | 67 | BuildRequires: sgml-tools >= 1.0.9-20 |
302e2bd2 | 68 | BuildRequires: sgml-tools-dtd |
4f4c732e | 69 | %{?with_slang:BuildRequires: slang-devel} |
fc04ca15 | 70 | %{?with_home_etc:Requires: home-etc >= 1.0.8} |
c8e7ecb3 | 71 | Requires: iconv |
72 | Requires: mailcap | |
4835d623 | 73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7ce86abe | 74 | |
fc04ca15 | 75 | %define specflags_ia32 -fomit-frame-pointer |
345713a9 | 76 | |
7ce86abe | 77 | %description |
bae5245d | 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. | |
7ce86abe | 81 | |
526e9628 JR |
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, | |
bae5245d | 85 | Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads. |
7ce86abe | 86 | |
526e9628 JR |
87 | %description -l es.UTF-8 |
88 | Mutt es un pequeño, pero muy potente cliente de correo en pantalla | |
f00f6840 | 89 | llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de |
90 | mensajes, teclas configurables y clasificaciones por encadenamiento. | |
91 | ||
526e9628 JR |
92 | %description -l fr.UTF-8 |
93 | mutt est un client courrier Unix plein écran, petit mais très | |
bae5245d | 94 | puissant. Il dispose de la gestion MIME, des couleurs, de la gestion |
526e9628 | 95 | POP, des fils de discussion, des touches liées et d'un mode de tri sur |
bae5245d | 96 | les fils. |
0b0e2df0 | 97 | |
526e9628 JR |
98 | %description -l ko.UTF-8 |
99 | Mutt는 작지만 매우 강력한 텍스트 기반의 메일 클라이언트이다. Mutt는 | |
100 | 많은 설정이 가능하다. 그리고, 키바인딩, 키보드 메크로, 메일 스레딩과 | |
101 | 같은 진보된 형태와 정규표현식 검색, 메일에서 선택된 그룹의 내용에서 | |
102 | 강력하게 일정한 패턴을 찾아내는 것을 지원함으로써 메일의 파워 유저에게 | |
103 | 가장 적합하다. | |
ad116805 | 104 | |
526e9628 | 105 | %description -l pl.UTF-8 |
0d7cec54 | 106 | Mutt jest niewielkim programem pocztowym dla terminali tekstowych, |
526e9628 JR |
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) | |
bae5245d | 109 | oraz skompresowane foldery. |
28aef375 | 110 | |
526e9628 JR |
111 | %description -l pt_BR.UTF-8 |
112 | O Mutt é um pequeno mas muito poderoso cliente de correio em tela | |
f00f6840 | 113 | cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de |
526e9628 | 114 | mensagens, teclas configuráveis e classificação por encadeamento. |
f00f6840 | 115 | |
526e9628 JR |
116 | %description -l ru.UTF-8 |
117 | Mutt - это небольшой, но мощный полноэкранный почтовый клиент. | |
118 | Включает поддержку MIME, цвет, поддержку POP3 и IMAP, группировку | |
119 | сообщений по цепочкам, переопределяемые клавиши, поддержку pgp/gpg и | |
120 | сортировку сообщений в цепочках. Включает также (пока что | |
121 | экспериментальную) поддержку NNTP. | |
4f08f01c | 122 | |
526e9628 JR |
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. | |
7ce86abe | 126 | |
526e9628 JR |
127 | %description -l uk.UTF-8 |
128 | Mutt - це невеликий, але потужний повноекранний поштовий клієнт. | |
129 | Містить підтримку MIME, колір, підтримку POP3 та IMAP, групування | |
130 | повідомлень по ланцюжкам, перевизначення клавіш, підтримку pgp/gpg та | |
131 | сортування повідомлень у ланцюжках. Містить також (поки що | |
132 | експериментальну) підтримку NNTP. | |
4f08f01c | 133 | |
7ce86abe | 134 | %prep |
fc04ca15 JB |
135 | %setup -q -n %{name}-%(echo %{version} | sed 's/i$//') |
136 | %patch0 -p1 | |
ba050ae5 JB |
137 | %patch1 -p1 |
138 | %patch2 -p1 | |
cd2b4a0e | 139 | %patch3 -p1 |
afcc6692 | 140 | %patch4 -p1 |
141 | %patch5 -p1 | |
142 | %patch6 -p1 | |
143 | %patch7 -p1 | |
eb6df634 | 144 | %patch8 -p1 |
fc04ca15 JB |
145 | %patch9 -p1 |
146 | %patch10 -p1 | |
147 | %patch11 -p1 | |
45b62785 | 148 | # breaks display if arrow_cursor is set |
fc04ca15 | 149 | %{?with_folder_column:%patch12 -p1} |
2f7eb26d | 150 | # disabled - changes default behaviour |
fc04ca15 | 151 | ##%patch13 -p0 |
641188ce | 152 | %patch14 -p1 |
b27071fe | 153 | %patch15 -p1 |
fc04ca15 JB |
154 | %patch16 -p1 |
155 | %patch17 -p1 | |
156 | %{?with_sasl:%patch18 -p1} | |
157 | %{?with_nntp:%patch19 -p1} | |
158 | %{?with_esmtp:%patch20 -p1} | |
159 | %{?with_home_etc:%patch21 -p1} | |
160 | %patch22 -p1 | |
161 | %patch23 -p1 | |
162 | %patch24 -p1 | |
37b65dca | 163 | %patch25 -p1 |
21c56776 | 164 | |
fb11449b JB |
165 | # force regeneration (manual.sgml is modified by some patches) |
166 | rm -f doc/{manual*.html,manual.txt} | |
167 | ||
7ce86abe | 168 | %build |
641188ce | 169 | %{__aclocal} -I m4 |
49182680 | 170 | %{__autoconf} |
2f7eb26d | 171 | %{__autoheader} |
641188ce | 172 | %{__automake} |
eb6df634 | 173 | %configure \ |
fc04ca15 JB |
174 | --%{?debug:en}%{!?debug:dis}able-debug \ |
175 | %{!?with_slang:--with-curses} \ | |
176 | %{?with_slang:--with-slang} \ | |
e088eb54 | 177 | --enable-compressed \ |
178 | --enable-external-dotlock \ | |
28aef375 | 179 | --enable-imap \ |
fc04ca15 | 180 | --without-included-gettext \ |
e22edb0e | 181 | --enable-mailtool \ |
fc04ca15 | 182 | --with-mixmaster \ |
f5cfef59 | 183 | --enable-pop \ |
fc04ca15 JB |
184 | %{?with_nntp:--enable-nntp} \ |
185 | --with-regex \ | |
186 | --with%{!?with_sasl:out}-sasl \ | |
187 | --with%{!?with_home_etc:out}-home-etc \ | |
188 | %{?with_esmtp:--enable-libesmtp --with-libesmtp=/usr} \ | |
189 | --with-ssl \ | |
190 | --disable-warnings \ | |
d569e24c | 191 | --with-docdir=%{_docdir}/%{name} \ |
e22edb0e TP |
192 | --with-homespool=Maildir \ |
193 | --with-mailpath=/var/mail \ | |
fc04ca15 JB |
194 | --with-sharedir=%{_datadir} \ |
195 | --prefix=%{_prefix} \ | |
196 | --bindir=%{_bindir} \ | |
197 | --datadir=%{_datadir} \ | |
198 | --mandir=%{_mandir} \ | |
199 | --sysconfdir=%{_sysconfdir} | |
28aef375 | 200 | |
f00f6840 | 201 | %{__make} |
202 | %{__make} manual.txt -C doc | |
7ce86abe | 203 | |
204 | %install | |
c9d6a47c | 205 | rm -rf $RPM_BUILD_ROOT |
d569e24c | 206 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/pl/man1} |
7ce86abe | 207 | |
626a7a4b | 208 | %{__make} install \ |
209 | DESTDIR=$RPM_BUILD_ROOT | |
7ce86abe | 210 | |
fc04ca15 | 211 | %{__patch} -p0 -d $RPM_BUILD_ROOT%{_sysconfdir} < %{PATCH16} |
76f44ae0 | 212 | |
626a7a4b | 213 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
c9d6a47c | 214 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
0c5cc6f4 | 215 | install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1 |
d569e24c JB |
216 | |
217 | # keep manual.txt.gz, the rest is installed as %doc | |
218 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]* | |
219 | gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.txt | |
d7a1003b | 220 | |
d2a4296e | 221 | # conflict with qmail |
c9d6a47c | 222 | rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5* |
d2a4296e | 223 | |
fc04ca15 | 224 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types |
ab700641 | 225 | |
5e916280 | 226 | %find_lang %{name} |
227 | ||
7ce86abe | 228 | %clean |
c9d6a47c | 229 | rm -rf $RPM_BUILD_ROOT |
7ce86abe | 230 | |
5e916280 | 231 | %files -f %{name}.lang |
28aef375 | 232 | %defattr(644,root,root,755) |
2f7eb26d | 233 | %doc contrib/{*rc*,*cap*} ChangeLog README TODO NEWS README.SECURITY README.SSL README.xface %{?with_esmtp:Muttrc.esmtp} |
fc04ca15 | 234 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/Muttrc |
cc0baea0 | 235 | %attr(755,root,root) %{_bindir}/mutt |
e59f0c62 AM |
236 | %attr(755,root,root) %{_bindir}/flea |
237 | %attr(755,root,root) %{_bindir}/muttbug | |
238 | %attr(755,root,root) %{_bindir}/pgp* | |
c4437dcb | 239 | %attr(2755,root,mail) %{_bindir}/mutt_dotlock |
159f199d | 240 | |
d569e24c | 241 | %{_docdir}/%{name} |
626a7a4b | 242 | %{_desktopdir}/*.desktop |
cc0baea0 | 243 | %{_pixmapsdir}/mutt.png |
e201943a | 244 | %{_mandir}/man*/* |
0c5cc6f4 | 245 | %lang(pl) %{_mandir}/pl/man*/* |