]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
9e2b432d4916b8b25335d380863782e4487d8782
[~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 a el 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 Group:          Utilities/System
82 Requires:       %{name} = %{version}, python
83
84 %description -n fetchmailconf
85 A GUI configurator for generating fetchmail configuration file written in
86 python
87
88 %description -n fetchmailconf -l pl
89 GUI konfigurator do fetchmaila napisany w pythonie.
90
91 %prep
92 %setup -q
93
94 %build
95 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
96 ./configure --enable-nls --without-included-gettext
97 make
98
99 %install
100 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
101 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
102 make install prefix=\$RPM_BUILD_ROOT/usr
103 cp %{builddir}/rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
104 cp %{builddir}/fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
105 gzip -9nf \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
106 cd \$RPM_BUILD_ROOT/usr/man/man1
107 ln -sf fetchmail.1.gz fetchmailconf.1.gz
108 rm -rf %{builddir}/contrib/RCS
109 chmod 644 %{builddir}/contrib/*
110 cp %{builddir}/rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
111
112 %clean
113 rm -rf \$RPM_BUILD_ROOT
114
115 %files
116 %defattr (644, root, root, 755)
117 %doc README NEWS NOTES FAQ COPYING FEATURES sample.rcfile contrib
118 %doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
119 /usr/lib/rhs/control-panel/fetchmailconf.xpm
120 /usr/lib/rhs/control-panel/fetchmailconf.init
121 /etc/X11/wmconfig/fetchmailconf
122 %defattr (644, root, man)
123 /usr/man/man1/*.1.gz
124 %defattr (755, root, root)
125 /usr/bin/fetchmail
126 /usr/bin/fetchmailconf
127 EOF