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