]> git.pld-linux.org Git - packages/fetchmail.git/blobdiff - fetchmail.spec
- openssl 1.0.2g rebuild
[packages/fetchmail.git] / fetchmail.spec
index 6e2a6526a6e618e1ac45cac05e6cdb2c427c7bed..b14dcfe849b2e00435258907d247f768fad9ee26 100644 (file)
@@ -1,40 +1,42 @@
+# TODO: kerberos5/gssapi support?
 #
 # Conditional build:
 %bcond_without ssl     # build without SSL support
-%bcond_without ipv6    # build without IPv6 support
 #
 Summary:       Remote mail fetch daemon for POP2, POP3, APOP, IMAP
-Summary(da):   Alsidig POP/IMAP post-afhentnings dæmon
-Summary(de):   Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
-Summary(es):   Recolector de correo via POP/IMAP
-Summary(fr):   Démon de récupération du mail pour POP2, POP3, APOP, IMAP
-Summary(pl):   Zdalny demon pocztowy do protoko³ów POP2, POP3, APOP, IMAP
-Summary(pt):   Busca mensagens de um servidor usando POP ou IMAP
-Summary(ru):   õÔÉÌÉÔÁ ÉÚ×ÌÅÞÅÎÉÑ ÐÏÞÔÙ Ó ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÙ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
-Summary(tr):   POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
-Summary(uk):   õÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔɠڠצÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
-Summary(zh_CN):        ¹¦ÄÜÇ¿´óµÄ POP/IMAP µç×ÓÓʼþÊÕÈ¡ÊØ»¤½ø³Ì
+Summary(da.UTF-8):     Alsidig POP/IMAP post-afhentnings dæmon
+Summary(de.UTF-8):     Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
+Summary(es.UTF-8):     Recolector de correo via POP/IMAP
+Summary(fr.UTF-8):     Démon de récupération du mail pour POP2, POP3, APOP, IMAP
+Summary(pl.UTF-8):     Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
+Summary(pt.UTF-8):     Busca mensagens de um servidor usando POP ou IMAP
+Summary(ru.UTF-8):     Утилита извлечения почты с удаленной машины по протоколам POP/IMAP
+Summary(tr.UTF-8):     POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
+Summary(uk.UTF-8):     Утиліта отримання пошти з віддаленої машини по протоколам POP/IMAP
+Summary(zh_CN.UTF-8):  功能强大的 POP/IMAP 电子邮件收取守护进程
 Name:          fetchmail
-Version:       6.2.5
-Release:       6
-License:       GPL
+Version:       6.3.26
+Release:       2
+License:       GPL v2 with OpenSSL exception
 Group:         Applications/Mail
-Source0:       http://catb.org/~esr/fetchmail/%{name}-%{version}.tar.gz
-# Source0-md5: 9956b30139edaa4f5f77c4d0dbd80225
+#Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
+Source0:       http://downloads.sourceforge.net/fetchmail/%{name}-%{version}.tar.xz
+# Source0-md5: 61b66faad044afa26e142bb1791aa2b3
 Source1:       %{name}conf.desktop
 Source2:       %{name}.sysconfig
 Source3:       %{name}.init
 Source4:       %{name}.logrotate
-Patch0:                %{name}-pl.po-update.patch
-Patch1:                %{name}-home_etc.patch
-Patch2:                %{name}-ssl.patch
-Icon:          fetchmail.gif
-URL:           http://www.catb.org/~esr/fetchmail/
+URL:           http://fetchmail.berlios.de/
 BuildRequires: automake
-BuildRequires: bison
 BuildRequires: flex
-BuildRequires: gettext-devel
-%{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
+BuildRequires: gettext-tools >= 0.14.6
+%{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7l}
+BuildRequires: python >= 2.0
+BuildRequires: python-modules >= 2.0
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 Requires:      setup >= 2.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,20 +46,20 @@ mail server. It can use the Post Office Protocol (POP) or IMAP
 (Internet Mail Access Protocol) for this, and delivers the mail
 through the local SMTP server (normally sendmail).
 
-%description -l da
-Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
+%description -l da.UTF-8
+Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
 til afhentning og videresending af elektronisk post via TCP/IP
-baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
+baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
 henter post fra en ekstern post-server, og videresender den til din
-lokale klient-maskines post-system, så den kan læses af almindelige
-mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
-medfølger også et interaktivt GUI-baseret konfigurations-program, som
+lokale klient-maskines post-system, så den kan læses af almindelige
+mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
+medfølger også et interaktivt GUI-baseret konfigurations-program, som
 kan bruges af almindelige brugere.
 
-%description -l de
-Fetchmail ist ein freies, vollständiges, robustes und
+%description -l de.UTF-8
+Fetchmail ist ein freies, vollständiges, robustes und
 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
-gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
+gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
@@ -65,65 +67,65 @@ agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
 durch Endbenutzer wird mitgeliefert.
 
-%description -l es
+%description -l es.UTF-8
 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
-para la recepción y reeenvío de correo pensada para ser usada en co-
+para la recepción y reeenvío de correo pensada para ser usada en co-
 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
-servidores remotos y lo reenvía al sistema de entrega local, siendo de
+servidores remotos y lo reenvía al sistema de entrega local, siendo de
 ese modo posible leerlo con programas como mutt, elm, pine,
 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
 pensado para usuarios.
 
-%description -l fr
-Fetchmail est un programme utilisé pour récupérer le mail depuis un
+%description -l fr.UTF-8
+Fetchmail est un programme utilisé pour récupérer le mail depuis un
 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
-(Internet Mail Access Protocol) pour cela, et achemine le courrier à
+(Internet Mail Access Protocol) pour cela, et achemine le courrier à
 travers le serveur SMTP local (sendmail normal).
 
-%description -l pl
-Fetchmail jest programem do ¶ci±gania poczty ze zdalnych serwerów
-pocztowych. Do ¶ci±gania poczty mo¿e on u¿ywaæ protoko³ów POP (Post
-Office Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt±
-pocztê dostarcza odbiorcom poprzez lokalny serwer SMTP.
+%description -l pl.UTF-8
+Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
+pocztowych. Do ściągania poczty może on używać protokołów POP (Post
+Office Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą
+pocztę dostarcza odbiorcom poprzez lokalny serwer SMTP.
 
-%description -l pt
-fetchmail é um programa que é usado para recuperar mensagens de um
+%description -l pt.UTF-8
+fetchmail é um programa que é usado para recuperar mensagens de um
 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
-através do servidor local SMTP (normalmente sendmail).
-
-%description -l ru
-Fetchmail - ÜÔÏ ÕÔÉÌÉÔÁ ÉÚ×ÌÅÞÅÎÉÑ ÐÏÞÔÙ Ó ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÙ É
-ÆÏÒ×ÁÒÄÉÎÇÁ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÁÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÎÁ on-demand TCP/IP
-ÓÏÅÄÉÎÅÎÉÑÈ, ÔÁËÉÈ ËÁË SLIP ÉÌÉ PPP ÓÏÅÄÎÅÎÉÑ. Fetchmail ÐÏÄÄÅÒÖÉ×ÁÅÔ
-×ÓÅ ÉÓÐÏÌØÚÕÅÍÙÅ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ × éÎÅÒÎÅÔÅ ÐÒÏÔÏËÏÌÙ ÕÄÁÌÅÎÎÏÊ
ÏÞÔÙ (POP2, POP3, RPOP, APOP, KPOP, ×ÓÅ IMAPÙ, ESMTP ETRN). úÁÔÅÍ
-Fetchmail ÆÏÒ×ÁÒÄÉÔ ÉÚ×ÌÅÞÅÎÎÕÀ ÐÏÞÔÕ ÞÅÒÅÚ SMTP, ÞÔÏÂÙ ×É ÍÏÇÌÉ
ÒÏÞÉÔÁÔØ ÅÅ Ó×ÏÉÍ ÌÀÂÉÍÙÍ ÐÏÞÔÏ×ÙÍ ËÌÉÅÎÔÏÍ.
-
-%description -l tr
-fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
-mektuplarýnýzý alýr.
-
-%description -l uk
-Fetchmail - ÃÅ ÕÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔɠڠצÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÔÁ
-ÆÏÒ×ÁÒÄÉÎÇÕ, ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ÎÁ on-demand TCP/IP
-Ú'¤ÄÎÁÎÎÑÈ, ÔÁËÉÈ ÑË SLIP ÞÉ PPP Ú'¤ÄÎÁÎÎÑ. Fetchmail Ð¦ÄÔÒÉÍÕ¤ ×Ó¦
-×ÉËÏÒÉÓÔÏ×Õ×ÁΦ ÎÁ ÓØÏÇÏÄΦ ÐÒÏÔÏËÏÌɠצÄÄÁÌÅÎϧ ÐÏÛÔÉ (POP2, POP3,
-RPOP, APOP, KPOP, ×Ó¦ IMAPÉ, ESMTP ETRN). ð¦ÓÌÑ ÏÔÒÉÍÁÎÎÑ Fetchmail
-ÆÏÒ×ÁÒÄÉÔØ ÐÏÛÔÕ ÞÅÒÅÚ SMTP, ÝÏ ×É ÍÏÇÌÉ ÐÒÏÞÉÔÁÔÉ §§ Ó×ϧ͠ÕÌÀÂÌÅÎÉÍ
ÏÛÔÏ×ÉÍ Ë̦¤ÎÔÏÍ.
+através do servidor local SMTP (normalmente sendmail).
+
+%description -l ru.UTF-8
+Fetchmail - это утилита извлечения почты с удаленной машины и
+форвардинга, предназначенная для использования на on-demand TCP/IP
+соединениях, таких как SLIP или PPP соеднения. Fetchmail поддерживает
+все используемые в настоящее время в Инернете протоколы удаленной
¿Ð¾Ñ\87Ñ\82Ñ\8b (POP2, POP3, RPOP, APOP, KPOP, Ð²Ñ\81е IMAPÑ\8b, ESMTP ETRN). Ð\97аÑ\82ем
+Fetchmail форвардит извлеченную почту через SMTP, чтобы ви могли
¿Ñ\80оÑ\87иÑ\82аÑ\82Ñ\8c ÐµÐµ Ñ\81воим Ð»Ñ\8eбимÑ\8bм Ð¿Ð¾Ñ\87Ñ\82овÑ\8bм ÐºÐ»Ð¸ÐµÐ½Ñ\82ом.
+
+%description -l tr.UTF-8
+fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
+mektuplarınızı alır.
+
+%description -l uk.UTF-8
+Fetchmail - це утиліта отримання пошти з віддаленої машини та
+форвардингу, призначена для використання на on-demand TCP/IP
+з'єднаннях, таких як SLIP чи PPP з'єднання. Fetchmail підтримує всі
+використовувані на сьогодні протоколи віддаленої пошти (POP2, POP3,
+RPOP, APOP, KPOP, всі IMAPи, ESMTP ETRN). Після отримання Fetchmail
+форвардить пошту через SMTP, щоб ви могли прочитати її своїм улюбленим
¿Ð¾Ñ\88Ñ\82овим ÐºÐ»Ñ\96Ñ\94нÑ\82ом.
 
 %package -n fetchmailconf
 Summary:       A GUI configurator for generating fetchmail configuration files
-Summary(es):   Configurador GUI interactivo por fetchmail
-Summary(fr):   GUI configurateur pour fetchmail
-Summary(pl):   Konfigurator GUI do fetchmaila
-Summary(pt):   Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
-Summary(ru):   çÒÁÆÉÞÅÓËÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ÐÒÅÄÐÏÞÔÅÎÉÊ ÄÌÑ fetchmail
-Summary(uk):   çÒÁƦÞÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÐÏÄÏÂÁÎØ ÄÌÑ fetchmail
+Summary(es.UTF-8):     Configurador GUI interactivo por fetchmail
+Summary(fr.UTF-8):     GUI configurateur pour fetchmail
+Summary(pl.UTF-8):     Konfigurator GUI do fetchmaila
+Summary(pt.UTF-8):     Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
+Summary(ru.UTF-8):     Графическая утилита для конфигурации предпочтений для fetchmail
+Summary(uk.UTF-8):     Графічна утиліта для конфігурації вподобань для fetchmail
 Group:         Applications/System
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 Requires:      python
 Requires:      python-tkinter
 
@@ -131,53 +133,51 @@ Requires: python-tkinter
 A GUI configurator for generating fetchmail configuration file written
 in python.
 
-%description -n fetchmailconf -l de
-Ein interaktiver GUI-Konfigurator für fetchmail in python.
+%description -n fetchmailconf -l de.UTF-8
+Ein interaktiver GUI-Konfigurator für fetchmail in python.
 
-%description -n fetchmailconf -l es
-Configurador gráfico para fetchmail escrito en python.
+%description -n fetchmailconf -l es.UTF-8
+Configurador gráfico para fetchmail escrito en python.
 
-%description -n fetchmailconf -l pl
+%description -n fetchmailconf -l pl.UTF-8
 Konfigurator GUI do fetchmaila napisany w pythonie.
 
-%description -n fetchmailconf -l pt
-Um configurador gráfico para a criação de arquivos de configuração
+%description -n fetchmailconf -l pt.UTF-8
+Um configurador gráfico para a criação de arquivos de configuração
 para o fetchmail.
 
-%description -n fetchmailconf -l ru
-Fetchmailconf - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÎÁ Tcl/Tk ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ×ÁÛÅÇÏ ÆÁÊÌÁ
ÒÅÄÐÏÞÔÅÎÉÊ ~/.fetchmailrc.
+%description -n fetchmailconf -l ru.UTF-8
+Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
¿Ñ\80едпоÑ\87Ñ\82ений ~/.fetchmailrc.
 
-%description -n fetchmailconf -l uk
-Fetchmailconf - ÃÅ ÐÒÏÇÒÁÍÁ ÎÁ Tcl/Tk ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÁÛÏÇÏ ÆÁÊÌÁ
-×ÐÏÄÏÂÁÎØ ~/.fetchmailrc.
+%description -n fetchmailconf -l uk.UTF-8
+Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
+вподобань ~/.fetchmailrc.
 
 %package daemon
 Summary:       SysV init script for demonize fetchmail for sucking emails
-Summary(pl):   Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
+Summary(pl.UTF-8):     Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
 Group:         Applications/System
-Requires:      %{name} = %{version}
-PreReq:                rc-scripts >= 0.2.0
 Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
+Requires:      rc-scripts
 
 %description daemon
 SysV init script for demonize fetchmail for sucking emails.
 
-%description daemon -l pl
-Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona.
+%description daemon -l pl.UTF-8
+Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
+demona.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
 cp -f /usr/share/automake/config.* .
 %configure \
+       ac_cv_header_md5_h=no \
+       ac_cv_search_MD5Init=no \
        --enable-nls \
-       --without-included-gettext \
-       %{?with_ipv6:--enable-inet6} \
        --enable-RPA \
        --enable-NTLM \
        --enable-SDPS \
@@ -200,6 +200,8 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
+sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
+
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
 
@@ -207,28 +209,25 @@ echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
 
 %find_lang %{name}
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post daemon
 /sbin/chkconfig --add fetchmail
-if [ -f /var/lock/subsys/fetchmail ]; then
-       /etc/rc.d/init.d/fetchmail restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon."
-fi
+%service fetchmail restart "fetchmail daemon"
 
 %preun daemon
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/fetchmail ]; then
-               /etc/rc.d/init.d/fetchmail stop >&2
-       fi
+       %service fetchmail stop
        /sbin/chkconfig --del fetchmail
 fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
+# COPYING contains detailed description of licenses
+%doc COPYING FEATURES README NEWS NOTES README.NTLM *.html FAQ
 %attr(755,root,root) %{_bindir}/fetchmail
 %{_mandir}/man1/fetchmail.1*
 
@@ -237,10 +236,11 @@ fi
 %attr(755,root,root) %{_bindir}/fetchmailconf
 %{_desktopdir}/fetchmailconf.desktop
 %{_mandir}/man1/fetchmailconf.1*
+%{py_sitescriptdir}/*.py[co]
 
 %files daemon
 %defattr(644,root,root,755)
-%attr(600,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/fetchmailrc
+%attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc
 %attr(754,root,root) /etc/rc.d/init.d/fetchmail
-%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/fetchmail
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/fetchmail
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fetchmail
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fetchmail
This page took 0.090967 seconds and 4 git commands to generate.