]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Correct daemon (which isn't translated into French). (Stéphane Schildknecht)
[~andy/fetchmail] / specgen.sh
1 #!/bin/sh
2
3 # WARNING:
4 # WARNING: If you change the description, also change genlsm.sh.in!
5 # WARNING:
6 version="$1"
7
8 set -e
9
10 if [ -z "$version" ] ; then
11     echo >&2 "Usage: $0 <version>"
12     exit 1
13 fi
14
15 email="fetchmail-devel@lists.berlios.de"
16 packager="Fetchmail Developers <$email>"
17 rpmver=`echo "$version" | sed 's/-/./g'`
18 if test $rpmver = $version ; then
19     vervar="%{version}"
20     setupargs=
21 else
22     vervar="${version}"
23     setupargs="-n %{name}-${vervar}"
24 fi
25
26 LANG=C
27 LC_TIME=C
28 export LANG LC_TIME
29
30 cat <<EOF
31 # Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
32
33 # Set to 0 if you do not have python
34 %define have_python 1
35
36 Name:           fetchmail
37 Version:        $rpmver
38 Release:        1
39 Vendor:         The Community Fetchmail Project
40 Packager:       $packager
41 URL:            http://developer.berlios.de/projects/fetchmail
42 Source:         %{name}-${vervar}.tar.bz2
43 Group:          Applications/Mail
44 Group(pt_BR):   Aplicações/Correio Eletrônico
45 Group(vi):      Ứng dụng/Thư
46 License:        GPL
47 Icon:           fetchmail.xpm
48 %if "%{_vendor}" == "suse"
49 Requires:       smtp_daemon
50 %else
51 Requires:       smtpdaemon
52 %endif
53 BuildPrereq:    gettext-devel openssl-devel
54 BuildRoot:      /var/tmp/%{name}-%{version}
55 Summary:        Full-featured POP/IMAP mail retrieval daemon
56 Summary(da):    Alsidig POP/IMAP post-afhentnings dæmon
57 Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
58 Summary(es):    Recolector de correo via POP/IMAP
59 Summary(fr):    Daemon de récupération de courriers électroniques POP/IMAP complet
60 Summary(pl):    Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
61 Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
62 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
63 Summary(vi):    trình nền lấy thư POP/IMAP có tính năng đầy đủ
64 BuildRoot: %{_tmppath}/%{name}-root
65 #Keywords: mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL
66 #Destinations:  fetchmail-users@lists.berlios.de, fetchmail-announce@lists.berlios.de
67
68 %description
69 Fetchmail is a free, full-featured, robust, and well-documented remote
70 mail retrieval and forwarding utility intended to be used over
71 on-demand TCP/IP links (such as SLIP or PPP connections).  It
72 retrieves mail from remote mail servers and forwards it to your local
73 (client) machine's delivery system, so it can then be be read by
74 normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx.
75 Comes with an interactive GUI configurator suitable for end-users.
76
77 %description -l vi
78 Fetchmail là tiện ích miễn phí có khả năng lấy và chuyển tiếp thư từ xa,
79 có tính năng đầy đủ, rất mạnh và có nhiều tài liệu hướng dẫn. Nó đã được
80 nhằm sử dụng qua liên kết TCP/IP khi-yeu-cầu (như sự kết nỗi SLIP hay
81 PPP). Fetchmail lấy thư từ máy phục vụ thư ở xa và chuyển tiếp tới hệ
82 thống phát thư của máy (khách) cục bộ, để cung cấp thư sẽ được đọc bởi
83 tác nhân thư chuẩn như mutt, elm, pine, (x)emacs/gnus, hay mailx.
84 Fetchmail có sẵn một bộ cấu hình giao diện người dùng đồ họa, thích hợp
85 với người dùng cuối cùng.
86
87 %description -l fr
88 Fetchmail est un outil de récupération et de transfert de courriers
89 électroniques distants. Il est libre, complet, robuste et bien
90 documenté. Il est utilisé à travers des liens TCP/IP établis à la
91 demande (telles que des connexions SLIP ou PPP). Il récupère les
92 courriers électroniques sur des serveurs distants et les transfère sur
93 la machine locale (client). Les courriers électroniques peuvent alors
94 être lus à l'aide de clients standard, comme mutt, elm, pine,
95 gnu/(x)emacs ou mailx. L'interface de configuration est adaptée à tout
96 utilisateur.
97
98 %description -l de
99 Fetchmail ist ein freies, vollständiges, robustes und
100 wohldokumentiertes Werkzeug zum Abholen und Weiterleiten von E-Mail,
101 zur Verwendung über temporäre TCP/IP-Verbindungen (wie
102 z.B. SLIP- oder PPP-Verbindungen).  Es holt E-Mail von
103 entfernten Mail-Servern ab und reicht sie an das Auslieferungssystem
104 der lokalen Client-Maschine weiter, damit sie dann von normalen MUAs
105 ("mail user agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx
106 gelesen werden können.  Ein interaktiver GUI-Konfigurator für
107 Endbenutzer wird mitgeliefert.
108
109 %description -l pt
110 Fetchmail é um programa que é usado para recuperar mensagens de um
111 servidor de mail remoto. Ele pode usar Post Office Protocol (POP)
112 ou IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
113 através do servidor local SMTP (normalmente sendmail).
114 Vem com uma interface gráfica para sua configuração.
115
116 %description -l es
117 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
118 para la recepción y reenvío de correo pensada para ser usada en
119 conexiones TCP/IP temporales (como SLIP y PPP). Recibe el correo de
120 servidores remotos y lo reenvía al sistema de entrega local, siendo de
121 ese modo posible leerlo con programas como mutt, elm, pine, (x)emacs/gnus
122 o mailx. Contiene un configurador GUI interactivo pensado para usuarios.
123
124 %description -l pl
125 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
126 pocztowych. Do ściągania poczty może on uzywać protokołów POP (Post Office
127 Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą pocztę
128 dostarcza do końcowych odbiorców poprzez lokalny serwer SMTP.
129
130 %description -l tr
131 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
132 mektuplarınızı alır.
133
134 %description -l da
135 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
136 til afhentning og videresending af elektronisk post via TCP/IP
137 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser).
138 Den henter post fra en ekstern post-server, og videresender den
139 til din lokale klient-maskines post-system, så den kan læses af
140 almindelige mail klienter såsom mutt, elm, pine, (x)emacs/gnus,
141 eller mailx. Der medfølger også et interaktivt GUI-baseret
142 konfigurations-program, som kan bruges af almindelige brugere.
143
144 %if %{have_python}
145 %package -n fetchmailconf
146 Summary:        A GUI configurator for generating fetchmail configuration files
147 Summary(de):    GUI-Konfigurator für fetchmail
148 Summary(pl):    GUI konfigurator do fetchmaila
149 Summary(fr):    Une interface de configuration qui permet d'engendrer des fichiers de configuration de fetchmail
150 Summary(es):    Configurador GUI interactivo para fetchmail
151 Summary(pt):    Um configurador gráfico para o fetchmail
152 Summary(vi):    bộ cấu hình giao diện người dùng đồ họa để tạo ra tập tin cấu hình fetchmail
153 Group:          Utilities/System
154 Group(pt):      Utilitários/Sistema
155 Group(vi):      Tiện ích/Hệ thống
156 BuildPrereq:    python
157 Requires:       %{name} = %{version}, python
158
159 %description -n fetchmailconf
160 A GUI configurator for generating fetchmail configuration file written in
161 Python.
162
163 %description -n fetchmailconf -l vi
164 Một bộ cấu hình giao diện người dùng đồ họa để tạo ra tập tin cấu hình
165 fetchmail, được ghi bằng Python.
166
167 %description -n fetchmailconf -l de
168 Ein in Python geschriebenes Programm mit graphischer Oberfläche zur
169 Erzeugung von Fetchmail-Konfigurationsdateien.
170
171 %description -n fetchmailconf -l pt
172 Um configurador gráfico para a geração de arquivos de configuração do
173 fetchmail. Feito em python.
174
175 %description -n fetchmailconf -l es
176 Configurador gráfico para fetchmail escrito en python.
177
178 %description -n fetchmailconf -l de
179 Ein interaktiver GUI-Konfigurator für fetchmail in Python.
180
181 %description -n fetchmailconf -l pl
182 GUI konfigurator do fetchmaila napisany w pythonie.
183
184 %description -n fetchmailconf -l fr
185 Une interface de configuration pour engendrer des fichiers de
186 configuration de fetchmail écrite en python.
187
188 %endif
189
190 %{?debug_package}
191
192 %prep
193 %setup -q $setupargs
194
195 %build
196 %configure --without-included-gettext --without-kerberos --with-ssl
197 make
198
199 %install
200 rm -rf \$RPM_BUILD_ROOT
201 make install DESTDIR=\$RPM_BUILD_ROOT
202
203 %if %{have_python}
204 mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
205 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
206 mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
207 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
208 %endif
209
210 chmod 644 contrib/*
211
212 %clean
213 rm -rf \$RPM_BUILD_ROOT %{_builddir}/%name-%version
214
215 %files
216 %defattr (644, root, root, 755)
217 %doc ABOUT-NLS FAQ COPYING FEATURES NEWS
218 %doc NOTES OLDNEWS README README.SSL
219 %doc contrib
220 %doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
221 %doc design-notes.html
222 %doc fetchmail-FAQ.pdf
223 %attr(644, root, man) %{_mandir}/man1/fetchmail.1*
224 %attr(755, root, root) %{_bindir}/fetchmail
225 %attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
226
227 %if %{have_python}
228 %files -n fetchmailconf
229 %defattr (644, root, root, 755)
230 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
231 %attr(755,root,root) %{_bindir}/fetchmailconf
232 %attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
233 %attr(755,root,root) %{_prefix}/lib/python*/site-packages/fetchmailconf.py*
234 /usr/lib/rhs/control-panel/fetchmailconf.xpm
235 /usr/lib/rhs/control-panel/fetchmailconf.init
236 %endif
237
238 %changelog
239 * `date '+%a %b %d %Y'` <$email> ${rpmver}
240 - See the project NEWS file for recent changes.
241 EOF