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