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