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