]> Pileus Git - ~andy/fetchmail/commitdiff
Cleanup. Sunil Shetye.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 21 Nov 2005 09:54:12 +0000 (09:54 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 21 Nov 2005 09:54:12 +0000 (09:54 -0000)
svn path=/trunk/; revision=4469

specgen.sh

index 47293c4b09c3f8ae6afc360cbb184ba82d32d490..ea9eff055f3c742daa23d5e44e0c8904927f3a29 100755 (executable)
@@ -12,7 +12,9 @@ export LANG LC_TIME
 
 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
@@ -106,7 +108,7 @@ almindelige mail klienter s
 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
@@ -145,8 +147,6 @@ GUI konfigurator do fetchmaila napisany w pythonie.
 %setup -q
 
 %build
-LDFLAGS="-s"
-export CFLAGS LDFLAGS
 %configure --without-included-gettext --without-kerberos --with-ssl --enable-inet6
 make
 
@@ -154,7 +154,7 @@ 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
@@ -177,7 +177,7 @@ rm -rf \$RPM_BUILD_ROOT
 %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