]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Add Vietnamese translation, courtesy of Clytie Siddall.
[~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):    Collecteur (POP/IMAP) de courrier électronique
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 programme qui permet d'aller rechercher du courrier
89 électronique sur un serveur de mail distant. Fetchmail connait les
90 protocoles POP (Post Office Protocol), IMAP (Internet Mail Access
91 Protocol) et délivre le courrier électronique a travers le
92 serveur SMTP local (habituellement sendmail).
93
94 %description -l de
95 Fetchmail ist ein freies, vollständiges, robustes und
96 wohldokumentiertes Werkzeug zum Abholen und Weiterleiten von E-Mail,
97 zur Verwendung über temporäre TCP/IP-Verbindungen (wie
98 z.B. SLIP- oder PPP-Verbindungen).  Es holt E-Mail von
99 entfernten Mail-Servern ab und reicht sie an das Auslieferungssystem
100 der lokalen Client-Maschine weiter, damit sie dann von normalen MUAs
101 ("mail user agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx
102 gelesen werden können.  Ein interaktiver GUI-Konfigurator für
103 Endbenutzer wird mitgeliefert.
104
105 %description -l pt
106 Fetchmail é um programa que é usado para recuperar mensagens de um
107 servidor de mail remoto. Ele pode usar Post Office Protocol (POP)
108 ou IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
109 através do servidor local SMTP (normalmente sendmail).
110 Vem com uma interface gráfica para sua configuração.
111
112 %description -l es
113 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
114 para la recepción y reenvío de correo pensada para ser usada en
115 conexiones TCP/IP temporales (como SLIP y PPP). Recibe el correo de
116 servidores remotos y lo reenvía al sistema de entrega local, siendo de
117 ese modo posible leerlo con programas como mutt, elm, pine, (x)emacs/gnus
118 o mailx. Contiene un configurador GUI interactivo pensado para usuarios.
119
120 %description -l pl
121 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
122 pocztowych. Do ściągania poczty może on uzywać protokołów POP (Post Office
123 Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą pocztę
124 dostarcza do końcowych odbiorców poprzez lokalny serwer SMTP.
125
126 %description -l tr
127 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
128 mektuplarınızı alır.
129
130 %description -l da
131 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
132 til afhentning og videresending af elektronisk post via TCP/IP
133 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser).
134 Den henter post fra en ekstern post-server, og videresender den
135 til din lokale klient-maskines post-system, så den kan læses af
136 almindelige mail klienter såsom mutt, elm, pine, (x)emacs/gnus,
137 eller mailx. Der medfølger også et interaktivt GUI-baseret
138 konfigurations-program, som kan bruges af almindelige brugere.
139
140 %if %{have_python}
141 %package -n fetchmailconf
142 Summary:        A GUI configurator for generating fetchmail configuration files
143 Summary(de):    GUI-Konfigurator für fetchmail
144 Summary(pl):    GUI konfigurator do fetchmaila
145 Summary(fr):    GUI configurateur pour fetchmail
146 Summary(es):    Configurador GUI interactivo para fetchmail
147 Summary(pt):    Um configurador gráfico para o fetchmail
148 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
149 Group:          Utilities/System
150 Group(pt):      Utilitários/Sistema
151 Group(vi):      Tiện ích/Hệ thống
152 BuildPrereq:    python
153 Requires:       %{name} = %{version}, python
154
155 %description -n fetchmailconf
156 A GUI configurator for generating fetchmail configuration file written in
157 Python.
158
159 %description -n fetchmailconf -l vi
160 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
161 fetchmail, được ghi bằng Python.
162
163 %description -n fetchmailconf -l de
164 Ein in Python geschriebenes Programm mit graphischer Oberfläche zur
165 Erzeugung von Fetchmail-Konfigurationsdateien.
166
167 %description -n fetchmailconf -l pt
168 Um configurador gráfico para a geração de arquivos de configuração do
169 fetchmail. Feito em python.
170
171 %description -n fetchmailconf -l es
172 Configurador gráfico para fetchmail escrito en python.
173
174 %description -n fetchmailconf -l de
175 Ein interaktiver GUI-Konfigurator für fetchmail in Python.
176
177 %description -n fetchmailconf -l pl
178 GUI konfigurator do fetchmaila napisany w pythonie.
179
180 %endif
181
182 %{?debug_package}
183
184 %prep
185 %setup -q $setupargs
186
187 %build
188 %configure --without-included-gettext --without-kerberos --with-ssl
189 make
190
191 %install
192 rm -rf \$RPM_BUILD_ROOT
193 make install DESTDIR=\$RPM_BUILD_ROOT
194
195 %if %{have_python}
196 mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
197 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
198 mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
199 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
200 %endif
201
202 chmod 644 contrib/*
203
204 %clean
205 rm -rf \$RPM_BUILD_ROOT %{_builddir}/%name-%version
206
207 %files
208 %defattr (644, root, root, 755)
209 %doc ABOUT-NLS FAQ COPYING FEATURES NEWS
210 %doc NOTES OLDNEWS README README.SSL
211 %doc contrib
212 %doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
213 %doc design-notes.html
214 %doc fetchmail-FAQ.pdf
215 %attr(644, root, man) %{_mandir}/man1/fetchmail.1*
216 %attr(755, root, root) %{_bindir}/fetchmail
217 %attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
218
219 %if %{have_python}
220 %files -n fetchmailconf
221 %defattr (644, root, root, 755)
222 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
223 %attr(755,root,root) %{_bindir}/fetchmailconf
224 %attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
225 %attr(755,root,root) %{_prefix}/lib/python*/site-packages/fetchmailconf.py*
226 /usr/lib/rhs/control-panel/fetchmailconf.xpm
227 /usr/lib/rhs/control-panel/fetchmailconf.init
228 %endif
229
230 %changelog
231 * `date '+%a %b %d %Y'` <$email> ${rpmver}
232 - See the project NEWS file for recent changes.
233 EOF