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