~ari-tczew/ubuntu/dapper/fetchmail/fix-CVE-2008-2711

« back to all changes in this revision

Viewing changes to specgen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-02-07 12:12:13 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060207121213-onurwfrzdlzlzxnt
Tags: 6.3.2-2ubuntu1
* Resynchronise with Debian. This brings the new upstream version to dapper
  since upstream support for 6.2 was dropped.
* Drop debian/patches/CVE-2005-4348.dpatch, upstream now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# WARNING:
 
4
# WARNING: If you change the description, also change genlsm.sh.in!
 
5
# WARNING:
 
6
version="$1"
 
7
 
 
8
set -e
 
9
 
 
10
if [ -z "$version" ] ; then
 
11
    echo >&2 "Usage: $0 <version>"
 
12
    exit 1
 
13
fi
 
14
 
 
15
email="fetchmail-devel@lists.berlios.de"
 
16
packager="Fetchmail Developers <$email>"
 
17
rpmver=`echo "$version" | sed 's/-/./g'`
 
18
if test $rpmver = $version ; then
 
19
    vervar="%{version}"
 
20
    setupargs=
 
21
else
 
22
    vervar="${version}"
 
23
    setupargs="-n %{name}-${vervar}"
 
24
fi
 
25
 
 
26
LANG=C
 
27
LC_TIME=C
 
28
export LANG LC_TIME
 
29
 
1
30
cat <<EOF
2
31
# Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
 
32
 
 
33
# Set to 0 if you do not have python
 
34
%define have_python 1
 
35
 
3
36
Name:           fetchmail
4
 
Version:        $1
 
37
Version:        $rpmver
5
38
Release:        1
6
 
Vendor:         Eric Conspiracy Secret Labs
7
 
Packager:       Eric S. Raymond <esr@thyrsus.com>
8
 
URL:            http://fetchmail.berlios.de/
9
 
Source:         %{name}-%{version}.tar.gz
 
39
Vendor:         The Community Fetchmail Project
 
40
Packager:       $packager
 
41
URL:            http://developer.berlios.de/projects/fetchmail
 
42
Source:         %{name}-${vervar}.tar.bz2
10
43
Group:          Applications/Mail
11
44
Group(pt_BR):   Aplica��es/Correio Eletr�nico
12
45
License:        GPL
13
46
Icon:           fetchmail.xpm
14
 
%if %{_vendor} == "suse"
 
47
%if "%{_vendor}" == "suse"
15
48
Requires:       smtp_daemon
16
49
%else
17
50
Requires:       smtpdaemon
18
51
%endif
 
52
BuildPrereq:    gettext-devel openssl-devel
19
53
BuildRoot:      /var/tmp/%{name}-%{version}
20
54
Summary:        Full-featured POP/IMAP mail retrieval daemon
21
 
Summary(fr):    Collecteur (POP/IMAP) de courrier �lectronique
22
 
Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
23
 
Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
24
 
Summary(es):    Recolector de correo via POP/IMAP
25
 
Summary(pl):    Zdalny demon pocztowy do protoko��w POP2, POP3, APOP, IMAP
26
 
Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yaz�l�m�
27
 
Summary(da):    Alsidig POP/IMAP post-afhentnings d�mon
 
55
Summary(fr):    Collecteur (POP/IMAP) de courrier �lectronique
 
56
Summary(de):    Program zum Abholen von E-Mail via POP/IMAP
 
57
Summary(pt):    Busca mensagens de um servidor usando POP ou IMAP
 
58
Summary(es):    Recolector de correo via POP/IMAP
 
59
Summary(pl):    Zdalny demon pocztowy do protoko��w POP2, POP3, APOP, IMAP
 
60
Summary(tr):    POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yaz�l�m�
 
61
Summary(da):    Alsidig POP/IMAP post-afhentnings d�mon
 
62
BuildRoot: %{_tmppath}/%{name}-root
 
63
#Keywords: mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL
 
64
#Destinations:  fetchmail-users@lists.berlios.de, fetchmail-announce@lists.berlios.de
28
65
 
29
66
%description
30
67
Fetchmail is a free, full-featured, robust, and well-documented remote
43
80
serveur SMTP local (habituellement sendmail).
44
81
 
45
82
%description -l de
46
 
Fetchmail ist ein freies, vollst�ndiges, robustes und wohldokumentiertes
47
 
Werkzeug zum Abholen und Weiterreichen von E-Mail, zur Verwendung �ber
48
 
tempor�re TCP/IP-Verbindungen (wie z.B. SLIP- oder PPP-Verbindungen).
49
 
Es holt E-Mail von entfernten Mail-Servern ab und reicht sie an das
50
 
Auslieferungssystem des lokalen Computers weiter, damit sie dann von
51
 
normalen MUAs ("mail user agents") wie mutt, elm, pine, (x)emacs/gnus
52
 
oder mailx gelesen werden k�nnen.  Ein interaktiver GUI-Konfigurator
53
 
f�r Endbenutzer (nur englisch) wird mitgeliefert.
 
83
Fetchmail ist ein freies, vollst�ndiges, robustes und
 
84
wohldokumentiertes Werkzeug zum Abholen und Weiterleiten von E-Mail,
 
85
zur Verwendung �ber tempor�re TCP/IP-Verbindungen (wie
 
86
z.B. SLIP- oder PPP-Verbindungen).  Es holt E-Mail von
 
87
entfernten Mail-Servern ab und reicht sie an das Auslieferungssystem
 
88
der lokalen Client-Maschine weiter, damit sie dann von normalen MUAs
 
89
("mail user agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx
 
90
gelesen werden k�nnen.  Ein interaktiver GUI-Konfigurator f�r
 
91
Endbenutzer wird mitgeliefert.
54
92
 
55
93
%description -l pt
56
94
Fetchmail � um programa que � usado para recuperar mensagens de um
87
125
eller mailx. Der medf�lger ogs� et interaktivt GUI-baseret
88
126
konfigurations-program, som kan bruges af almindelige brugere.
89
127
 
 
128
%if %{have_python}
90
129
%package -n fetchmailconf
91
 
Summary:        A GUI configurator for generating fetchmail configuration files
92
 
Summary(pl):    GUI konfigurator do fetchmaila
 
130
Summary:        A GUI configurator for generating fetchmail configuration files
 
131
Summary(de):    GUI-Konfigurator f�r fetchmail
 
132
Summary(pl):    GUI konfigurator do fetchmaila
93
133
Summary(fr):    GUI configurateur pour fetchmail
94
134
Summary(es):    Configurador GUI interactivo para fetchmail
95
135
Summary(pt):    Um configurador gr�fico para o fetchmail
96
 
Group:          Utilities/System
97
 
Group(pt):              Utilit�rios/Sistema
98
 
Requires:       %{name} = %{version}, python
 
136
Group:          Utilities/System
 
137
Group(pt):      Utilit�rios/Sistema
 
138
BuildPrereq:    python
 
139
Requires:       %{name} = %{version}, python
99
140
 
100
141
%description -n fetchmailconf
101
142
A GUI configurator for generating fetchmail configuration file written in
102
 
python
 
143
Python.
 
144
 
 
145
%description -n fetchmailconf -l de
 
146
Ein in Python geschriebenes Programm mit graphischer Oberfl�che zur
 
147
Erzeugung von Fetchmail-Konfigurationsdateien.
103
148
 
104
149
%description -n fetchmailconf -l pt
105
150
Um configurador gr�fico para a gera��o de arquivos de configura��o do
113
158
 
114
159
%description -n fetchmailconf -l pl
115
160
GUI konfigurator do fetchmaila napisany w pythonie.
 
161
%endif
 
162
 
 
163
%{?debug_package}
116
164
 
117
165
%prep
118
 
%setup -q
 
166
%setup -q $setupargs
119
167
 
120
168
%build
121
 
LDFLAGS="-s"
122
 
export CFLAGS LDFLAGS
123
 
./configure --prefix=/usr --enable-nls --without-kerberos --mandir=%{_mandir} --with-ssl --enable-inet6
124
 
                         # Remove --disable-nls, add --without-included-gettext
125
 
                         # for internationalization. Also look below.
 
169
%configure --without-included-gettext --without-kerberos --with-ssl
126
170
make
127
171
 
128
172
%install
129
 
if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
130
 
mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
131
 
make install prefix=\$RPM_BUILD_ROOT/usr mandir=\$RPM_BUILD_ROOT%{_mandir}/man1
 
173
rm -rf \$RPM_BUILD_ROOT
 
174
make install DESTDIR=\$RPM_BUILD_ROOT
 
175
 
 
176
%if %{have_python}
 
177
mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
132
178
cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
133
 
rm -rf contrib/RCS
 
179
mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
 
180
cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
 
181
%endif
 
182
 
134
183
chmod 644 contrib/*
135
 
cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
136
 
cd \$RPM_BUILD_ROOT%{_mandir}/man1
137
 
ln -sf fetchmail.1 fetchmailconf.1
138
184
 
139
185
%clean
140
186
rm -rf \$RPM_BUILD_ROOT
141
187
 
142
188
%files
143
189
%defattr (644, root, root, 755)
144
 
%doc README NEWS NOTES FAQ COPYING FEATURES contrib
145
 
%doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
146
 
%attr(644, root, root) %{_mandir}/man1/*.1*
147
 
%attr(755, root, root) /usr/bin/fetchmail
148
 
# Comment the following to disable i18n (internationalization)
149
 
%attr(644,root,root) /usr/share/locale/*/LC_MESSAGES/fetchmail.mo
150
 
# Uncomment the following to make split fetchmail and fetchmailconf packages
151
 
# %files -n fetchmailconf
 
190
%doc ABOUT-NLS FAQ COPYING FEATURES NEWS
 
191
%doc NOTES OLDNEWS README README.SSL
 
192
%doc contrib
 
193
%doc fetchmail-features.html fetchmail-FAQ.html esrs-design-notes.html
 
194
%doc design-notes.html
 
195
%doc fetchmail-FAQ.pdf
 
196
%attr(644, root, man) %{_mandir}/man1/fetchmail.1*
 
197
%attr(755, root, root) %{_bindir}/fetchmail
 
198
%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
 
199
 
 
200
%if %{have_python}
 
201
%files -n fetchmailconf
 
202
%defattr (644, root, root, 755)
152
203
%attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
153
 
%attr(755,root,root) /usr/bin/fetchmailconf
 
204
%attr(755,root,root) %{_bindir}/fetchmailconf
 
205
%attr(644, root, man) %{_mandir}/man1/fetchmailconf.1*
 
206
%attr(755,root,root) %{_prefix}/lib/python*/site-packages/fetchmailconf.py*
154
207
/usr/lib/rhs/control-panel/fetchmailconf.xpm
155
208
/usr/lib/rhs/control-panel/fetchmailconf.init
 
209
%endif
 
210
 
 
211
%changelog
 
212
* `date '+%a %b %d %Y'` <$email> ${rpmver}
 
213
- See the project NEWS file for recent changes.
156
214
EOF