]> git.pld-linux.org Git - packages/mutt.git/blob - mutt.spec
- BuildRequires: groff
[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.4.2.1
22 Release:        8.1
23 Epoch:          6
24 License:        GPL
25 Group:          Applications/Mail
26 Source0:        ftp://ftp.mutt.org/mutt/%{name}-%{version}i.tar.gz
27 # Source0-md5:  710bd56d3c4c4bcd1403bc4e053f7476
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 Patch14:        %{name}-pgp_hook.patch
45 Patch15:        %{name}-manual.patch
46 Patch16:        %{name}-send_charset.patch
47 Patch17:        %{name}-xface.patch
48 Patch18:        %{name}-sasl2.patch
49 Patch19:        %{name}-nntp.patch
50 Patch20:        %{name}-esmtp.patch
51 Patch21:        %{name}-home_etc.patch
52 Patch22:        %{name}-kill_warnings.patch
53 Patch23:        %{name}-Muttrc_mbox_path.patch
54 Patch24:        %{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 BuildRequires:  groff
62 %{!?with_slang:BuildRequires:   ncurses-devel >= 5.0}
63 BuildRequires:  openssl-devel >= 0.9.7d
64 BuildRequires:  sgml-tools >= 1.0.9-20
65 BuildRequires:  sgml-tools-dtd
66 %{?with_slang:BuildRequires:    slang-devel}
67 %{?with_esmtp:BuildRequires:    libesmtp-devel}
68 Requires:       iconv
69 Requires:       mailcap
70 %{?with_home_etc:Requires:      home-etc >= 1.0.8}
71 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
73 %define         specflags_ia32   -fomit-frame-pointer 
74
75 %description
76 Mutt is a small but very poweful full-screen Unix mail client.
77 Features include MIME support, color, POP3 support, message threading,
78 bindable keys, and threaded sorting mode.
79
80 %description -l de
81 Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für
82 Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung,
83 Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads.
84
85 %description -l es
86 Mutt es un pequeño, pero muy potente cliente de correo en pantalla
87 llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de
88 mensajes, teclas configurables y clasificaciones por encadenamiento.
89
90 %description -l fr
91 mutt est un client courrier Unix plein écran, petit mais très
92 puissant. Il dispose de la gestion MIME, des couleurs, de la gestion
93 POP, des fils de discussion, des touches liées et d'un mode de tri sur
94 les fils.
95
96 %description -l ko
97 Mutt´Â ÀÛÁö¸¸ ¸Å¿ì °­·ÂÇÑ ÅؽºÆ® ±â¹ÝÀÇ ¸ÞÀϠŬ¶óÀ̾ðÆ®ÀÌ´Ù. Mutt´Â
98 ¸¹Àº ¼³Á¤ÀÌ °¡´ÉÇÏ´Ù. ±×¸®°í, Å°¹ÙÀεù, Å°º¸µå ¸ÞÅ©·Î, ¸ÞÀÏ ½º·¹µù°ú
99 °°Àº Áøº¸µÈ ÇüÅ¿͠Á¤±ÔÇ¥Çö½Ä °Ë»ö, ¸ÞÀÏ¿¡¼­ ¼±ÅõȠ±×·ìÀÇ ³»¿ë¿¡¼­
100 °­·ÂÇÏ°Ô ÀÏÁ¤ÇÑ ÆÐÅÏÀ» Ã£¾Æ³»´Â °ÍÀ» Áö¿øÇÔÀ¸·Î½á ¸ÞÀÏÀÇ ÆÄ¿ö À¯Àú¿¡°Ô
101 °¡Àå ÀûÇÕÇÏ´Ù.
102
103 %description -l pl
104 Mutt jest niewielkim programem pocztowym dla terminali tekstowych,
105 posiadaj±cym du¿e mo¿liwo¶ci. Obs³uguje MIME, POP3, cztery formaty
106 skrzynek pocztowych, kolory, w±tki, ocenê wa¿no¶ci listów (scoring)
107 oraz skompresowane foldery.
108
109 %description -l pt_BR
110 O Mutt é um pequeno mas muito poderoso cliente de correio em tela
111 cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de
112 mensagens, teclas configuráveis e classificação por encadeamento.
113
114 %description -l ru
115 Mutt - ÜÔÏ ÎÅÂÏÌØÛÏÊ, ÎÏ ÍÏÝÎÙÊ ÐÏÌÎÏÜËÒÁÎÎÙÊ ÐÏÞÔÏ×ÙÊ ËÌÉÅÎÔ.
116 ÷ËÌÀÞÁÅÔ ÐÏÄÄÅÒÖËÕ MIME, Ã×ÅÔ, ÐÏÄÄÅÒÖËÕ POP3 É IMAP, ÇÒÕÐÐÉÒÏ×ËÕ
117 ÓÏÏÂÝÅÎÉÊ ÐÏ ÃÅÐÏÞËÁÍ, ÐÅÒÅÏÐÒÅÄÅÌÑÅÍÙÅ ËÌÁ×ÉÛÉ, ÐÏÄÄÅÒÖËÕ pgp/gpg É
118 ÓÏÒÔÉÒÏ×ËÕ ÓÏÏÂÝÅÎÉÊ × ÃÅÐÏÞËÁÈ. ÷ËÌÀÞÁÅÔ ÔÁËÖÅ (ÐÏËÁ ÞÔÏ
119 ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÕÀ) ÐÏÄÄÅÒÖËÕ NNTP.
120
121 %description -l tr
122 Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME
123 desteði, renk ve POP3 desteði içerir.
124
125 %description -l uk
126 Mutt - ÃÅ ÎÅ×ÅÌÉËÉÊ, ÁÌÅ ÐÏÔÕÖÎÉÊ ÐÏ×ÎÏÅËÒÁÎÎÉÊ ÐÏÛÔÏ×ÉÊ Ë̦¤ÎÔ.
127 í¦ÓÔÉÔؠЦÄÔÒÉÍËÕ MIME, ËÏ̦Ò, Ð¦ÄÔÒÉÍËÕ POP3 ÔÁ IMAP, ÇÒÕÐÕ×ÁÎÎÑ
128 ÐÏצÄÏÍÌÅÎØ ÐÏ ÌÁÎÃÀÖËÁÍ, ÐÅÒÅ×ÉÚÎÁÞÅÎÎÑ ËÌÁצÛ, Ð¦ÄÔÒÉÍËÕ pgp/gpg ÔÁ
129 ÓÏÒÔÕ×ÁÎÎÑ ÐÏצÄÏÍÌÅÎØ Õ ÌÁÎÃÀÖËÁÈ. í¦ÓÔÉÔØ ÔÁËÏÖ (ÐÏËÉ ÝÏ
130 ÅËÓÐÅÒÉÍÅÎÔÁÌØÎÕ) Ð¦ÄÔÒÉÍËÕ NNTP.
131
132 %prep
133 %setup -q -n %{name}-%(echo %{version} | sed 's/i$//')
134 %patch1 -p1
135 %patch2 -p1
136 %patch3 -p1
137 %patch4 -p1
138 %patch5 -p1
139 %patch6 -p1
140 %patch7 -p1
141 %patch8 -p1
142 %patch9 -p1
143 %patch10 -p1
144 %patch11 -p1
145 # breaks display if arrow_cursor is set
146 %{?with_folder_column:%patch12 -p1}
147 # disabled - changes default behaviour
148 ##%patch13 -p0
149 %patch14 -p1
150 %patch15 -p1
151 %patch16 -p1
152 %patch17 -p1
153 %{?with_sasl:%patch18 -p1}
154 %{?with_nntp:%patch19 -p1}
155 %{?with_esmtp:%patch20 -p1}
156 %{?with_home_etc:%patch21 -p1}
157 %patch22 -p1
158 %patch23 -p1
159 %patch24 -p1
160
161 # force regeneration (manual.sgml is modified by some patches)
162 rm -f doc/{manual*.html,manual.txt}
163
164 %build
165 %{__aclocal} -I m4
166 %{__autoconf}
167 %{__autoheader}
168 %{__automake}
169 %configure \
170         %{!?debug:--disable-debug} %{?debug:--enable-debug} \
171         %{!?with_slang:--with-curses} \
172         %{?with_slang:--with-slang} \
173         --enable-compressed \
174         --enable-external-dotlock \
175         --enable-imap \
176         --without-included-gettext \
177         --enable-mailtool \
178         --with-mixmaster \
179         --enable-pop \
180         %{?with_nntp:--enable-nntp} \
181         --with-regex \
182         %{?with_sasl:--with-sasl} %{!?with_sasl:--without-sasl} \
183         %{?with_home_etc:--with-home-etc} %{!?with_home_etc:--without-home-etc} \
184         %{?with_esmtp:--enable-libesmtp --with-libesmtp=/usr} \
185         --with-ssl \
186         --disable-warnings \
187         --with-docdir=%{_docdir}/%{name} \
188         --with-homespool=Maildir \
189         --with-mailpath=/var/mail \
190         --with-sharedir=%{_datadir} \
191         --prefix=%{_prefix} \
192         --bindir=%{_bindir} \
193         --datadir=%{_datadir} \
194         --mandir=%{_mandir} \
195         --sysconfdir=%{_sysconfdir}
196
197 %{__make}
198 %{__make} manual.txt -C doc
199
200 %install
201 rm -rf $RPM_BUILD_ROOT
202 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/pl/man1}
203
204 %{__make} install \
205         DESTDIR=$RPM_BUILD_ROOT
206
207 %{__patch} -p0 -d $RPM_BUILD_ROOT%{_sysconfdir} < %{PATCH16}
208
209 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
210 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
211 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
212
213 # keep manual.txt.gz, the rest is installed as %doc
214 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]*
215 gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.txt
216
217 # conflict with qmail
218 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
219
220 rm -f $RPM_BUILD_ROOT/etc/mime.types
221
222 %find_lang %{name}
223
224 %clean
225 rm -rf $RPM_BUILD_ROOT
226
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc contrib/{*rc*,*cap*} ChangeLog README TODO NEWS README.SECURITY README.SSL README.xface %{?with_esmtp:Muttrc.esmtp}
230 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/Muttrc
231 %attr(755,root,root) %{_bindir}/mutt
232 %attr(755,root,root) %{_bindir}/flea
233 %attr(755,root,root) %{_bindir}/muttbug
234 %attr(755,root,root) %{_bindir}/pgp*
235 %attr(2755,root,mail) %{_bindir}/mutt_dotlock
236
237 %{_docdir}/%{name}
238 %{_desktopdir}/*.desktop
239 %{_pixmapsdir}/mutt.png
240 %{_mandir}/man*/*
241 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.074247 seconds and 3 git commands to generate.