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