Release: 1
Vendor: Eric Conspiracy Secret Labs
Packager: Eric S. Raymond <esr@thyrsus.com>
-URL: http://www.tuxedo.org/~esr/fetchmail
+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
+License: GPL
Icon: fetchmail.xpm
Requires: smtpdaemon
BuildRoot: /var/tmp/%{name}-%{version}
%setup -q
%build
-CFLAGS="\$RPM_OPT_FLAGS" LDFLAGS="-s"
+LDFLAGS="-s"
export CFLAGS LDFLAGS
-./configure --prefix=/usr # Add --enable-nls --without-included-gettext
+./configure --prefix=/usr --disable-nls --without-kerberos --mandir=%{_mandir} --enable-SSL --enable-inet6
+ # 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
+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
-cp fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
-gzip -9nf \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
rm -rf contrib/RCS
chmod 644 contrib/*
cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
-cd \$RPM_BUILD_ROOT/usr/man/man1
-ln -sf fetchmail.1.gz fetchmailconf.1.gz
+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) /usr/man/man1/*.1.gz
+%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
+# %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