]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
3dcd8db9d0f6059efbb28f48547830d66a47e57a
[~andy/fetchmail] / specgen.sh
1 cat <<EOF
2 %define name fetchmail
3 %define version ${1}
4 %define release 1
5 %define builddir \$RPM_BUILD_DIR/%{name}-%{version}
6 Name:           %{name}
7 Version:        %{version}
8 Release:        %{release}
9 Vendor:         Eric Conspiracy Secret Labs
10 Packager:       Eric S. Raymond <esr@thyrsus.com>
11 URL:            http://www.tuxedo.org/~esr/fetchmail
12 Source:         %{name}-%{version}.tar.gz
13 Group:          Applications/Mail
14 Group(pt_BR):   Aplicações/Correio Eletrônico
15 Copyright:      GPL
16 Icon:           fetchmail.gif
17 Requires:       smtpdaemon
18 BuildRoot:      /var/tmp/%{name}-%{version}
19 Summary:        Full-featured POP/IMAP mail retrieval daemon
20 Summary(fr):    Collecteur (POP/IMAP) de courrier électronique
21 Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
22 Summary(pt_BR): Busca mensagens de um servidor usando POP ou IMAP
23 Summary(es_AR): Recolector de correo via POP/IMAP
24 Summary(pl):    Zdalny demon pocztowy do protoko³ów POP2, POP3, APOP, IMAP
25 Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
26
27 %description
28 Fetchmail is a free, full-featured, robust, and well-documented remote
29 mail retrieval and forwarding utility intended to be used over
30 on-demand TCP/IP links (such as SLIP or PPP connections).  It
31 retrieves mail from remote mail servers and forwards it to your local
32 (client) machine's delivery system, so it can then be be read by
33 normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx.
34 Comes with an interactive GUI configurator suitable for end-users.
35
36 %description -l fr
37 Fetchmail est un programme qui permet d'aller rechercher du courrier
38 électronique sur un serveur de mail distant. Fetchmail connait les
39 protocoles POP (Post Office Protocol), IMAP (Internet Mail Access
40 Protocol) et délivre le courrier électronique a travers le
41 serveur SMTP local (habituellement sendmail).
42
43 %description -l de
44 Fetchmail ist ein freies, vollständiges, robustes und
45 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
46 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie
47 z.B. SLIP- oder PPP-Verbindungen).  Es holt E-Mail von (weit)
48 entfernten Mail-Servern abund reicht sie an das Auslieferungssystem
49 der lokalen Client-Maschine weiter, damit sie dann von normalen MUAs
50 ("mail user agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx
51 gelesen werden kann.  Ein interaktiver GUI-Konfigurator auch gut
52 geeignet zum Gebrauch durch Endbenutzer wird mitgeliefert.
53
54 %description -l pt_BR
55 Fetchmail é um programa que é usado para recuperar mensagens de um
56 servidor de mail remoto. Ele pode usar Post Office Protocol (POP)
57 ou IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
58 através do servidor local SMTP (normalmente sendmail).
59
60 %description -l es
61 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
62 para la recepción y reeenvío de correo pensada para ser usada en co-
63 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
64 servidores remotos y lo reenvía al sistema de entrega local, siendo de
65 ese modo posible leerlo con programas como mutt, elm, pine, (x)emacs/gnus
66 o mailx. Contiene un configurador GUI interactivo pensado para usuarios.
67
68 %description -l pl
69 Fetchmail jest programem do ¶ci±gania poczty ze zdalnych serwerów
70 pocztowych. Do ¶ci±gania poczty mo¿e on uzywaæ protoko³ów POP (Post Office
71 Protocol) lub IMAP (Internet Mail Access Protocol). ¦ci±gniêt± pocztê
72 dostarcza do koñcowych odbiorców poprzez lokalny serwer SMTP.
73
74 description -l tr
75 fetchmail yazýlýmý, POP veya IMAP desteði veren bir sunucuda yer alan
76 mektuplarýnýzý alýr.
77
78 %package -n fetchmailconf
79 Summary:        A GUI configurator for generating fetchmail configuration files
80 Summary(pl):    GUI konfigurator do fetchmaila
81 Summary(fr):    GUI configurateur pour fetchmail
82 Summary(es):    Configurador GUI interactivo por fetchmail
83 Group:          Utilities/System
84 Requires:       %{name} = %{version}, python
85
86 %description -n fetchmailconf
87 A GUI configurator for generating fetchmail configuration file written in
88 python
89
90 %description -n fetchmailconf -l pl
91 GUI konfigurator do fetchmaila napisany w pythonie.
92
93 %prep
94 %setup -q
95
96 %build
97 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
98 # Add  --enable-nls --without-included-gettext for internationalization
99 ./configure
100 make
101
102 %install
103 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
104 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
105 make install prefix=\$RPM_BUILD_ROOT/usr
106 cp %{builddir}/rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
107 cp %{builddir}/fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
108 gzip -9nf \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
109 cd \$RPM_BUILD_ROOT/usr/man/man1
110 ln -sf fetchmail.1.gz fetchmailconf.1.gz
111 rm -rf %{builddir}/contrib/RCS
112 chmod 644 %{builddir}/contrib/*
113 cp %{builddir}/rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
114
115 %clean
116 rm -rf \$RPM_BUILD_ROOT
117
118 %files
119 %defattr (644, root, root, 755)
120 %doc README NEWS NOTES FAQ COPYING FEATURES sample.rcfile contrib
121 %doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
122 /usr/lib/rhs/control-panel/fetchmailconf.xpm
123 /usr/lib/rhs/control-panel/fetchmailconf.init
124 /etc/X11/wmconfig/fetchmailconf
125 %defattr (644, root, man)
126 /usr/man/man1/*.1.gz
127 %defattr (755, root, root)
128 /usr/bin/fetchmail
129 /usr/bin/fetchmailconf
130 # Add these for internationalization
131 #/usr/share/locale/es/LC_MESSAGES/fetchmail.mo
132 #/usr/share/locale/pl/LC_MESSAGES/fetchmail.mo
133 #/usr/share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
134 EOF