]> git.pld-linux.org Git - packages/mutt.git/blob - mutt.spec
- sync with HEAD (vfolders, some new patches - commented for now)
[packages/mutt.git] / mutt.spec
1 #
2 # Conditional build:
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
6 %bcond_with     folder_column   # build with folder_column patch
7 %bcond_without  sasl            # don't use sasl
8 #%bcond_without home_etc        # don't use home_etc
9 #
10 Summary:        The Mutt Mail User Agent
11 Summary(de):    Der Mutt Mail-User-Agent
12 Summary(es):    Mutt, cliente de correo electrónico
13 Summary(fr):    Agent courrier Mutt
14 Summary(ko):    ÅؽºÆ® ±â¹ÝÀÇ MUA
15 Summary(pl):    Program pocztowy Mutt
16 Summary(pt_BR): Mutt, cliente de correio eletrônico
17 Summary(ru):    ðÏÞÔÏ×ÁÑ ËÌÉÅÎÔÓËÁÑ ÐÒÏÇÒÁÍÍÁ Mutt
18 Summary(tr):    Mutt elektronik posta programý
19 Summary(uk):    ðÏÛÔÏ×Á Ë̦¤ÎÔÓØËÁ ÐÒÏÇÒÁÍÁ Mutt
20 Name:           mutt
21 Version:        1.5.6
22 Release:        0.1
23 Epoch:          6
24 License:        GPL
25 Group:          Applications/Mail
26 Source0:        ftp://ftp.mutt.org/mutt/devel/%{name}-%{version}i.tar.gz
27 # Source0-md5:  aa1433635d7c86beba1675a3408b0324
28 Source1:        %{name}.desktop
29 Source2:        %{name}.png
30 Source3:        %{name}.1.pl
31 Patch1:         %{name}-forcedotlock.patch
32 Patch2:         %{name}-muttbug-tmp.patch
33 Patch3:         %{name}-rr.compressed.patch
34 Patch4:         %{name}-cd.edit_threads.patch
35 Patch5:         %{name}-bj.status-time.patch
36 Patch6:         %{name}-devl.narrow_tree.patch
37 Patch7:         %{name}-vvv.quote.gz
38 Patch8:         %{name}-null_name.patch
39 Patch9:         %{name}-cd.trash_folder.patch
40 Patch10:        %{name}-cd.purge_message.patch
41 Patch11:        %{name}-cd.signatures_menu.patch
42 Patch12:        %{name}-folder_columns.patch
43 Patch13:        %{name}-nr.tag_prefix_cond.patch
44 Patch15:        %{name}-pgp_hook.patch
45 Patch16:        %{name}-manual.patch
46 Patch17:        %{name}-send_charset.patch
47 Patch18:        %{name}-xface.patch
48 Patch19:        %{name}-sasl2.patch
49 Patch20:        %{name}-nntp.patch
50 #Patch21:       %{name}-esmtp.patch
51 #Patch22:       %{name}-home_etc.patch
52 #Patch23:       %{name}-kill_warnings.patch
53 #Patch24:       %{name}-Muttrc_mbox_path.patch
54 #Patch25:       %{name}-po.patch
55 URL:            http://www.mutt.org/
56 BuildRequires:  autoconf
57 BuildRequires:  automake
58 %{?with_sasl:BuildRequires:     cyrus-sasl-devel >= 2.1.0}
59 %{?with_home_etc:BuildRequires: home-etc-devel >= 1.0.8}
60 BuildRequires:  gettext-devel
61 %{!?with_slang:BuildRequires:   ncurses-devel >= 5.0}
62 BuildRequires:  openssl-devel >= 0.9.7d
63 BuildRequires:  sgml-tools
64 BuildRequires:  sgml-tools-dtd
65 %{?with_slang:BuildRequires:    slang-devel}
66 #%{?with_esmtp:BuildRequires:   libesmtp-devel}
67 Requires:       iconv
68 Requires:       mailcap
69 #%{?with_home_etc:Requires:     home-etc >= 1.0.8}
70 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72 %define         specflags_ia32   -fomit-frame-pointer 
73
74 %description
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.
78
79 %description -l de
80 Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für
81 Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung,
82 Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads.
83
84 %description -l es
85 Mutt es un pequeño, pero muy potente cliente de correo en pantalla
86 llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de
87 mensajes, teclas configurables y clasificaciones por encadenamiento.
88
89 %description -l fr
90 mutt est un client courrier Unix plein écran, petit mais très
91 puissant. Il dispose de la gestion MIME, des couleurs, de la gestion
92 POP, des fils de discussion, des touches liées et d'un mode de tri sur
93 les fils.
94
95 %description -l ko
96 Mutt´Â ÀÛÁö¸¸ ¸Å¿ì °­·ÂÇÑ ÅؽºÆ® ±â¹ÝÀÇ ¸ÞÀϠŬ¶óÀ̾ðÆ®ÀÌ´Ù. Mutt´Â
97 ¸¹Àº ¼³Á¤ÀÌ °¡´ÉÇÏ´Ù. ±×¸®°í, Å°¹ÙÀεù, Å°º¸µå ¸ÞÅ©·Î, ¸ÞÀÏ ½º·¹µù°ú
98 °°Àº Áøº¸µÈ ÇüÅ¿͠Á¤±ÔÇ¥Çö½Ä °Ë»ö, ¸ÞÀÏ¿¡¼­ ¼±ÅõȠ±×·ìÀÇ ³»¿ë¿¡¼­
99 °­·ÂÇÏ°Ô ÀÏÁ¤ÇÑ ÆÐÅÏÀ» Ã£¾Æ³»´Â °ÍÀ» Áö¿øÇÔÀ¸·Î½á ¸ÞÀÏÀÇ ÆÄ¿ö À¯Àú¿¡°Ô
100 °¡Àå ÀûÇÕÇÏ´Ù.
101
102 %description -l pl
103 Mutt jest niewielkim programem pocztowym dla terminali tekstowych,
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)
106 oraz skompresowane foldery.
107
108 %description -l pt_BR
109 O Mutt é um pequeno mas muito poderoso cliente de correio em tela
110 cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de
111 mensagens, teclas configuráveis e classificação por encadeamento.
112
113 %description -l ru
114 Mutt - ÜÔÏ ÎÅÂÏÌØÛÏÊ, ÎÏ ÍÏÝÎÙÊ ÐÏÌÎÏÜËÒÁÎÎÙÊ ÐÏÞÔÏ×ÙÊ ËÌÉÅÎÔ.
115 ÷ËÌÀÞÁÅÔ ÐÏÄÄÅÒÖËÕ MIME, Ã×ÅÔ, ÐÏÄÄÅÒÖËÕ POP3 É IMAP, ÇÒÕÐÐÉÒÏ×ËÕ
116 ÓÏÏÂÝÅÎÉÊ ÐÏ ÃÅÐÏÞËÁÍ, ÐÅÒÅÏÐÒÅÄÅÌÑÅÍÙÅ ËÌÁ×ÉÛÉ, ÐÏÄÄÅÒÖËÕ pgp/gpg É
117 ÓÏÒÔÉÒÏ×ËÕ ÓÏÏÂÝÅÎÉÊ × ÃÅÐÏÞËÁÈ. ÷ËÌÀÞÁÅÔ ÔÁËÖÅ (ÐÏËÁ ÞÔÏ
118 ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÕÀ) ÐÏÄÄÅÒÖËÕ NNTP.
119
120 %description -l tr
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.
123
124 %description -l uk
125 Mutt - ÃÅ ÎÅ×ÅÌÉËÉÊ, ÁÌÅ ÐÏÔÕÖÎÉÊ ÐÏ×ÎÏÅËÒÁÎÎÉÊ ÐÏÛÔÏ×ÉÊ Ë̦¤ÎÔ.
126 í¦ÓÔÉÔؠЦÄÔÒÉÍËÕ MIME, ËÏ̦Ò, Ð¦ÄÔÒÉÍËÕ POP3 ÔÁ IMAP, ÇÒÕÐÕ×ÁÎÎÑ
127 ÐÏצÄÏÍÌÅÎØ ÐÏ ÌÁÎÃÀÖËÁÍ, ÐÅÒÅ×ÉÚÎÁÞÅÎÎÑ ËÌÁצÛ, Ð¦ÄÔÒÉÍËÕ pgp/gpg ÔÁ
128 ÓÏÒÔÕ×ÁÎÎÑ ÐÏצÄÏÍÌÅÎØ Õ ÌÁÎÃÀÖËÁÈ. í¦ÓÔÉÔØ ÔÁËÏÖ (ÐÏËÉ ÝÏ
129 ÅËÓÐÅÒÉÍÅÎÔÁÌØÎÕ) Ð¦ÄÔÒÉÍËÕ NNTP.
130
131 %prep
132 %setup -q -n %{name}-%(echo %{version} | sed 's/i$//')
133 %patch1 -p1
134 %patch2 -p1
135 #%patch3 -p1
136 #%patch4 -p1
137 %patch5 -p1
138 #%patch7 -p1
139 %patch8 -p1
140 %patch9 -p1
141 %patch10 -p1
142 %patch11 -p1
143 # breaks display if arrow_cursor is set
144 #%{?with_folder_column:%patch12 -p1}
145 # disabled - changes default behaviour
146 #%patch13 -p0
147 #%patch15 -p1
148 %patch16 -p1
149 #%patch18 -p1
150 %{?with_sasl:%patch19 -p1}
151 %{?with_nntp:%patch20 -p1}
152 %{?with_esmtp:%patch21 -p1}
153 %{?with_home_etc:%patch22 -p1}
154
155 # force regeneration (manual.sgml is modified by some patches)
156 rm -f doc/{manual*.html,manual.txt}
157
158 %build
159 %{__aclocal} -I m4
160 %{__autoconf}
161 %{__autoheader}
162 %{__automake}
163 %configure \
164         %{!?debug:--disable-debug} %{?debug:--enable-debug} \
165         %{!?with_slang:--with-curses} \
166         %{?with_slang:--with-slang} \
167         --enable-compressed \
168         --enable-external-dotlock \
169         --enable-imap \
170         --without-included-gettext \
171         --enable-mailtool \
172         --with-mixmaster \
173         --enable-pop \
174         %{?with_nntp:--enable-nntp} \
175         --with-regex \
176         %{?with_sasl:--with-sasl} %{!?with_sasl:--without-sasl} \
177         %{?with_home_etc:--with-home-etc} %{!?with_home_etc:--without-home-etc} \
178         %{?with_esmtp:--enable-libesmtp --with-libesmtp=/usr} \
179         --with-ssl \
180         --disable-warnings \
181         --with-docdir=%{_docdir}/%{name} \
182         --with-homespool=Maildir \
183         --with-mailpath=/var/mail \
184         --with-sharedir=%{_datadir} \
185         --prefix=%{_prefix} \
186         --bindir=%{_bindir} \
187         --datadir=%{_datadir} \
188         --mandir=%{_mandir} \
189         --sysconfdir=%{_sysconfdir}
190
191 %{__make}
192 %{__make} manual.txt -C doc
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/pl/man1}
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT
200
201 %{__patch} -p0 -d $RPM_BUILD_ROOT%{_sysconfdir} < %{PATCH16}
202
203 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
204 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
205 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
206
207 # keep manual.txt.gz, the rest is installed as %doc
208 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]*
209 gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.txt
210
211 # conflict with qmail
212 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
213
214 rm -f $RPM_BUILD_ROOT/etc/mime.types
215
216 %find_lang %{name}
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %files -f %{name}.lang
222 %defattr(644,root,root,755)
223 %doc contrib/{*rc*,*cap*} ChangeLog README TODO NEWS README.SECURITY README.SSL README.xface %{?with_esmtp:Muttrc.esmtp}
224 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/Muttrc
225 %attr(755,root,root) %{_bindir}/mutt
226 %attr(755,root,root) %{_bindir}/flea
227 %attr(755,root,root) %{_bindir}/muttbug
228 %attr(755,root,root) %{_bindir}/pgp*
229 %attr(755,root,root) %{_bindir}/smime_keys
230 %attr(2755,root,mail) %{_bindir}/mutt_dotlock
231
232 %{_docdir}/%{name}
233 %{_desktopdir}/*.desktop
234 %{_pixmapsdir}/mutt.png
235 %{_mandir}/man*/*
236 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.165974 seconds and 3 git commands to generate.