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