cat <<EOF
# Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
-%define with_python 1
+
+# Set to 0 if you do not have python
+%define have_python 1
Name: fetchmail
Version: $1
eller mailx. Der medfølger også et interaktivt GUI-baseret
konfigurations-program, som kan bruges af almindelige brugere.
-%if %{with_python}
+%if %{have_python}
%package -n fetchmailconf
Summary: A GUI configurator for generating fetchmail configuration files
Summary(de): GUI-Konfigurator für fetchmail
%setup -q
%build
-LDFLAGS="-s"
-export CFLAGS LDFLAGS
%configure --without-included-gettext --without-kerberos --with-ssl --enable-inet6
make
rm -rf \$RPM_BUILD_ROOT
make install-strip DESTDIR=\$RPM_BUILD_ROOT
-%if %{with_python}
+%if %{have_python}
mkdir -p \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
mkdir -p \$RPM_BUILD_ROOT/etc/X11/wmconfig
%attr(755, root, root) %{_bindir}/fetchmail
%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/fetchmail.mo
-%if %{with_python}
+%if %{have_python}
%files -n fetchmailconf
%defattr (644, root, root, 755)
%attr(644,root,root) /etc/X11/wmconfig/fetchmailconf