]> Pileus Git - ~andy/fetchmail/blobdiff - specgen.sh
error.c -> report.c
[~andy/fetchmail] / specgen.sh
index 4d9d9e47ce7485cf27b2436234dd6ef01d6501fe..882f1a73d133278d9c7334e84b2a6f520e411d15 100755 (executable)
@@ -1,28 +1,26 @@
 cat <<EOF
-%define name fetchmail
-%define version ${1}
-%define release 1
-%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
-Name:          %{name}
-Version:       %{version}
-Release:       %{release}
+# Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
+Name:          fetchmail
+Version:       $1
+Release:       1
 Vendor:                Eric Conspiracy Secret Labs
 Packager:      Eric S. Raymond <esr@thyrsus.com>
 URL:           http://www.tuxedo.org/~esr/fetchmail
 Source:         %{name}-%{version}.tar.gz
 Group:         Applications/Mail
 Group(pt_BR):   Aplicações/Correio Eletrônico
-Copyright:     GPL
-Icon:          fetchmail.gif
+License:       GPL
+Icon:          fetchmail.xpm
 Requires:      smtpdaemon
 BuildRoot:     /var/tmp/%{name}-%{version}
 Summary:       Full-featured POP/IMAP mail retrieval daemon
 Summary(fr):    Collecteur (POP/IMAP) de courrier électronique
 Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
-Summary(pt_BR): Busca mensagens de um servidor usando POP ou IMAP
-Summary(es_AR): Recolector de correo via POP/IMAP
+Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
+Summary(es):    Recolector de correo via POP/IMAP
 Summary(pl):    Zdalny demon pocztowy do protoko³ów POP2, POP3, APOP, IMAP
 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
+Summary(da):    Alsidig POP/IMAP post-afhentnings dæmon
 
 %description
 Fetchmail is a free, full-featured, robust, and well-documented remote
@@ -43,25 +41,26 @@ serveur SMTP local (habituellement sendmail).
 %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
+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
+entfernten Mail-Servern ab und 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
+gelesen werden können.  Ein interaktiver GUI-Konfigurator auch gut
 geeignet zum Gebrauch durch Endbenutzer wird mitgeliefert.
 
-%description -l pt_BR
+%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).
+Vem com uma interface gráfica para sua configuração. 
 
 %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 a el sistema de entrega local, siendo de
+para la recepción y reenvío de correo pensada para ser usada en
+conexiones TCP/IP temporales (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.
 
@@ -71,20 +70,44 @@ pocztowych. Do 
 Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt± pocztê
 dostarcza do koñcowych odbiorców poprzez lokalny serwer SMTP.
 
-description -l tr
+%description -l tr
 fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
 mektuplarýnýzý alýr.
 
+%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.
+
 %package -n fetchmailconf
 Summary:        A GUI configurator for generating fetchmail configuration files
 Summary(pl):    GUI konfigurator do fetchmaila
+Summary(fr):   GUI configurateur pour fetchmail
+Summary(es):   Configurador GUI interactivo para fetchmail
+Summary(pt):   Um configurador gráfico para o fetchmail
 Group:          Utilities/System
+Group(pt):             Utilitários/Sistema
 Requires:       %{name} = %{version}, python
 
 %description -n fetchmailconf
 A GUI configurator for generating fetchmail configuration file written in
 python
 
+%description -n fetchmailconf -l pt
+Um configurador gráfico para a geração de arquivos de configuração do
+fetchmail. Feito em python.
+
+%description -n fetchmailconf -l es
+Configurador gráfico para fetchmail escrito en python
+
+%description -n fetchmailconf -l de
+Ein interaktiver GUI-Konfigurator für fetchmail in python
+
 %description -n fetchmailconf -l pl
 GUI konfigurator do fetchmaila napisany w pythonie.
 
@@ -92,41 +115,39 @@ GUI konfigurator do fetchmaila napisany w pythonie.
 %setup -q
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-# Add  --enable-nls --without-included-gettext for internationalization
-./configure
+LDFLAGS="-s"
+export CFLAGS LDFLAGS
+./configure --prefix=/usr --disable-nls --without-kerberos --mandir=%{_mandir} 
+                         # Remove --disable-nls, add --without-included-gettext
+                         # for internationalization. Also look below.
 make
 
 %install
 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
-make install prefix=\$RPM_BUILD_ROOT/usr
-cp %{builddir}/rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
-cp %{builddir}/fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
-gzip -9nf \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
-cd \$RPM_BUILD_ROOT/usr/man/man1
-ln -sf fetchmail.1.gz fetchmailconf.1.gz
-rm -rf %{builddir}/contrib/RCS
-chmod 644 %{builddir}/contrib/*
-cp %{builddir}/rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
+make install prefix=\$RPM_BUILD_ROOT/usr mandir=\$RPM_BUILD_ROOT%{_mandir}/man1
+cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
+rm -rf contrib/RCS
+chmod 644 contrib/*
+cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
+cd \$RPM_BUILD_ROOT%{_mandir}/man1
+ln -sf fetchmail.1 fetchmailconf.1
 
 %clean
 rm -rf \$RPM_BUILD_ROOT
 
 %files
 %defattr (644, root, root, 755)
-%doc README NEWS NOTES FAQ COPYING FEATURES sample.rcfile contrib
+%doc README NEWS NOTES FAQ COPYING FEATURES contrib
 %doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
+%attr(644, root, man) %{_mandir}/man1/*.1*
+%attr(755, root, root) /usr/bin/fetchmail
+# Uncomment the following to support internationalization
+# %attr(644,root,root) /usr/share/locale/*/LC_MESSAGES/fetchmail.mo
+# Uncomment the following to make split fetchmail and fetchmailconf packages
+# %files -n fetchmailconf
+%attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
+%attr(755,root,root) /usr/bin/fetchmailconf
 /usr/lib/rhs/control-panel/fetchmailconf.xpm
 /usr/lib/rhs/control-panel/fetchmailconf.init
-/etc/X11/wmconfig/fetchmailconf
-%defattr (644, root, man)
-/usr/man/man1/*.1.gz
-%defattr (755, root, root)
-/usr/bin/fetchmail
-/usr/bin/fetchmailconf
-# Add these for internationalization
-#/usr/share/locale/es/LC_MESSAGES/fetchmail.mo
-#/usr/share/locale/pl/LC_MESSAGES/fetchmail.mo
-#/usr/share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
 EOF