]> git.pld-linux.org Git - packages/fetchmail.git/blobdiff - fetchmail.spec
- updated to 5.7.6.
[packages/fetchmail.git] / fetchmail.spec
index 7b2894cc8fb9a1b1344ac799a70f0671c6f01f8f..b7c36cbd914db3d83d0fe9c2f41d0268debed3df 100644 (file)
-Summary:        Remote mail fetch daemon for POP2, POP3, APOP, IMAP
+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_AR):        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_BR): Busca mensagens de um servidor usando POP ou IMAP
-Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
-Name:           fetchmail
-Version:        5.0.3
-Release:        1
-Copyright:      freely redistributable
-Group:          Applications/Mail
+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(tr):   POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
+Name:          fetchmail
+Version:       5.7.6
+Release:       1
+License:       GPL
+Vendor:                Eric S. Raymond <esr@thyrsus.com>
+Group:         Applications/Mail
+Group(de):     Applikationen/Post
 Group(pl):     Aplikacje/Poczta
-Group(pt_BR):   Aplicações/Correio Eletrônico
-Vendor:         Eric S. Raymond <esr@thyrsus.com>
-Source:         ftp://locke.ccil.org/pub/esr/fetchmail/%{name}-%{version}.tar.gz
-Icon:           fetchmail.gif
-URL:            http://www.tuxedo.org/~esr/fetchmail
-Requires:       smtpdaemon
-Buildroot:      /tmp/%{name}-%{version}-root
+Group(pt):     Aplicações/Correio Eletrônico
+Source0:       http://www.tuxedo.org/~esr/fetchmail/%{name}-%{version}.tar.gz
+Source1:       %{name}conf.desktop
+Source2:       %{name}.sysconfig
+Source3:       %{name}.init
+Source4:       %{name}.logrotate
+Icon:          fetchmail.gif
+URL:           http://www.tuxedo.org/~esr/fetchmail/
+%{!?bcond_off_ssl:BuildRequires:       openssl-devel >= 0.9.4-2}
+BuildRequires: gettext-devel
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: sed
+Requires:      smtpdaemon
+Requires:      setup >= 2.3
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Fetchmail is a program that is used to retrieve mail from a remote 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 til
-afhentning og videresending af elektronisk post via TCP/IP 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 kan bruges af
-almindelige brugere.
-
-%description -l de                                                                                            
-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- 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 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.
+Fetchmail is a program that is used to retrieve mail from a remote
+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
+til afhentning og videresending af elektronisk post via TCP/IP
+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
+kan bruges af almindelige brugere.
+
+%description -l de
+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-
+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
+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
-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- 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 ese modo posible leerlo
-con programas como mutt, elm, pine, (x)emacs/gnus o mailx. Contiene un
-configurador GUI interactivo pensado para usuarios.
+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-
+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
+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 serveur
-distant. Il peut utiliser POP (Post Office Protocol) ou IMAP (Internet Mail
-Access Protocol) pour cela, et achemine le courrier à travers le serveur
-SMTP local (sendmail normal).
+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 à
+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 uzywaæ protoko³ów POP (Post Office
-Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt± pocztê
-dostarcza do koñcowych odbiorców poprzez lokalny serwer SMTP.
+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_BR
-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 pt
+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 tr
 fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
 mektuplarýnýzý alýr.
 
 %package -n fetchmailconf
-Summary:        A GUI configurator for generating fetchmail configuration files
+Summary:       A GUI configurator for generating fetchmail configuration files
 Summary(es):   Configurador GUI interactivo por fetchmail
 Summary(fr):   GUI configurateur pour fetchmail
-Summary(pl):    GUI konfigurator do fetchmaila
-Group:          Utilities/System
-Group(pl):     Narzêdzia/System
-Requires:       %{name} = %{version}, python
+Summary(pl):   GUI konfigurator do fetchmaila
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
+Requires:      %{name} = %{version}
+Requires:      python
+Requires:      tkinter
 
 %description -n fetchmailconf
-A GUI configurator for generating fetchmail configuration file writen in
-python
+A GUI configurator for generating fetchmail configuration file writen
+in python.
+
+%description -n fetchmailconf -l de
+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 pl 
 GUI konfigurator do fetchmaila napisany w pythonie.
 
+%package daemon
+Summary:       SySV init script for demonize fetchmail for sucking emails
+Summary(pl):   SySV init skrypt do uruchamiania systemowego fetchmaila jako daemon
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
+Requires:      %{name} = %{version}
+Prereq:                rc-scripts >= 0.2.0
+
+%description daemon
+SySV init script for demonize fetchmail for sucking emails.
+
+%description -l pl daemon
+SySV init skrypt do uruchamiania systemowego fetchmaila jako daemon.
+
 %prep
 %setup -q
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
+chmod -R u+w *
+gettextize --copy --force
+%configure \
        --enable-nls \
-       --without-included-gettext
-make
+       --without-included-gettext \
+       --enable-inet6 \
+       --enable-RPA \
+       --enable-NTLM \
+       --enable-SDPS \
+       %{!?bcond_off_ssl:--with-ssl=%{_prefix}} \
+       %{?bcond_off_ssl:--without-ssl} \
+       --without-kerberos
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
+install -d $RPM_BUILD_ROOT%{_libdir}/rhs/control-panel \
+       $RPM_BUILD_ROOT%{_applnkdir}/Settings \
+       $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
+       $RPM_BUILD_ROOT/etc/logrotate.d
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-make install prefix=$RPM_BUILD_ROOT/usr
+install rh-config/*.{xpm,init} $RPM_BUILD_ROOT%{_libdir}/rhs/control-panel
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings
+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}
 
-install rh-config/*.{xpm,init} $RPM_BUILD_ROOT%{_libdir}/rhs/control-panel                               
-install rh-config/fetchmailconf.wmconfig $RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
-echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
+gzip -9nf FEATURES README NEWS NOTES *.html FAQ
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       FEATURES README NEWS NOTES *.html FAQ COPYING
+touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
+
+%find_lang %{name}
+
+%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 fetchamil daemon."
+fi
+
+%preun daemon
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/fetchmail ]; then
+               /etc/rc.d/init.d/fetchmail stop >&2
+       fi
+       /sbin/chkconfig --del fetchmail
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {FEATURES,README,NEWS,NOTES,*.html,FAQ,COPYING}.gz sample.rcfile
+%doc *.gz sample.rcfile
 
-%attr(755,root,root) /usr/bin/fetchmail
+%attr(755,root,root) %{_bindir}/fetchmail
 %{_mandir}/man1/fetchmail.1*
 
-%lang(es)    /usr/share/locale/es/LC_MESSAGES/fetchmail.mo
-%lang(fr)    /usr/share/locale/fr/LC_MESSAGES/fetchmail.mo
-%lang(pl)    /usr/share/locale/pl/LC_MESSAGES/fetchmail.mo
-%lang(pt_BR) /usr/share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
-
 %files -n fetchmailconf
 %defattr(644,root,root,755)
-/etc/X11/wmconfig/fetchmailconf
 %{_libdir}/rhs/control-panel/*
-%attr(755,root,root) /usr/bin/fetchmailconf
-%{_mandir}/man1/fetchmailconf.1.gz
-
-%changelog
-* Mon Apr 19 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [5.0.1-1]
-- recompiles on new rpm.
-
-* Thu Apr 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [5.0.0-1]
-- removed man group from man pages,
-- more locales (fr) and translations (es_AR, fr, da).
-
-* Wed Jan 27 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.7.6-1d]
-- fix: removed fetchmailconf binary from main package,
-- added pl locale,
-- added bzipping2 %doc.
-
-* Wed Jan 06 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.7.4-1]
-- added es_AR locale,
-
-* Mon Dec 28 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.7.1-1]
-- added gzipping man pages,
-- added pl translation,
-- Vendor field to "Eric S. Raymond <esr@thyrsus.com>",
-- added pt_BR and de translationc from Eric spec,
-- added fetchmail.mo file with %lang macro,
-- fetchmailconf(1) man page maked as nroff include to 
-  fetchmail(1),
-- removed INSTALL from %doc,
-- added using LDFLAGS="-s" to ./configure enviroment,
-- added "Requires: python" to fetchmailconf subpackage,
-- added URL,
-- added --enable-nls and --without-included-gettext to 
-  ./configure parameters (libint is integrated in glibc),
-- added full %attr description in %files.
-
-* Wed Jul 22 1998 Jeff Johnson <jbj@redhat.com>
-- update to 4.5.3.
-
-* Fri May 08 1998 Cristian Gafton <gafton@redhat.com>
-- fixed spelung eror in the decsriptoin
-
-* Thu May 07 1998 Cristian Gafton <gafton@redhat.com>
-- new version 4.4.4 fixes a lot of bugs
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 4.4.1
-- buildroot
-
-* Thu Oct 23 1997 Michael Fulbright <msf@redhat.com>
-- Updated to 4.3.2 using SRPM from Eric Raymond
-
-* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%attr(755,root,root) %{_bindir}/fetchmailconf
+%{_applnkdir}/Settings/fetchmailconf.desktop
+%{_mandir}/man1/fetchmailconf.1*
+
+%files daemon
+%defattr(644,root,root,755)
+%attr(600,root,root) %config(noreplace,missingok) %{_sysconfdir}/fetchmailrc
+%attr(754,root,root) /etc/rc.d/init.d/fetchmail
+%attr(640,root,root) %config(noreplace) /etc/sysconfig/fetchmail
+%attr(640,root,root) /etc/logrotate.d/fetchmail
This page took 0.084074 seconds and 4 git commands to generate.