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