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