]> git.pld-linux.org Git - packages/alpine.git/blame - alpine.spec
- fix errors introduced by -Werror-security
[packages/alpine.git] / alpine.spec
CommitLineData
373aa20d 1# TODO:
ed3ad53f
ER
2# - backport man-pages from pine.spec
3# - separate package with tcl web-frontend
4# - fix as-needed
5# - pico shouldn't link with kerberos, should it?
de10071c 6# - switch to http://re-alpine.sourceforge.net/ - RIP alpine
287d6ed3 7%define ver 2.00
d5d336d8 8%define patchlevel 84
150f6140
JB
9Summary: University of Washington Alpine mail user agent
10Summary(pl.UTF-8): Klient pocztowy Alpine z Uniwersytetu w Waszyngtonie
02477d30 11Name: alpine
db14e620 12Version: %{ver}.%{patchlevel}
c5d1e337 13Release: 9
ecdbf6cc 14Epoch: 1
e4566517 15License: Apache v2.0
02477d30 16Group: Applications/Mail
19f73470
PG
17# Main site:
18#Source0: ftp://ftp.cac.washington.edu/alpine/%{name}-%{version}.tar.gz
150f6140 19# Source with applied patches from http://staff.washington.edu/chappa/alpine/
db14e620 20Source0: http://staff.washington.edu/chappa/alpine/patches/alpine-%{ver}/%{name}-%{ver}_%{patchlevel}.tar.gz
d5d336d8 21# Source0-md5: 70ba4281354f1ba2d341038ec0e323c7
ecdbf6cc 22Source1: pico.desktop
e4e766a4
JB
23Source2: %{name}.desktop
24Source3: %{name}.png
f5d7d4fd
PG
25Patch0: %{name}-index_display.patch
26Patch1: %{name}-doc.patch
27Patch2: %{name}-filter.patch
f7c40b67
PG
28Patch3: %{name}-fhs.patch
29Patch4: %{name}-libc-client.patch
30Patch5: %{name}-ssl.patch
31Patch6: %{name}-no_1777_warning.patch
32Patch7: %{name}-home_etc.patch
4e410cf0 33Patch8: %{name}-RFC1522_MAXW.patch
cf89ef84
PG
34Patch9: mimedesc.patch
35Patch10: re-alpine-2.01.smime-signandencrypt.patch
c5d1e337 36Patch11: format-security.patch
e4e766a4 37URL: http://www.washington.edu/alpine/
c85f8efa
PG
38BuildRequires: autoconf
39BuildRequires: automake
fda94c2a 40BuildRequires: home-etc-devel
37ee6de7 41%if "%{pld_release}" != "ac"
d40d2522 42BuildRequires: heimdal-devel
37ee6de7 43%endif
4986c5a1 44BuildRequires: libtool
02477d30 45BuildRequires: ncurses-devel
37ee6de7 46BuildRequires: openldap-devel
02477d30 47BuildRequires: openssl-devel
02477d30 48BuildRequires: pam-devel
ed75d4f6
PG
49# Only for web-frontend:
50#BuildRequires: tcl-devel
96222bac 51Suggests: aspell
fbd7d16c
PG
52Suggests: ca-certificates
53Conflicts: ca-certificates < 20080809-4
59f734c4 54Provides: pine = 6.00
35f8b560 55Obsoletes: pine
32f7878d 56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
02477d30 57
35f8b560 58%define alpineconfdir %{_sysconfdir}/%{name}
c9e98969 59%define filterout_ld -Wl,--as-needed
ecdbf6cc 60
02477d30
AM
61%description
62Alpine -- an Alternatively Licensed Program for Internet News & Email
63-- is a tool for reading, sending, and managing electronic messages.
64Alpine is the successor to Pine and was developed by Computing &
65Communications at the University of Washington. Though originally
66designed for inexperienced email users, Alpine supports many advanced
67features, and an ever-growing number of configuration and
68personal-preference options.
69
84f5c30e 70%description -l pl.UTF-8
32f7878d 71Alpine, czyli Alternatively Licensed Program for Internet News & Email
84f5c30e
JB
72(alternatywnie licencjonowany program do newsów i poczty internetowej)
73to narzędzie do czytania, wysyłania i zarządzania wiadomościami
74elektronicznymi. Alpine jest następcą Pine'a i został napisany przez
75wydział Computing & Communications (Obliczeń i komunikacji) na
76Uniwersytecie w Waszyngtonie. Mimo że Alpine pierwotnie został
77zaprojektowany dla niedoświadczonych użytkowników poczty, obsługuje
78wiele zaawansowanych możliwości, a liczba opcji konfiguracyjnych
79ciągle rośnie.
80
ecdbf6cc 81%package -n pico
16696081
PG
82Summary: Simple text editor in the style of the Pine Composer
83Summary(pl.UTF-8): Prosty edytor tekstowy w stylu alpine
84Summary(pt_BR.UTF-8): Editor de textos para terminal simples e fácil de usar
85Group: Applications/Editors
59f734c4 86Provides: pico = 6.00
ecdbf6cc
PG
87
88%description -n pico
89Pico is a simple, display-oriented text editor based on the Alpine
90message system composer. As with Pine, commands are displayed at the
91bottom of the screen, and context-sensitive help is provided. As
92characters are typed they are immediately inserted into the text.
93
94%description -n pico -l pl.UTF-8
95Pico jest prostym, zorientowanym na wyświetlanie edytorem bazującym na
96alpine. Tak jak w pine komendy są wyświetlane na dole ekranu oraz
150f6140 97dostępna jest pomoc kontekstowa. Wpisywane znaki są natychmiast
ecdbf6cc
PG
98włączane do tekstu.
99
100%description -n pico -l pt_BR.UTF-8
101Pico é um editor de texto baseado no compositor de mensagens do Alpine.
102Assim como no Pine, comandos são mostrados na parte de baixo da tela,
103e ajuda de acordo com o contexto está disponível.
104
105%package -n pilot
16696081
PG
106Summary: Simple file system browser in the style of the Alpine Composer
107Summary(pl.UTF-8): Prosta przeglądarka plików w stylu composera alpine
108Summary(pt_BR.UTF-8): Navegador de sistemas de arquivos no estilo do compositor do Alpine
109Group: Applications/Shells
59f734c4 110Provides: pilot = 6.00
ecdbf6cc
PG
111
112%description -n pilot
113Pilot is a simple, display-oriented file system browser based on the
150f6140
JB
114Alpine message system composer. As with Alpine, commands are displayed
115at the bottom of the screen, and context-sensitive help is provided.
ecdbf6cc
PG
116
117%description -n pilot -l pl.UTF-8
118Pilot jest prostą, zorientowaną na wyświetlanie przeglądarką plików w
150f6140
JB
119stylu composera pine. Podobnie jak w alpine polecenia są wyświetlane
120na dole ekranu oraz jest dostępna pomoc kontekstowa.
ecdbf6cc
PG
121
122%description -n pilot -l pt_BR.UTF-8
123Pilot é um navegador de sistemas de arquivos baseado no Pine. Assim
124como no Pine, comandos são apresentados na parte de baixo da tela, e
125ajuda de acordo com o contexto está disponível.
126
02477d30 127%prep
db14e620 128%setup -q -n %{name}-%{ver}
f5d7d4fd
PG
129%patch0 -p1
130%patch1 -p1
d147c72a
JR
131%patch2 -p1
132%patch3 -p1
133%patch4 -p1
134%patch5 -p1
135%patch6 -p1
136%patch7 -p1
4e410cf0 137%patch8 -p1
cf89ef84
PG
138%patch9 -p1
139%patch10 -p1
c5d1e337 140%patch11 -p1
02477d30
AM
141
142%build
14ee7687
PG
143rm -f libtool missing
144%{__libtoolize}
c85f8efa 145%{__aclocal} -I m4
d147c72a
JR
146%{__autoconf}
147%{__autoheader}
c85f8efa 148%{__automake}
02477d30 149%configure \
62d3bb2d 150 --%{?debug:en}%{!?debug:dis}able-debug \
02477d30 151 --enable-quotas \
ed75d4f6 152 --without-tcl \
624f7017 153 --with-smtp-msa=/usr/lib/sendmail \
96222bac 154 --with-simple-spellcheck=aspell \
35f8b560
ER
155 --with-system-pinerc=%{_sysconfdir}/%{name}/%{name}.conf \
156 --with-system-fixed-pinerc=%{_sysconfdir}/%{name}/%{name}.conf.fixed \
02477d30
AM
157 --with-krb5-dir=%{_prefix} \
158 --with-ldap-dir=%{_prefix} \
d147c72a 159 --with-system-mail-directory=/var/mail \
f6e2946d 160 --with-c-client-target=slx \
35b0d8c4 161%if "%{pld_release}" == "ti"
f6e2946d 162 --with-ssl-dir=/var/lib/openssl/certs \
35b0d8c4 163 --with-ssl-certs-dir=/var/lib/openssl/certs \
164%else
165 --with-ssl-dir=/etc/openssl/certs \
fbd7d16c 166 --with-ssl-certs-dir=/etc/certs \
cb850a61 167 --with-ssl-lib-dir=%{_libdir} \
35b0d8c4 168%endif
d147c72a
JR
169 --with-passfile=.pine.pwd
170
171%{__make} \
172 GCCOPTLEVEL="%{rpmcflags}"
02477d30
AM
173
174%install
175rm -rf $RPM_BUILD_ROOT
35f8b560 176install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_desktopdir},%{_pixmapsdir}}
02477d30
AM
177
178%{__make} install \
179 DESTDIR=$RPM_BUILD_ROOT
180
ecdbf6cc 181install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
28b69314
PG
182install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
183install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
184
d147c72a
JR
185ln -s alpine $RPM_BUILD_ROOT%{_bindir}/pine
186
35f8b560
ER
187$RPM_BUILD_ROOT%{_bindir}/alpine -conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/alpine.conf
188cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/alpine.conf.fixed
f098cf80
JR
189#
190# Alpine system-wide enforced configuration file - customize as needed
191#
192# This file holds the system-wide enforced values for alpine configuration
193# settings. Any values set in it will override values set in the
35f8b560 194# system-wide default configuration file (%{_sysconfdir}/%{name}/alpine.conf) and
f098cf80
JR
195# the user's own configuration file (~/.pinerc).
196# For more information on the format of this file, read the
35f8b560 197# comments at the top of %{_sysconfdir}/%{name}/alpine.conf
f098cf80
JR
198
199EOF
200
02477d30
AM
201%clean
202rm -rf $RPM_BUILD_ROOT
203
204%files
205%defattr(644,root,root,755)
ecdbf6cc 206%doc README doc/tech-notes.txt
35f8b560
ER
207%dir %{_sysconfdir}/%{name}
208%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/alpine.conf
209%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/alpine.conf.fixed
28b69314 210%attr(755,root,root) %{_bindir}/%{name}
d147c72a 211%attr(755,root,root) %{_bindir}/pine
02477d30
AM
212%attr(755,root,root) %{_bindir}/rpload
213%attr(755,root,root) %{_bindir}/rpdump
28b69314 214%{_mandir}/man1/%{name}.1*
ad29b28d
PG
215%{_mandir}/man1/rpload.1*
216%{_mandir}/man1/rpdump.1*
28b69314
PG
217%{_desktopdir}/%{name}.desktop
218%{_pixmapsdir}/%{name}.png
ecdbf6cc
PG
219
220%files -n pico
221%defattr(644,root,root,755)
222%attr(755,root,root) %{_bindir}/pico
223%{_desktopdir}/pico.desktop
224%{_mandir}/man1/pico*
225
226%files -n pilot
227%defattr(644,root,root,755)
228%attr(755,root,root) %{_bindir}/pilot
229%{_mandir}/man1/pilot*
This page took 0.057585 seconds and 4 git commands to generate.