]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Minor bug fixes for socket.c
[~andy/fetchmail] / specgen.sh
1 #!/bin/sh
2
3 version="$1"
4
5 set -e
6
7 if [ -z "$version" ] ; then
8     echo >&2 "Usage: $0 <version>"
9     exit 1
10 fi
11
12 email="fetchmail-devel@lists.berlios.de"
13 packager="Fetchmail Developers <$email>"
14 rpmver=`echo "$version" | sed 's/-/./g'`
15 if test $rpmver = $version ; then
16     vervar="%{version}"
17     setupargs=
18 else
19     vervar="${version}"
20     setupargs="-n %{name}-${vervar}"
21 fi
22
23 LANG=C
24 LC_TIME=C
25 export LANG LC_TIME
26
27 cat <<EOF
28 # Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
29
30 # Set to 0 if you do not have python
31 %define have_python 1
32
33 Name:           fetchmail
34 Version:        $rpmver
35 Release:        1
36 Vendor:         The Community Fetchmail Project
37 Packager:       $packager
38 URL:            http://developer.berlios.de/projects/fetchmail
39 Source:         %{name}-${vervar}.tar.bz2
40 Group:          Applications/Mail
41 Group(pt_BR):   Aplicações/Correio Eletrônico
42 Group(vi):      Ứng dụng/Thư
43 License:        GPL
44 Icon:           fetchmail.xpm
45 %if "%{_vendor}" == "suse"
46 Requires:       smtp_daemon
47 %else
48 Requires:       smtpdaemon
49 %endif
50 BuildPrereq:    gettext-devel openssl-devel
51 BuildRoot:      /var/tmp/%{name}-%{version}
52 Summary:        Full-featured POP/IMAP mail retrieval daemon
53 Summary(da):    Alsidig POP/IMAP post-afhentnings dæmon
54 Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
55 Summary(es):    Recolector de correo via POP/IMAP
56 Summary(fr):    Daemon de récupération de courrier électronique POP/IMAP complet
57 Summary(pl):    Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
58 Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
59 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
60 Summary(vi):    trình nền lấy thư POP/IMAP có tính năng đầy đủ
61 BuildRoot: %{_tmppath}/%{name}-root
62 #Keywords: mail, client, POP3, APOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL
63 #Destinations:  fetchmail-users@lists.berlios.de, fetchmail-announce@lists.berlios.de
64
65 %description
66 Fetchmail is a free, full-featured, robust, and well-documented remote
67 mail retrieval and forwarding utility intended to be used over
68 on-demand TCP/IP links (such as SLIP or PPP connections).  It
69 retrieves mail from remote mail servers and forwards it to your local
70 (client) machine's delivery system, so it can then be be read by
71 normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx.
72 Comes with an interactive GUI configurator suitable for end-users.
73
74 %description -l vi
75 Fetchmail là tiện ích miễn phí có khả năng lấy và chuyển tiếp thư từ xa,
76 có tính năng đầy đủ, rất mạnh và có nhiều tài liệu hướng dẫn. Nó đã được
77 nhằm sử dụng qua liên kết TCP/IP khi-yeu-cầu (như sự kết nỗi SLIP hay
78 PPP). Fetchmail lấy thư từ máy phục vụ thư ở xa và chuyển tiếp tới hệ
79 thống phát thư của máy (khách) cục bộ, để cung cấp thư sẽ được đọc bởi
80 tác nhân thư chuẩn như mutt, elm, pine, (x)emacs/gnus, hay mailx.
81 Fetchmail có sẵn một bộ cấu hình giao diện người dùng đồ họa, thích hợp
82 với người dùng cuối cùng.
83
84 %description -l fr
85 Fetchmail est un outil de récupération et de transfert de courrier
86 électronique. Il est libre, complet, robuste et bien documenté. Il est
87 utilisé à travers des liens TCP/IP établis à la demande (telles que des
88 connexions SLIP ou PPP). Il récupère le courrier électronique sur des
89 serveurs distants et le transfère sur la machine locale (client). Le
90 courrier électronique peut alors être lu à l'aide de clients
91 standard, comme mutt, elm, pine, (x)emacs/gnus ou mailx. L'interface de
92 configuration est adaptée à tout utilisateur.
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):    Une interface de configuration qui permet de créer les fichiers de configuration de 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 %description -n fetchmailconf -l fr
181 Une interface graphique de configuration pour créer les fichiers de
182 configuration de fetchmail écrite en python.
183
184 %endif
185
186 %{?debug_package}
187
188 %prep
189 %setup -q $setupargs
190
191 %build
192 %configure --without-kerberos --with-ssl
193 make
194
195 %install
196 rm -rf \$RPM_BUILD_ROOT
197 make install DESTDIR=\$RPM_BUILD_ROOT
198
199 %if %{have_python}
200 mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
201 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
202 mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
203 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
204 %endif
205
206 chmod 644 contrib/*
207
208 %clean
209 rm -rf \$RPM_BUILD_ROOT %{_builddir}/%name-%version
210
211 %files
212 %defattr (644, root, root, 755)
213 %doc ABOUT-NLS FAQ COPYING FEATURES NEWS
214 %doc NOTES OLDNEWS README README.SSL README.SSL-SERVER
215 %doc contrib
216 %doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
217 %doc design-notes.html
218 %doc fetchmail-FAQ.pdf
219 %attr(644, root, man) %{_mandir}/man1/fetchmail.1*
220 %attr(755, root, root) %{_bindir}/fetchmail
221 %attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
222
223 %if %{have_python}
224 %files -n fetchmailconf
225 %defattr (644, root, root, 755)
226 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
227 %attr(755,root,root) %{_bindir}/fetchmailconf
228 %attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
229 %attr(755,root,root) %{py_libdir}/site-packages/fetchmailconf.py*
230 /usr/lib/rhs/control-panel/fetchmailconf.xpm
231 /usr/lib/rhs/control-panel/fetchmailconf.init
232 %endif
233
234 %changelog
235 * `date '+%a %b %d %Y'` <$email> ${rpmver}
236 - See the project NEWS file for recent changes.
237 EOF