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