]> git.pld-linux.org Git - packages/fetchmail.git/blob - fetchmail.spec
rebuild with openssl 3.0.0
[packages/fetchmail.git] / fetchmail.spec
1 # TODO: kerberos5/gssapi support?
2 #
3 # Conditional build:
4 %bcond_without  ssl     # build without SSL support
5 #
6 Summary:        Remote mail fetch daemon for POP2, POP3, APOP, IMAP
7 Summary(da.UTF-8):      Alsidig POP/IMAP post-afhentnings dæmon
8 Summary(de.UTF-8):      Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
9 Summary(es.UTF-8):      Recolector de correo via POP/IMAP
10 Summary(fr.UTF-8):      Démon de récupération du mail pour POP2, POP3, APOP, IMAP
11 Summary(pl.UTF-8):      Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
12 Summary(pt.UTF-8):      Busca mensagens de um servidor usando POP ou IMAP
13 Summary(ru.UTF-8):      Утилита извлечения почты с удаленной машины по протоколам POP/IMAP
14 Summary(tr.UTF-8):      POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
15 Summary(uk.UTF-8):      Утиліта отримання пошти з віддаленої машини по протоколам POP/IMAP
16 Summary(zh_CN.UTF-8):   功能强大的 POP/IMAP 电子邮件收取守护进程
17 Name:           fetchmail
18 Version:        6.3.26
19 Release:        2
20 License:        GPL v2 with OpenSSL exception
21 Group:          Applications/Mail
22 #Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
23 Source0:        http://downloads.sourceforge.net/fetchmail/%{name}-%{version}.tar.xz
24 # Source0-md5:  61b66faad044afa26e142bb1791aa2b3
25 Source1:        %{name}conf.desktop
26 Source2:        %{name}.sysconfig
27 Source3:        %{name}.init
28 Source4:        %{name}.logrotate
29 URL:            http://fetchmail.berlios.de/
30 BuildRequires:  automake
31 BuildRequires:  flex
32 BuildRequires:  gettext-tools >= 0.14.6
33 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7l}
34 BuildRequires:  python >= 2.0
35 BuildRequires:  python-modules >= 2.0
36 BuildRequires:  rpm-pythonprov
37 BuildRequires:  rpmbuild(macros) >= 1.268
38 BuildRequires:  tar >= 1:1.22
39 BuildRequires:  xz
40 Requires:       setup >= 2.3
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Fetchmail is a program that is used to retrieve mail from a remote
45 mail server. It can use the Post Office Protocol (POP) or IMAP
46 (Internet Mail Access Protocol) for this, and delivers the mail
47 through the local SMTP server (normally sendmail).
48
49 %description -l da.UTF-8
50 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
51 til afhentning og videresending af elektronisk post via TCP/IP
52 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
53 henter post fra en ekstern post-server, og videresender den til din
54 lokale klient-maskines post-system, så den kan læses af almindelige
55 mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
56 medfølger også et interaktivt GUI-baseret konfigurations-program, som
57 kan bruges af almindelige brugere.
58
59 %description -l de.UTF-8
60 Fetchmail ist ein freies, vollständiges, robustes und
61 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
62 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
63 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
64 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
65 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
66 agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
67 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
68 durch Endbenutzer wird mitgeliefert.
69
70 %description -l es.UTF-8
71 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
72 para la recepción y reeenvío de correo pensada para ser usada en co-
73 nexiones TCP/IP por demanda (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,
76 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
77 pensado para usuarios.
78
79 %description -l fr.UTF-8
80 Fetchmail est un programme utilisé pour récupérer le mail depuis un
81 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
82 (Internet Mail Access Protocol) pour cela, et achemine le courrier à
83 travers le serveur SMTP local (sendmail normal).
84
85 %description -l pl.UTF-8
86 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
87 pocztowych. Do ściągania poczty może on używać protokołów POP (Post
88 Office Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą
89 pocztę dostarcza odbiorcom poprzez lokalny serwer SMTP.
90
91 %description -l pt.UTF-8
92 fetchmail é um programa que é usado para recuperar mensagens de um
93 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
94 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
95 através do servidor local SMTP (normalmente sendmail).
96
97 %description -l ru.UTF-8
98 Fetchmail - это утилита извлечения почты с удаленной машины и
99 форвардинга, предназначенная для использования на on-demand TCP/IP
100 соединениях, таких как SLIP или PPP соеднения. Fetchmail поддерживает
101 все используемые в настоящее время в Инернете протоколы удаленной
102 почты (POP2, POP3, RPOP, APOP, KPOP, все IMAPы, ESMTP ETRN). Затем
103 Fetchmail форвардит извлеченную почту через SMTP, чтобы ви могли
104 прочитать ее своим любимым почтовым клиентом.
105
106 %description -l tr.UTF-8
107 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
108 mektuplarınızı alır.
109
110 %description -l uk.UTF-8
111 Fetchmail - це утиліта отримання пошти з віддаленої машини та
112 форвардингу, призначена для використання на on-demand TCP/IP
113 з'єднаннях, таких як SLIP чи PPP з'єднання. Fetchmail підтримує всі
114 використовувані на сьогодні протоколи віддаленої пошти (POP2, POP3,
115 RPOP, APOP, KPOP, всі IMAPи, ESMTP ETRN). Після отримання Fetchmail
116 форвардить пошту через SMTP, щоб ви могли прочитати її своїм улюбленим
117 поштовим клієнтом.
118
119 %package -n fetchmailconf
120 Summary:        A GUI configurator for generating fetchmail configuration files
121 Summary(es.UTF-8):      Configurador GUI interactivo por fetchmail
122 Summary(fr.UTF-8):      GUI configurateur pour fetchmail
123 Summary(pl.UTF-8):      Konfigurator GUI do fetchmaila
124 Summary(pt.UTF-8):      Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
125 Summary(ru.UTF-8):      Графическая утилита для конфигурации предпочтений для fetchmail
126 Summary(uk.UTF-8):      Графічна утиліта для конфігурації вподобань для fetchmail
127 Group:          Applications/System
128 Requires:       %{name} = %{version}-%{release}
129 Requires:       python
130 Requires:       python-tkinter
131
132 %description -n fetchmailconf
133 A GUI configurator for generating fetchmail configuration file written
134 in python.
135
136 %description -n fetchmailconf -l de.UTF-8
137 Ein interaktiver GUI-Konfigurator für fetchmail in python.
138
139 %description -n fetchmailconf -l es.UTF-8
140 Configurador gráfico para fetchmail escrito en python.
141
142 %description -n fetchmailconf -l pl.UTF-8
143 Konfigurator GUI do fetchmaila napisany w pythonie.
144
145 %description -n fetchmailconf -l pt.UTF-8
146 Um configurador gráfico para a criação de arquivos de configuração
147 para o fetchmail.
148
149 %description -n fetchmailconf -l ru.UTF-8
150 Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
151 предпочтений ~/.fetchmailrc.
152
153 %description -n fetchmailconf -l uk.UTF-8
154 Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
155 вподобань ~/.fetchmailrc.
156
157 %package daemon
158 Summary:        SysV init script for demonize fetchmail for sucking emails
159 Summary(pl.UTF-8):      Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
160 Group:          Applications/System
161 Requires(post,preun):   /sbin/chkconfig
162 Requires:       %{name} = %{version}-%{release}
163 Requires:       rc-scripts
164
165 %description daemon
166 SysV init script for demonize fetchmail for sucking emails.
167
168 %description daemon -l pl.UTF-8
169 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
170 demona.
171
172 %prep
173 %setup -q
174
175 %build
176 cp -f /usr/share/automake/config.* .
177 %configure \
178         ac_cv_header_md5_h=no \
179         ac_cv_search_MD5Init=no \
180         --enable-nls \
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 sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
204
205 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
206 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
207
208 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
209
210 %find_lang %{name}
211
212 %py_postclean
213
214 %clean
215 rm -rf $RPM_BUILD_ROOT
216
217 %post daemon
218 /sbin/chkconfig --add fetchmail
219 %service fetchmail restart "fetchmail daemon"
220
221 %preun daemon
222 if [ "$1" = "0" ]; then
223         %service fetchmail stop
224         /sbin/chkconfig --del fetchmail
225 fi
226
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 # COPYING contains detailed description of licenses
230 %doc COPYING FEATURES README NEWS NOTES README.NTLM *.html FAQ
231 %attr(755,root,root) %{_bindir}/fetchmail
232 %{_mandir}/man1/fetchmail.1*
233
234 %files -n fetchmailconf
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/fetchmailconf
237 %{_desktopdir}/fetchmailconf.desktop
238 %{_mandir}/man1/fetchmailconf.1*
239 %{py_sitescriptdir}/*.py[co]
240
241 %files daemon
242 %defattr(644,root,root,755)
243 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc
244 %attr(754,root,root) /etc/rc.d/init.d/fetchmail
245 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fetchmail
246 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fetchmail
This page took 0.070225 seconds and 3 git commands to generate.