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