]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Add new design notes document.
[~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 %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 Requires:       %{name} = %{version}, python
117
118 %description -n fetchmailconf
119 A GUI configurator for generating fetchmail configuration file written in
120 Python.
121
122 %description -n fetchmailconf -l de
123 Ein in Python geschriebenes Programm mit graphischer Oberfläche zur
124 Erzeugung von Fetchmail-Konfigurationsdateien.
125
126 %description -n fetchmailconf -l pt
127 Um configurador gráfico para a geração de arquivos de configuração do
128 fetchmail. Feito em python.
129
130 %description -n fetchmailconf -l es
131 Configurador gráfico para fetchmail escrito en python
132
133 %description -n fetchmailconf -l de
134 Ein interaktiver GUI-Konfigurator für fetchmail in python
135
136 %description -n fetchmailconf -l pl
137 GUI konfigurator do fetchmaila napisany w pythonie.
138
139 %prep
140 %setup -q
141
142 %build
143 LDFLAGS="-s"
144 export CFLAGS LDFLAGS
145 #./configure --prefix=/usr --disable-nls --without-kerberos --mandir=%{_mandir} --with-SSL --enable-inet6
146 ./configure --prefix=/usr --without-included-gettext --without-kerberos --mandir=%{_mandir} --with-ssl --enable-inet6
147                          # Remove --disable-nls, add --without-included-gettext
148                          # for internationalization. Also look below.
149 make
150
151 %install
152 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
153 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
154 make install-strip prefix=\$RPM_BUILD_ROOT/usr mandir=\$RPM_BUILD_ROOT%{_mandir}
155 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
156 rm -rf contrib/RCS
157 chmod 644 contrib/*
158 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
159 #cd \$RPM_BUILD_ROOT%{_mandir}/man1
160 #ln -sf fetchmail.1 fetchmailconf.1
161
162 %clean
163 rm -rf \$RPM_BUILD_ROOT
164
165 %files
166 %defattr (644, root, root, 755)
167 %doc ABOUT-NLS FAQ COPYING FEATURES NEWS
168 %doc NOTES OLDNEWS README README.SSL
169 %doc contrib
170 %doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
171 %doc design-notes.html
172 %attr(644, root, man) %{_mandir}/man1/fetchmail.1*
173 %attr(755, root, root) /usr/bin/fetchmail
174 # Uncomment the following to support internationalization
175 %attr(644,root,root) /usr/share/locale/*/LC_MESSAGES/fetchmail.mo
176 # Uncomment the following to make split fetchmail and fetchmailconf packages
177 %files -n fetchmailconf
178 %defattr (644, root, root, 755)
179 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
180 %attr(755,root,root) /usr/bin/fetchmailconf
181 %attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
182 /usr/lib/rhs/control-panel/fetchmailconf.xpm
183 /usr/lib/rhs/control-panel/fetchmailconf.init
184
185 %changelog
186 * `date '+%a %b %d %Y'` <$email> ${version}
187 - See the project NEWS file for recent changes.
188 EOF