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