--
The only thing necessary for the triumph of evil
is for good men to do nothing.
- Edmund Burke
--- nmap.spec 2003-12-28 11:04:48.000000000 +0100
+++ nmap.spec.fixed 2003-12-28 11:04:41.000000000 +0100
@@ -1,7 +1,7 @@
# $Revision: 1.95 $, $Date: 2003/12/24 00:39:30 $
#
# Conditional build:
-%bcond_without x # don't build gtk-based nmap-X11
+%bcond_without x11 # don't build gtk-based nmap-X11
#
Summary: Network exploration tool and security scanner
Summary(es): Herramienta de exploración de la rede y seguridad
@@ -25,7 +25,7 @@
URL: http://www.insecure.org/nmap/index.html
BuildRequires: autoconf
BuildRequires: automake
-%{?with_x:BuildRequires: gtk+-devel >= 1.0}
+%{?with_x11:BuildRequires: gtk+-devel >= 1.0}
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -131,7 +131,7 @@
%{__autoconf}
cd ../nmapfe
cp /usr/share/automake/config.sub .
-%{!?with_x:echo 'AC_DEFUN([AM_PATH_GTK],[AC_DEFINE(MISSING_GTK)])' >> acinclude.m4}
+%{!?with_x11:echo 'AC_DEFUN([AM_PATH_GTK],[AC_DEFINE(MISSING_GTK)])' >> acinclude.m4}
%{__aclocal}
%{__autoconf}
cd ../nsock/src
@@ -139,7 +139,7 @@
cd ../..
CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
%configure \
- %{!?with_x:--without-nmapfe}
+ %{!?with_x11:--without-nmapfe}
%{__make}
@@ -151,7 +151,7 @@
DESTDIR=$RPM_BUILD_ROOT \
deskdir=%{_desktopdir}
-%if %{with x}
+%if %{with x11}
cd $RPM_BUILD_ROOT%{_bindir}
rm -f xnmap
ln -s nmapfe xnmap
@@ -170,7 +170,7 @@
%{_datadir}/nmap
%{_mandir}/man1/nmap.*
-%if %{with x}
+%if %{with x11}
%files X11
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/nmapfe
__________________________________________________________
nie pytaj co inni zrobili dla pld, pomysl ile sam zrobiles