]> git.pld-linux.org Git - packages/fetchmail.git/blob - fetchmail.spec
- added macros in /etc/logrotate.d
[packages/fetchmail.git] / fetchmail.spec
1 #
2 # Conditional build:
3 %bcond_without  ssl     # build without SSL support
4 %bcond_without  ipv6    # build without IPv6 support
5 #
6 Summary:        Remote mail fetch daemon for POP2, POP3, APOP, IMAP
7 Summary(da):    Alsidig POP/IMAP post-afhentnings dæmon
8 Summary(de):    Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
9 Summary(es):    Recolector de correo via POP/IMAP
10 Summary(fr):    Démon de récupération du mail pour POP2, POP3, APOP, IMAP
11 Summary(pl):    Zdalny demon pocztowy do protoko³ów POP2, POP3, APOP, IMAP
12 Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
13 Summary(ru):    õÔÉÌÉÔÁ ÉÚ×ÌÅÞÅÎÉÑ ÐÏÞÔÙ Ó ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÙ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
14 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
15 Summary(uk):    õÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔɠڠצÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
16 Summary(zh_CN): ¹¦ÄÜÇ¿´óµÄ POP/IMAP µç×ÓÓʼþÊÕÈ¡ÊØ»¤½ø³Ì
17 Name:           fetchmail
18 Version:        6.2.5
19 Release:        6
20 License:        GPL
21 Group:          Applications/Mail
22 Source0:        http://catb.org/~esr/fetchmail/%{name}-%{version}.tar.gz
23 # Source0-md5:  9956b30139edaa4f5f77c4d0dbd80225
24 Source1:        %{name}conf.desktop
25 Source2:        %{name}.sysconfig
26 Source3:        %{name}.init
27 Source4:        %{name}.logrotate
28 Patch0:         %{name}-pl.po-update.patch
29 Patch1:         %{name}-home_etc.patch
30 Patch2:         %{name}-ssl.patch
31 Icon:           fetchmail.gif
32 URL:            http://www.catb.org/~esr/fetchmail/
33 BuildRequires:  automake
34 BuildRequires:  bison
35 BuildRequires:  flex
36 BuildRequires:  gettext-devel
37 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
38 Requires:       setup >= 2.3
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Fetchmail is a program that is used to retrieve mail from a remote
43 mail server. It can use the Post Office Protocol (POP) or IMAP
44 (Internet Mail Access Protocol) for this, and delivers the mail
45 through the local SMTP server (normally sendmail).
46
47 %description -l da
48 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
49 til afhentning og videresending af elektronisk post via TCP/IP
50 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
51 henter post fra en ekstern post-server, og videresender den til din
52 lokale klient-maskines post-system, så den kan læses af almindelige
53 mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
54 medfølger også et interaktivt GUI-baseret konfigurations-program, som
55 kan bruges af almindelige brugere.
56
57 %description -l de
58 Fetchmail ist ein freies, vollständiges, robustes und
59 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
60 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
61 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
62 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
63 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
64 agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
65 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
66 durch Endbenutzer wird mitgeliefert.
67
68 %description -l es
69 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
70 para la recepción y reeenvío de correo pensada para ser usada en co-
71 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
72 servidores remotos y lo reenvía al sistema de entrega local, siendo de
73 ese modo posible leerlo con programas como mutt, elm, pine,
74 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
75 pensado para usuarios.
76
77 %description -l fr
78 Fetchmail est un programme utilisé pour récupérer le mail depuis un
79 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
80 (Internet Mail Access Protocol) pour cela, et achemine le courrier à
81 travers le serveur SMTP local (sendmail normal).
82
83 %description -l pl
84 Fetchmail jest programem do ¶ci±gania poczty ze zdalnych serwerów
85 pocztowych. Do ¶ci±gania poczty mo¿e on u¿ywaæ protoko³ów POP (Post
86 Office Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt±
87 pocztê dostarcza odbiorcom poprzez lokalny serwer SMTP.
88
89 %description -l pt
90 fetchmail é um programa que é usado para recuperar mensagens de um
91 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
92 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
93 através do servidor local SMTP (normalmente sendmail).
94
95 %description -l ru
96 Fetchmail - ÜÔÏ ÕÔÉÌÉÔÁ ÉÚ×ÌÅÞÅÎÉÑ ÐÏÞÔÙ Ó ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÙ É
97 ÆÏÒ×ÁÒÄÉÎÇÁ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÁÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÎÁ on-demand TCP/IP
98 ÓÏÅÄÉÎÅÎÉÑÈ, ÔÁËÉÈ ËÁË SLIP ÉÌÉ PPP ÓÏÅÄÎÅÎÉÑ. Fetchmail ÐÏÄÄÅÒÖÉ×ÁÅÔ
99 ×ÓÅ ÉÓÐÏÌØÚÕÅÍÙÅ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ × éÎÅÒÎÅÔÅ ÐÒÏÔÏËÏÌÙ ÕÄÁÌÅÎÎÏÊ
100 ÐÏÞÔÙ (POP2, POP3, RPOP, APOP, KPOP, ×ÓÅ IMAPÙ, ESMTP ETRN). úÁÔÅÍ
101 Fetchmail ÆÏÒ×ÁÒÄÉÔ ÉÚ×ÌÅÞÅÎÎÕÀ ÐÏÞÔÕ ÞÅÒÅÚ SMTP, ÞÔÏÂÙ ×É ÍÏÇÌÉ
102 ÐÒÏÞÉÔÁÔØ ÅÅ Ó×ÏÉÍ ÌÀÂÉÍÙÍ ÐÏÞÔÏ×ÙÍ ËÌÉÅÎÔÏÍ.
103
104 %description -l tr
105 fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
106 mektuplarýnýzý alýr.
107
108 %description -l uk
109 Fetchmail - ÃÅ ÕÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔɠڠצÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÔÁ
110 ÆÏÒ×ÁÒÄÉÎÇÕ, ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ÎÁ on-demand TCP/IP
111 Ú'¤ÄÎÁÎÎÑÈ, ÔÁËÉÈ ÑË SLIP ÞÉ PPP Ú'¤ÄÎÁÎÎÑ. Fetchmail Ð¦ÄÔÒÉÍÕ¤ ×Ó¦
112 ×ÉËÏÒÉÓÔÏ×Õ×ÁΦ ÎÁ ÓØÏÇÏÄΦ ÐÒÏÔÏËÏÌɠצÄÄÁÌÅÎϧ ÐÏÛÔÉ (POP2, POP3,
113 RPOP, APOP, KPOP, ×Ó¦ IMAPÉ, ESMTP ETRN). ð¦ÓÌÑ ÏÔÒÉÍÁÎÎÑ Fetchmail
114 ÆÏÒ×ÁÒÄÉÔØ ÐÏÛÔÕ ÞÅÒÅÚ SMTP, ÝÏ ×É ÍÏÇÌÉ ÐÒÏÞÉÔÁÔÉ §§ Ó×ϧ͠ÕÌÀÂÌÅÎÉÍ
115 ÐÏÛÔÏ×ÉÍ Ë̦¤ÎÔÏÍ.
116
117 %package -n fetchmailconf
118 Summary:        A GUI configurator for generating fetchmail configuration files
119 Summary(es):    Configurador GUI interactivo por fetchmail
120 Summary(fr):    GUI configurateur pour fetchmail
121 Summary(pl):    Konfigurator GUI do fetchmaila
122 Summary(pt):    Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
123 Summary(ru):    çÒÁÆÉÞÅÓËÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ÐÒÅÄÐÏÞÔÅÎÉÊ ÄÌÑ fetchmail
124 Summary(uk):    çÒÁƦÞÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÐÏÄÏÂÁÎØ ÄÌÑ fetchmail
125 Group:          Applications/System
126 Requires:       %{name} = %{version}
127 Requires:       python
128 Requires:       python-tkinter
129
130 %description -n fetchmailconf
131 A GUI configurator for generating fetchmail configuration file written
132 in python.
133
134 %description -n fetchmailconf -l de
135 Ein interaktiver GUI-Konfigurator für fetchmail in python.
136
137 %description -n fetchmailconf -l es
138 Configurador gráfico para fetchmail escrito en python.
139
140 %description -n fetchmailconf -l pl
141 Konfigurator GUI do fetchmaila napisany w pythonie.
142
143 %description -n fetchmailconf -l pt
144 Um configurador gráfico para a criação de arquivos de configuração
145 para o fetchmail.
146
147 %description -n fetchmailconf -l ru
148 Fetchmailconf - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÎÁ TCL/TK ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ×ÁÛÅÇÏ ÆÁÊÌÁ
149 ÐÒÅÄÐÏÞÔÅÎÉÊ ~/.fetchmailrc.
150
151 %description -n fetchmailconf -l uk
152 Fetchmailconf - ÃÅ ÐÒÏÇÒÁÍÁ ÎÁ TCL/TK ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÁÛÏÇÏ ÆÁÊÌÁ
153 ×ÐÏÄÏÂÁÎØ ~/.fetchmailrc.
154
155 %package daemon
156 Summary:        SysV init script for demonize fetchmail for sucking emails
157 Summary(pl):    Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
158 Group:          Applications/System
159 Requires:       %{name} = %{version}
160 PreReq:         rc-scripts >= 0.2.0
161 Requires(post,preun):   /sbin/chkconfig
162
163 %description daemon
164 SysV init script for demonize fetchmail for sucking emails.
165
166 %description daemon -l pl
167 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona.
168
169 %prep
170 %setup -q
171 %patch0 -p1
172 %patch1 -p1
173 %patch2 -p1
174
175 %build
176 cp -f /usr/share/automake/config.* .
177 %configure \
178         --enable-nls \
179         --without-included-gettext \
180         %{?with_ipv6:--enable-inet6} \
181         --enable-RPA \
182         --enable-NTLM \
183         --enable-SDPS \
184         %{?with_ssl:--with-ssl=%{_prefix}} \
185         %{!?with_ssl:--without-ssl} \
186         --without-kerberos
187 %{__make}
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT%{_desktopdir} \
192         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
193         $RPM_BUILD_ROOT/etc/logrotate.d
194
195 %{__make} install \
196         DESTDIR=$RPM_BUILD_ROOT
197
198 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
199 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
200 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
201 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
202
203 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
204 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
205
206 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
207
208 %find_lang %{name}
209
210 %clean
211 rm -rf $RPM_BUILD_ROOT
212
213 %post daemon
214 /sbin/chkconfig --add fetchmail
215 if [ -f /var/lock/subsys/fetchmail ]; then
216         /etc/rc.d/init.d/fetchmail restart >&2
217 else
218         echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon."
219 fi
220
221 %preun daemon
222 if [ "$1" = "0" ]; then
223         if [ -f /var/lock/subsys/fetchmail ]; then
224                 /etc/rc.d/init.d/fetchmail stop >&2
225         fi
226         /sbin/chkconfig --del fetchmail
227 fi
228
229 %files -f %{name}.lang
230 %defattr(644,root,root,755)
231 %doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
232 %attr(755,root,root) %{_bindir}/fetchmail
233 %{_mandir}/man1/fetchmail.1*
234
235 %files -n fetchmailconf
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/fetchmailconf
238 %{_desktopdir}/fetchmailconf.desktop
239 %{_mandir}/man1/fetchmailconf.1*
240
241 %files daemon
242 %defattr(644,root,root,755)
243 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/fetchmailrc
244 %attr(754,root,root) /etc/rc.d/init.d/fetchmail
245 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/fetchmail
246 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/fetchmail
This page took 0.056358 seconds and 3 git commands to generate.