]> git.pld-linux.org Git - packages/mutt.git/blame - mutt.spec
- outdated
[packages/mutt.git] / mutt.spec
CommitLineData
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 9Summary: The Mutt Mail User Agent
accde66a 10Summary(de.UTF-8): Der Mutt Mail-User-Agent
11Summary(es.UTF-8): Mutt, cliente de correo electrónico
12Summary(fr.UTF-8): Agent courrier Mutt
13Summary(ko.UTF-8): 텍스트 기반의 MUA
14Summary(pl.UTF-8): Program pocztowy Mutt
15Summary(pt_BR.UTF-8): Mutt, cliente de correio eletrônico
16Summary(ru.UTF-8): Почтовая клиентская программа Mutt
17Summary(tr.UTF-8): Mutt elektronik posta programı
18Summary(uk.UTF-8): Поштова клієнтська програма Mutt
8ee43b54 19Name: mutt
73c5771d 20Version: 1.5.15
6eddaf8c 21Release: 1
f668f5c2 22Epoch: 6
3315847b 23License: GPL
8ee43b54 24Group: Applications/Mail
68eeb855 25Source0: ftp://ftp.mutt.org/mutt/devel/%{name}-%{version}.tar.gz
73c5771d 26# Source0-md5: b2c1eb45fd958f6589ee52a98f2a3ce1
9410fa3a 27Source1: %{name}.desktop
e59f0c62 28Source2: %{name}.png
0c5cc6f4 29Source3: %{name}.1.pl
3ccb8be9
JB
30Patch0: %{name}-pl.po-update.patch
31Patch1: %{name}-forcedotlock.patch
68eeb855 32Patch2: %{name}-rr.compressed.patch
33Patch3: %{name}-bj.status-time.patch
34Patch4: %{name}-vvv.quote.patch
35Patch5: %{name}-null_name.patch
36Patch6: %{name}-cd.trash_folder.patch
37Patch7: %{name}-cd.purge_message.patch
38Patch8: %{name}-cd.signatures_menu.patch
a299ee6f
JB
39Patch9: %{name}-crypt-autoselectkey.patch
40Patch10: %{name}-pgp_hook.patch
68eeb855 41Patch11: %{name}-manual.patch
42Patch12: %{name}-send_charset.patch
43Patch13: %{name}-xface.patch
44Patch14: %{name}-Muttrc_mbox_path.patch
45Patch15: %{name}-po.patch
46Patch16: %{name}-vvv.nntp.patch
64bb8f70
JB
47Patch17: %{name}-home_etc.patch
48Patch18: %{name}-Muttrc.patch
49Patch19: %{name}-folder_columns.patch
50Patch20: %{name}-nr.tag_prefix_cond.patch
8ee43b54 51URL: http://www.mutt.org/
c8e7ecb3 52BuildRequires: autoconf
53BuildRequires: automake
5b7e3013 54%{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0}
f68ad43d 55BuildRequires: db-devel >= 4.0
a1d2fc26
JB
56BuildRequires: docbook-dtd42-xml
57BuildRequires: docbook-style-xsl
fc04ca15 58%{?with_home_etc:BuildRequires: home-etc-devel >= 1.0.8}
68eeb855 59BuildRequires: gettext-devel
60BuildRequires: gpgme-devel >= 1:1.0.0
61BuildRequires: libidn-devel
62BuildRequires: lynx
63%{!?with_slang:BuildRequires: ncurses-devel >= 5.0}
432bdad3 64BuildRequires: openssl-devel >= 0.9.7d
4f4c732e 65%{?with_slang:BuildRequires: slang-devel}
68eeb855 66BuildRequires: libxslt-progs
c8e7ecb3 67Requires: iconv
68Requires: mailcap
68eeb855 69%{?with_home_etc:Requires: home-etc >= 1.0.8}
4835d623 70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7ce86abe 71
68eeb855 72%define specflags_ia32 -fomit-frame-pointer
345713a9 73
7ce86abe 74%description
bae5245d 75Mutt is a small but very poweful full-screen Unix mail client.
76Features include MIME support, color, POP3 support, message threading,
77bindable keys, and threaded sorting mode.
7ce86abe 78
526e9628
JR
79%description -l de.UTF-8
80Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für
81Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung,
bae5245d 82Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads.
7ce86abe 83
526e9628
JR
84%description -l es.UTF-8
85Mutt es un pequeño, pero muy potente cliente de correo en pantalla
f00f6840 86llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de
87mensajes, teclas configurables y clasificaciones por encadenamiento.
88
526e9628
JR
89%description -l fr.UTF-8
90mutt est un client courrier Unix plein écran, petit mais très
bae5245d 91puissant. Il dispose de la gestion MIME, des couleurs, de la gestion
526e9628 92POP, des fils de discussion, des touches liées et d'un mode de tri sur
bae5245d 93les fils.
0b0e2df0 94
526e9628
JR
95%description -l ko.UTF-8
96Mutt는 작지만 매우 강력한 텍스트 기반의 메일 클라이언트이다. Mutt는
97많은 설정이 가능하다. 그리고, 키바인딩, 키보드 메크로, 메일 스레딩과
98같은 진보된 형태와 정규표현식 검색, 메일에서 선택된 그룹의 내용에서
99강력하게 일정한 패턴을 찾아내는 것을 지원함으로써 메일의 파워 유저에게
100가장 적합하다.
ad116805 101
526e9628 102%description -l pl.UTF-8
0d7cec54 103Mutt jest niewielkim programem pocztowym dla terminali tekstowych,
526e9628
JR
104posiadającym duże możliwości. Obsługuje MIME, POP3, cztery formaty
105skrzynek pocztowych, kolory, wątki, ocenę ważności listów (scoring)
bae5245d 106oraz skompresowane foldery.
28aef375 107
526e9628
JR
108%description -l pt_BR.UTF-8
109O Mutt é um pequeno mas muito poderoso cliente de correio em tela
f00f6840 110cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de
526e9628 111mensagens, teclas configuráveis e classificação por encadeamento.
f00f6840 112
526e9628
JR
113%description -l ru.UTF-8
114Mutt - это небольшой, но мощный полноэкранный почтовый клиент.
115Включает поддержку MIME, цвет, поддержку POP3 и IMAP, группировку
116сообщений по цепочкам, переопределяемые клавиши, поддержку pgp/gpg и
117сортировку сообщений в цепочках. Включает также (пока что
118экспериментальную) поддержку NNTP.
4f08f01c 119
526e9628
JR
120%description -l tr.UTF-8
121Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME
122desteği, renk ve POP3 desteği içerir.
7ce86abe 123
526e9628
JR
124%description -l uk.UTF-8
125Mutt - це невеликий, але потужний повноекранний поштовий клієнт.
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)
158rm -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 193rm -rf $RPM_BUILD_ROOT
d569e24c 194install -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 202install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
c9d6a47c 203install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
0c5cc6f4 204install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
d569e24c
JB
205
206# keep manual.txt.gz, the rest is installed as %doc
207rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]*
208gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.txt
d7a1003b 209
d2a4296e 210# conflict with qmail
c9d6a47c 211rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
d2a4296e 212
68eeb855 213rm -f $RPM_BUILD_ROOT/etc/mime.types
ab700641 214
5e916280 215%find_lang %{name}
216
7ce86abe 217%clean
c9d6a47c 218rm -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*/*
This page took 0.07296 seconds and 4 git commands to generate.