]>
Commit | Line | Data |
---|---|---|
66c8bdd4 JP |
1 | # Conditional build: |
2 | %bcond_with slang # use slang library instead of ncurses | |
3 | %bcond_without sasl # don't use sasl | |
4 | %bcond_with gdbm # use GDBM instead of BerkeleyDB | |
5 | %bcond_with qdbm # use QDBM instead of BerkeleyDB | |
6 | %bcond_with tokyocabinet # use TokyoCabinet instead of BerkeleyDB | |
df25c122 | 7 | %bcond_without lmdb # LMDB header cache backend |
66c8bdd4 JP |
8 | # |
9 | %if %{without gdbm} && %{without qdbm} && %{without tokyocabinet} | |
10 | %define with_bdb 1 | |
11 | %endif | |
12 | Summary: The NeoMutt Mail User Agent | |
13 | Summary(de.UTF-8): Der NeoMutt Mail-User-Agent | |
14 | Summary(es.UTF-8): NeoMutt, cliente de correo electrónico | |
15 | Summary(fr.UTF-8): Agent courrier NeoMutt | |
16 | Summary(ko.UTF-8): 텍스트 기반의 MUA | |
17 | Summary(pl.UTF-8): Program pocztowy NeoMutt | |
18 | Summary(pt_BR.UTF-8): NeoMutt, cliente de correio eletrônico | |
19 | Summary(ru.UTF-8): Почтовая клиентская программа NeoMutt | |
20 | Summary(tr.UTF-8): NeoMutt elektronik posta programı | |
21 | Summary(uk.UTF-8): Поштова клієнтська програма NeoMutt | |
22 | Name: neomutt | |
3f1e8696 | 23 | Version: 20210205 |
1e1d8a95 | 24 | Release: 1 |
66c8bdd4 JP |
25 | License: GPL v2+ |
26 | Group: Applications/Mail | |
1e1d8a95 | 27 | Source0: https://github.com/neomutt/neomutt/archive/%{version}.tar.gz |
3f1e8696 | 28 | # Source0-md5: 4d890c49634a71550292d128acab7f7a |
66c8bdd4 JP |
29 | Source1: %{name}.desktop |
30 | URL: http://www.mutt.org/ | |
31 | BuildRequires: autoconf >= 2.54 | |
32 | BuildRequires: automake >= 1.6 | |
33 | %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0} | |
34 | %{?with_bdb:BuildRequires: db-devel >= 4.0} | |
35 | BuildRequires: docbook-dtd42-xml | |
36 | BuildRequires: docbook-style-xsl | |
37 | %{?with_gdbm:BuildRequires: gdbm-devel} | |
38 | BuildRequires: gettext-tools | |
39 | BuildRequires: gpgme-devel >= 1:1.1.1 | |
40 | BuildRequires: libidn-devel | |
41 | BuildRequires: libxslt-progs | |
df25c122 | 42 | %{?with_lmdb:BuildRequires: lmdb-devel} |
66c8bdd4 | 43 | BuildRequires: lynx |
94235b94 | 44 | BuildRequires: lz4-devel |
66c8bdd4 JP |
45 | %{!?with_slang:BuildRequires: ncurses-devel >= 5.0} |
46 | BuildRequires: openssl-devel >= 0.9.7d | |
47 | %{?with_qdbm:BuildRequires: qdbm-devel} | |
48 | %{?with_slang:BuildRequires: slang-devel} | |
49 | %{?with_tokyocabinet:BuildRequires: tokyocabinet-devel} | |
94235b94 JP |
50 | BuildRequires: zlib-devel |
51 | BuildRequires: zstd-devel | |
66c8bdd4 JP |
52 | Requires: iconv |
53 | Suggests: mailcap | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %define specflags_ia32 -fomit-frame-pointer | |
57 | ||
58 | %description | |
59 | NeoMutt is a small but very poweful full-screen Unix mail client. | |
60 | Features include MIME support, color, POP3 support, message threading, | |
61 | bindable keys, and threaded sorting mode. | |
62 | ||
63 | %description -l de.UTF-8 | |
64 | NeoMutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für | |
65 | Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung, | |
66 | Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads. | |
67 | ||
68 | %description -l es.UTF-8 | |
69 | NeoMutt es un pequeño, pero muy potente cliente de correo en pantalla | |
70 | llena. Incluye soporte a tipos MINE, color, POP3; encadenamiento de | |
71 | mensajes, teclas configurables y clasificaciones por encadenamiento. | |
72 | ||
73 | %description -l fr.UTF-8 | |
74 | mutt est un client courrier Unix plein écran, petit mais très | |
75 | puissant. Il dispose de la gestion MIME, des couleurs, de la gestion | |
76 | POP, des fils de discussion, des touches liées et d'un mode de tri sur | |
77 | les fils. | |
78 | ||
79 | %description -l ko.UTF-8 | |
80 | NeoMutt는 작지만 매우 강력한 텍스트 기반의 메일 클라이언트이다. NeoMutt는 많은 설정이 가능하다. 그리고, 키바인딩, 키보드 | |
81 | 메크로, 메일 스레딩과 같은 진보된 형태와 정규표현식 검색, 메일에서 선택된 그룹의 내용에서 강력하게 일정한 패턴을 찾아내는 | |
82 | 것을 지원함으로써 메일의 파워 유저에게 가장 적합하다. | |
83 | ||
84 | %description -l pl.UTF-8 | |
85 | NeoMutt jest niewielkim programem pocztowym dla terminali tekstowych, | |
86 | posiadającym duże możliwości. Obsługuje MIME, POP3, cztery formaty | |
87 | skrzynek pocztowych, kolory, wątki, ocenę ważności listów (scoring) | |
88 | oraz skompresowane foldery. | |
89 | ||
90 | %description -l pt_BR.UTF-8 | |
91 | O NeoMutt é um pequeno mas muito poderoso cliente de correio em tela | |
92 | cheia. Inclui suporte a tipos MIME, cor, POP3, encadeamento de | |
93 | mensagens, teclas configuráveis e classificação por encadeamento. | |
94 | ||
95 | %description -l ru.UTF-8 | |
96 | NeoMutt - это небольшой, но мощный полноэкранный почтовый клиент. | |
97 | Включает поддержку MIME, цвет, поддержку POP3 и IMAP, группировку | |
98 | сообщений по цепочкам, переопределяемые клавиши, поддержку pgp/gpg и | |
99 | сортировку сообщений в цепочках. Включает также (пока что | |
100 | экспериментальную) поддержку NNTP. | |
101 | ||
102 | %description -l tr.UTF-8 | |
103 | NeoMutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME | |
104 | desteği, renk ve POP3 desteği içerir. | |
105 | ||
106 | %description -l uk.UTF-8 | |
107 | NeoMutt - це невеликий, але потужний повноекранний поштовий клієнт. | |
108 | Містить підтримку MIME, колір, підтримку POP3 та IMAP, групування | |
109 | повідомлень по ланцюжкам, перевизначення клавіш, підтримку pgp/gpg та | |
110 | сортування повідомлень у ланцюжках. Містить також (поки що | |
111 | експериментальну) підтримку NNTP. | |
112 | ||
113 | %prep | |
1e1d8a95 | 114 | %setup -q |
66c8bdd4 JP |
115 | |
116 | %build | |
117 | ./configure \ | |
118 | LDFLAGS="${LDFLAGS:-%rpmldflags}" \ | |
119 | CFLAGS="${CFLAGS:-%rpmcflags}" \ | |
120 | CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \ | |
121 | FFLAGS="${FFLAGS:-%rpmcflags}" \ | |
122 | FCFLAGS="${FCFLAGS:-%rpmcflags}" \ | |
123 | CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \ | |
124 | %{?__cc:CC="%{__cc}"} \ | |
125 | %{?__cxx:CXX="%{__cxx}"} \ | |
126 | --host=%{_target_platform} \ | |
127 | --build=%{_target_platform} \ | |
128 | --prefix=%{_prefix} \ | |
129 | %{!?debug:--disable-debug} %{?debug:--enable-debug} \ | |
130 | --gpgme \ | |
131 | %{?with_bdb:--bdb --with-bdb=/usr} \ | |
132 | %{!?with_slang:--with-ui=ncurses} \ | |
133 | %{?with_gdbm:--gdbm} \ | |
df25c122 | 134 | %{?with_lmdb:--lmdb} \ |
94235b94 | 135 | --lz4 \ |
66c8bdd4 JP |
136 | --with-mailpath=/var/mail \ |
137 | --mixmaster \ | |
138 | %{?with_qdbm:--qdbm} \ | |
139 | %{?with_sasl:--sasl} \ | |
140 | %{?with_slang:--with-ui=slang} \ | |
141 | --ssl \ | |
94235b94 JP |
142 | %{?with_tokyocabinet:--tokyocabinet} \ |
143 | --zlib \ | |
144 | --zstd | |
66c8bdd4 JP |
145 | |
146 | %{__make} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/pl/man1} \ | |
151 | $RPM_BUILD_ROOT%{_sysconfdir}/NeoMuttrc.d | |
152 | ||
153 | %{__make} install \ | |
154 | DESTDIR=$RPM_BUILD_ROOT \ | |
155 | DOTLOCK_GROUP= | |
156 | ||
dd631991 JP |
157 | install contrib/samples/gpg.rc $RPM_BUILD_ROOT%{_sysconfdir}/NeoMuttrc.d |
158 | install contrib/samples/smime.rc $RPM_BUILD_ROOT%{_sysconfdir}/NeoMuttrc.d | |
159 | install contrib/samples/colors.linux $RPM_BUILD_ROOT%{_sysconfdir}/NeoMuttrc.d/colors.rc | |
66c8bdd4 JP |
160 | install contrib/logo/neomutt-64.png $RPM_BUILD_ROOT%{_pixmapsdir}/neomutt.png |
161 | ||
162 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
163 | ||
ccccdd55 | 164 | cat <<'EOF' >$RPM_BUILD_ROOT%{_bindir}/neomutt_source-neomuttrc.d |
66c8bdd4 JP |
165 | #!/bin/sh -e |
166 | for rc in %{_sysconfdir}/NeoMuttrc.d/*.rc; do | |
167 | [ ! -r "$rc" ] || echo "source \"$rc\"" | |
168 | done | |
169 | EOF | |
170 | ||
171 | # keep manual.txt.gz, the rest is installed as %doc | |
172 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/[!m]* | |
173 | ||
174 | %find_lang neomutt | |
175 | ||
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
179 | %files -f neomutt.lang | |
180 | %defattr(644,root,root,755) | |
dd631991 | 181 | %doc contrib/samples/{*rc*,*cap*} ChangeLog.md README.md |
66c8bdd4 JP |
182 | %dir %{_sysconfdir}/NeoMuttrc.d |
183 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/neomuttrc | |
184 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/NeoMuttrc.d/*.rc | |
185 | %attr(755,root,root) %{_bindir}/neomutt | |
ccccdd55 | 186 | %attr(755,root,root) %{_bindir}/neomutt_source-neomuttrc.d |
66c8bdd4 JP |
187 | %dir %{_libexecdir}/%{name} |
188 | %attr(755,root,root) %{_libexecdir}/%{name}/pgpewrap | |
66c8bdd4 JP |
189 | %attr(755,root,root) %{_libexecdir}/%{name}/smime_keys |
190 | ||
191 | %{_docdir}/%{name} | |
192 | %{_desktopdir}/neomutt.desktop | |
193 | %{_pixmapsdir}/neomutt.png | |
194 | %{_mandir}/man1/neomutt.1* | |
195 | %{_mandir}/man1/pgpewrap_neomutt.1* | |
66c8bdd4 JP |
196 | %{_mandir}/man1/smime_keys_neomutt.1* |
197 | %{_mandir}/man5/mbox_neomutt.5* | |
198 | %{_mandir}/man5/mmdf_neomutt.5* | |
199 | %{_mandir}/man5/neomuttrc.5* |