]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Add PDF FAQ, formatted for duplex printing on ISO A4.
[~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 License:        GPL
43 Icon:           fetchmail.xpm
44 %if "%{_vendor}" == "suse"
45 Requires:       smtp_daemon
46 %else
47 Requires:       smtpdaemon
48 %endif
49 BuildPrereq:    gettext-devel openssl-devel
50 BuildRoot:      /var/tmp/%{name}-%{version}
51 Summary:        Full-featured POP/IMAP mail retrieval daemon
52 Summary(fr):    Collecteur (POP/IMAP) de courrier électronique
53 Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
54 Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
55 Summary(es):    Recolector de correo via POP/IMAP
56 Summary(pl):    Zdalny demon pocztowy do protoko³ów POP2, POP3, APOP, IMAP
57 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
58 Summary(da):    Alsidig POP/IMAP post-afhentnings dæmon
59 BuildRoot: %{_tmppath}/%{name}-root
60 #Keywords: mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL
61 #Destinations:  fetchmail-users@lists.berlios.de, fetchmail-announce@lists.berlios.de
62
63 %description
64 Fetchmail is a free, full-featured, robust, and well-documented remote
65 mail retrieval and forwarding utility intended to be used over
66 on-demand TCP/IP links (such as SLIP or PPP connections).  It
67 retrieves mail from remote mail servers and forwards it to your local
68 (client) machine's delivery system, so it can then be be read by
69 normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx.
70 Comes with an interactive GUI configurator suitable for end-users.
71
72 %description -l fr
73 Fetchmail est un programme qui permet d'aller rechercher du courrier
74 électronique sur un serveur de mail distant. Fetchmail connait les
75 protocoles POP (Post Office Protocol), IMAP (Internet Mail Access
76 Protocol) et délivre le courrier électronique a travers le
77 serveur SMTP local (habituellement sendmail).
78
79 %description -l de
80 Fetchmail ist ein freies, vollständiges, robustes und
81 wohldokumentiertes Werkzeug zum Abholen und Weiterleiten von E-Mail,
82 zur Verwendung über temporäre TCP/IP-Verbindungen (wie
83 z.B. SLIP- oder PPP-Verbindungen).  Es holt E-Mail von
84 entfernten Mail-Servern ab und reicht sie an das Auslieferungssystem
85 der lokalen Client-Maschine weiter, damit sie dann von normalen MUAs
86 ("mail user agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx
87 gelesen werden können.  Ein interaktiver GUI-Konfigurator für
88 Endbenutzer wird mitgeliefert.
89
90 %description -l pt
91 Fetchmail é um programa que é usado para recuperar mensagens de um
92 servidor de mail remoto. Ele pode usar Post Office Protocol (POP)
93 ou IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
94 através do servidor local SMTP (normalmente sendmail).
95 Vem com uma interface gráfica para sua configuração. 
96
97 %description -l es
98 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
99 para la recepción y reenvío de correo pensada para ser usada en
100 conexiones TCP/IP temporales (como SLIP y PPP). Recibe el correo de
101 servidores remotos y lo reenvía al sistema de entrega local, siendo de
102 ese modo posible leerlo con programas como mutt, elm, pine, (x)emacs/gnus
103 o mailx. Contiene un configurador GUI interactivo pensado para usuarios.
104
105 %description -l pl
106 Fetchmail jest programem do ¶ci±gania poczty ze zdalnych serwerów
107 pocztowych. Do ¶ci±gania poczty mo¿e on uzywaæ protoko³ów POP (Post Office
108 Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt± pocztê
109 dostarcza do koñcowych odbiorców poprzez lokalny serwer SMTP.
110
111 %description -l tr
112 fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
113 mektuplarýnýzý alýr.
114
115 %description -l da
116 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj 
117 til afhentning og videresending af elektronisk post via TCP/IP
118 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser).   
119 Den henter post fra en ekstern post-server, og videresender den
120 til din lokale klient-maskines post-system, så den kan læses af
121 almindelige mail klienter såsom mutt, elm, pine, (x)emacs/gnus,
122 eller mailx. Der medfølger også et interaktivt GUI-baseret
123 konfigurations-program, som kan bruges af almindelige brugere.
124
125 %if %{have_python}
126 %package -n fetchmailconf
127 Summary:        A GUI configurator for generating fetchmail configuration files
128 Summary(de):    GUI-Konfigurator für fetchmail
129 Summary(pl):    GUI konfigurator do fetchmaila
130 Summary(fr):    GUI configurateur pour fetchmail
131 Summary(es):    Configurador GUI interactivo para fetchmail
132 Summary(pt):    Um configurador gráfico para o fetchmail
133 Group:          Utilities/System
134 Group(pt):      Utilitários/Sistema
135 BuildPrereq:    python
136 Requires:       %{name} = %{version}, python
137
138 %description -n fetchmailconf
139 A GUI configurator for generating fetchmail configuration file written in
140 Python.
141
142 %description -n fetchmailconf -l de
143 Ein in Python geschriebenes Programm mit graphischer Oberfläche zur
144 Erzeugung von Fetchmail-Konfigurationsdateien.
145
146 %description -n fetchmailconf -l pt
147 Um configurador gráfico para a geração de arquivos de configuração do
148 fetchmail. Feito em python.
149
150 %description -n fetchmailconf -l es
151 Configurador gráfico para fetchmail escrito en python
152
153 %description -n fetchmailconf -l de
154 Ein interaktiver GUI-Konfigurator für fetchmail in python
155
156 %description -n fetchmailconf -l pl
157 GUI konfigurator do fetchmaila napisany w pythonie.
158 %endif
159
160 %prep
161 %setup -q $setupargs
162
163 %build
164 %configure --without-included-gettext --without-kerberos --with-ssl
165 make
166
167 %install
168 rm -rf \$RPM_BUILD_ROOT
169 make install-strip DESTDIR=\$RPM_BUILD_ROOT
170
171 %if %{have_python}
172 mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
173 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
174 mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
175 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
176 %endif
177
178 chmod 644 contrib/*
179
180 %clean
181 rm -rf \$RPM_BUILD_ROOT
182
183 %files
184 %defattr (644, root, root, 755)
185 %doc ABOUT-NLS FAQ COPYING FEATURES NEWS
186 %doc NOTES OLDNEWS README README.SSL BUGS
187 %doc contrib
188 %doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
189 %doc design-notes.html
190 %doc fetchmail-FAQ.pdf
191 %attr(644, root, man) %{_mandir}/man1/fetchmail.1*
192 %attr(755, root, root) %{_bindir}/fetchmail
193 %attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
194
195 %if %{have_python}
196 %files -n fetchmailconf
197 %defattr (644, root, root, 755)
198 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
199 %attr(755,root,root) %{_bindir}/fetchmailconf
200 %attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
201 %attr(755,root,root) %{_prefix}/lib/python*/site-packages/fetchmailconf.py*
202 /usr/lib/rhs/control-panel/fetchmailconf.xpm
203 /usr/lib/rhs/control-panel/fetchmailconf.init
204 %endif
205
206 %changelog
207 * `date '+%a %b %d %Y'` <$email> ${rpmver}
208 - See the project NEWS file for recent changes.
209 EOF