summaryrefslogtreecommitdiff
path: root/pine.spec
blob: f9a811ceb9a83ac06af296cbcbbdd8b43eae2a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
#
# Conditional build:
%bcond_without	distributable	# build distributable package with license included
%bcond_without	utf8		# build without utf-8 support
%bcond_without	home_etc	# build without home-etc support

Summary:	MIME compliant mail reader w/ news support as well
Summary(de.UTF-8):	MIME-konformer Mail-Reader mit News-Support
Summary(es.UTF-8):	Lector de mail con soporte a MIME y news
Summary(fr.UTF-8):	Lecteur de courrier conforme à MIME avec gestion des news"
Summary(pl.UTF-8):	Klient poczty elektronicznej i newsów ze wspomaganiem dla MIME
Summary(pt_BR.UTF-8):	Leitor de mail com suporte a MIME e news
Summary(ru.UTF-8):	Совместимый с MIME почтовый редактор с поддержкой телеконференций
Summary(tr.UTF-8):	MIME uyumlu ileti okuyucusu (haber servisi desteği de vardır)
Summary(uk.UTF-8):	Сумісний з MIME почтовий редактор з підтримкою телеконференцій
Name:		pine
%define		realversion	4.64
Version:	%{realversion}N
Release:	5
%if %{with distributable}
License:	Distributable for PLD
%else
License:	Not distributable
%endif
Group:		Applications/Mail
Source0:	ftp://ftp.cac.washington.edu/pine/%{name}%{realversion}.tar.bz2
# Source0-md5:	39ca07b3d305b4cd0d6aaf4585123275
Source1:	%{name}.desktop
Source2:	%{name}.png
Source3:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source3-md5:	7bd233708a9621f3dfd173acb20ec0bb
Source4:	pico.desktop
Source5:	%{name}-PLD-LICENSE
Patch0:		%{name}-config.patch
Patch1:		%{name}-doc.patch
Patch2:		%{name}-makefile.patch
Patch3:		%{name}-terminfo.patch
Patch4:		%{name}-unix.patch
Patch5:		%{name}-filter.patch
Patch6:		%{name}-quote.patch
Patch7:		%{name}-fhs.patch
Patch8:		%{name}-segfix.patch
Patch9:		%{name}-libc-client.patch
Patch10:	%{name}-fixhome.patch
Patch11:	%{name}-ssl.patch
Patch12:	%{name}-non_english_man_path_fix.patch
Patch13:	%{name}-no_1777_warning.patch
Patch14:	%{name}-N_on_version.patch
Patch15:	%{name}-overflow.patch
# http://www.math.washington.edu/~chappa/pine/
Patch16:	http://www.math.washington.edu/~chappa/pine/patches/pine%{realversion}/all.patch.gz
# Original from: http://www.signet.pl/instrukcje/pine/pine-smime-211101-fixed.diff
Patch17:	%{name}-smime.patch
Patch18:	%{name}-css.patch
# from http://www.suse.de/~bk/pine/iconv/
Patch19:	%{name}-iconv-9d.patch
Patch20:	%{name}-home_etc.patch
Patch21:	%{name}-pwd.patch
Patch22:	%{name}-address-of-register.patch
URL:		http://www.washington.edu/pine/
# iconv form glibc - utf-8 support
%{?with_utf8:BuildRequires:	glibc-devel >= 2.3.2}
%{?with_home_etc:BuildRequires:	home-etc-devel >= 1.0.8}
BuildRequires:	ncurses-devel >= 5.0
BuildRequires:	openldap-devel >= 2.3.0
BuildRequires:	openssl-devel >= 0.9.7d
%{?with_home_etc:Requires:	home-etc >= 1.0.8}
Requires:	mailcap
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Pine is a very full featured text based mail and news client. It is
aimed at both novice and expert users. It includes an easy to use
editor, pico, for composing messages. Pico has gained popularity as a
stand alone text editor in it's own right. It features MIME support,
address books, and support for IMAP, mail, and MH style folders.

%description -l de.UTF-8
Pine ist ein kompletter textbasierender Mail- und New-Client, der sich
sowohl an Neueinsteiger als auch an Experten richtet. Er umfaßt einen
einfachen Editor (Pico), der zum Verfassen der Nachrichten dient, sich
jedoch inzwischen einen Namen als autonomer Texteditor gemacht hat.
Pine unterstützt MIME, Adreßbücher, IMAP, Mail- und HM-Ordner.

%description -l es.UTF-8
Pine es un programa cliente de mail ("lector de mail") basado en texto
y cliente de news. Está orientado tanto a principiantes como a
usuarios más expertos. Posee soporte para MINE, agendas de dirección,
y soporte para folders de estilo IMAP, mail y MH.

%description -l fr.UTF-8
pine est un client courrier et news très complet en mode texte. Il est
destiné aux débutants comme aux experts. Il comprend un éditeur simple
à utiliser, pico, pour composer les messages. pico est devenu
populaire comme éditeur de texte par lui-même. Il reconnait la gestion
MIME, les carnets d'adresse et la gestion IMAP, mail et des dossiers
du style MH.

%description -l pl.UTF-8
Pine jest doskonałym czytnikiem poczty elektronicznej i newsów,
pracującym w trybie tekstowym. W pakiecie znajduje się również łatwy w
użyciu edytor pico, wykorzystywany do pisania wiadomości. Pine jest
obecnie jednym z najbardziej popularnych czytników poczty
elektronicznej, posiada wspomaganie dla MIME i IMAP, można w łatwy
sposób tworzyć książki adresowe i skonfigurować go do współpracy z
aplikacją PGP.

%description -l pt_BR.UTF-8
Pine é um programa cliente de mail ("leitor de mail") baseado em texto
e cliente de news. Ele é dirigido tanto para novatos como para
usuários experientes. Possui suporte para MIME, agendas de endereço, e
suporte para pastas de estilo IMAP, mail e MH.

%description -l ru.UTF-8
Pine - это полноценный текст-ориентированный клиент для почты и
телеконференций. Рассчитан как на начинающих, так и на опытных
пользователей. Включает простой в использовании редактор, pico, для
редактирования почтовых сообщений. Имеет поддержку MIME, адресные
книги, поддержку IMAP, может работать с почтовыми ящиками в формате
mail и MH. Настоящая версия позволяет сконфигурировать Pine так, что
он не будет кодировать русский текст в хедерах писем.

%description -l tr.UTF-8
Pine, metin tabanlı bir ileti ve haber servisi (news) istemcisidir.
Hem acemi hem de uzman kullanıcılar için uygundur. İleti yazmak için
kullanımı oldukça kolay olan pico adlı metin düzenleyicisini kullanır.
Pico kendi başına da bir metin düzenleyici olarak ilgi görmüştür.
Pine, MIME desteği, adres defteri ve IMAP, MH gibi ileti arşivi
biçimlerini destekleme özelliklerini taşır.

%description -l uk.UTF-8
Pine - це повноцінний текст-орієнтований клієнт для пошти та
телеконференцій. Розрахований як на початківців, так і на досвідчених
користувачів. Містить простий у використанні редактор PICO для
редагування поштових повідомлень. Має підтримку MIME, адресні книги,
підтримку IMAP, може працювати з поштовими скриньками в форматах mail
та MH. Ця версія дозволяє сконфігурувати Pine так, що він не буде
кодувати кирилічний текст в хедерах листів.

%package -n pico
Summary:	Simple text editor in the style of the Pine Composer
Summary(es.UTF-8):	Simple, easy-to-use text-based editor
Summary(pl.UTF-8):	Prosty edytor tekstowy w stylu pine
Summary(pt_BR.UTF-8):	Editor de textos para terminal simples e fácil de usar
Group:		Applications/Editors

%description -n pico
Pico is a simple, display-oriented text editor based on the Pine
message system composer. As with Pine, commands are displayed at the
bottom of the screen, and context-sensitive help is provided. As
characters are typed they are immediately inserted into the text.

%description -n pico -l es.UTF-8
Pico is a simple, display-oriented text editor based on the Pine
message system composer. As with Pine, commands are displayed at the
bottom of the screen, and context- sensitive help is provided.

%description -n pico -l pl.UTF-8
Pico jest prostym, zorientowanym na wyświetlanie edytorem bazującym na
pine. Tak jak w pine komendy są wyświetlane na dole ekranu oraz
dostępna jest pomoc konteksowa. Wpisywane znaki są natychmiast
włączane do tekstu.

%description -n pico -l pt_BR.UTF-8
Pico é um editor de texto baseado no compositor de mensagens do Pine.
Assim como no Pine, comandos são mostrados na parte de baixo da tela,
e ajuda de acordo com o contexto está disponível.

%package -n pilot
Summary:	Simple file system browser in the style of the Pine Composer
Summary(es.UTF-8):	Simple filesystem browser in the style of the Pine Composer
Summary(pl.UTF-8):	Prosta przeglądarka plików w stylu composera pine
Summary(pt_BR.UTF-8):	Navegador de sistemas de arquivos no estilo do compositor do Pine
Group:		Applications/Shells

%description -n pilot
Pilot is a simple, display-oriented file system browser based on the
Pine message system composer. As with Pine, commands are displayed at
the bottom of the screen, and context-sensitive help is provided.

%description -n pilot -l es.UTF-8
Pilot is a simple, display-oriented file system browser based on the
Pine message system composer. As with Pine, commands are displayed at
the bottom of the screen, and context-sensitive help is provided.

%description -n pilot -l pl.UTF-8
Pilot jest prostą, zorientowaną na wyświetlanie przeglądarką plików w
stylu compsera pine. Podobnie jak w pine polecenia sa wyświetlane na
dole ekranu oraz jest dostępna pomoc kontekstowa.

%description -n pilot -l pt_BR.UTF-8
Pilot é um navegador de sistemas de arquivos baseado no Pine. Assim
como no Pine, comandos são apresentados na parte de baixo da tela, e
ajuda de acordo com o contexto está disponível.

%prep
%setup -q -a3 -n %{name}%{realversion}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%{!?with_distributable:%patch5 -p1}
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%{!?with_distributable:%patch13 -p1}
%patch14 -p1
%patch15 -p1
%patch16 -p1
# breaks pine
#%{!?with_distributable:%patch17 -p1}
%patch18 -p1
%if ! %{with distributable}
%{?with_utf8:%patch19 -p1}
%{?with_utf8:%patch22 -p1}
%endif
%{?with_home_etc:%patch20 -p1}
%patch21 -p1

%build
./build slx \
	OPTIMIZE="%{rpmcflags}" \
	BASECFLAGS="%{rpmcflags} -DNFSKLUDGE" \
	%{!?with_utf8:EXTRACFLAGS="-DHAVE_ICONV"} \
	%{?with_home_etc:HOMEETCLIB="1"} \
	SSLTYPE="unix" \
	SSLDIR="/var/lib/openssl/certs" \
	SSLCERTS="/var/lib/openssl/certs" \
	DEBUG=" " \
	LDAPLIBS=-lldap \
	LDAPCFLAGS=-DENABLE_LDAP \
	CC="%{__cc}"

echo "%{__cc}" > ~/gcc.info

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/{man1,{es,fi,hu,pl}/man1}} \
	$RPM_BUILD_ROOT%{_desktopdir} \
	$RPM_BUILD_ROOT{%{_pixmapsdir},%{_sysconfdir}}

install bin/{pine,pico,pilot} $RPM_BUILD_ROOT%{_bindir}

install doc/{pine,pico,pilot}.1 $RPM_BUILD_ROOT%{_mandir}/man1
install es/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/es/man1
install fi/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/fi/man1
install hu/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/hu/man1
install pl/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1

install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
%{?with_distributable:cp %{SOURCE5} .}

$RPM_BUILD_ROOT%{_bindir}/pine -conf > $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/pine.conf.fixed
#
# Pine system-wide enforced configuration file - customize as needed
#
# This file holds the system-wide enforced values for pine configuration
# settings. Any values set in it will override values set in the
# system-wide default configuration file (%{_sysconfdir}/pine/pine.conf) and
# the user's own configuration file (~/.pinerc).
# For more information on the format of this file, read the
# comments at the top of %{_sysconfdir}/pine.conf

EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc CPYRIGHT README doc/*.txt doc/mailcap.unx doc/tech-notes/*.html
%{?with_distributable:%doc %{name}-PLD-LICENSE}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pine.conf
%attr(755,root,root) %{_bindir}/pine
%{_desktopdir}/pine.desktop
%{_pixmapsdir}/*

%{_mandir}/man1/pine*
%lang(es) %{_mandir}/es/man1/pine*
%lang(fi) %{_mandir}/fi/man1/pine*
%lang(hu) %{_mandir}/hu/man1/pine*
%lang(pl) %{_mandir}/pl/man1/pine*

%files -n pico
%defattr(644,root,root,755)
%{?with_distributable:%doc %{name}-PLD-LICENSE}
%attr(755,root,root) %{_bindir}/pico
%{_desktopdir}/pico.desktop
%{_mandir}/man1/pico*
%lang(es) %{_mandir}/es/man1/pico*
%lang(fi) %{_mandir}/fi/man1/pico*
%lang(hu) %{_mandir}/hu/man1/pico*
%lang(pl) %{_mandir}/pl/man1/pico*

%files -n pilot
%defattr(644,root,root,755)
%{?with_distributable:%doc %{name}-PLD-LICENSE}
%attr(755,root,root) %{_bindir}/pilot
%{_mandir}/man1/pilot*
%lang(es) %{_mandir}/es/man1/pilot*