nmap/nmap.spec

changeset 518
0a1da67e02de
parent 109
7fdb96a64ea9
     1.1 --- a/nmap/nmap.spec	Fri Aug 10 14:40:55 2012 +0200
     1.2 +++ b/nmap/nmap.spec	Fri Aug 10 14:44:09 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  nmap.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##  Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -31,21 +31,18 @@
    1.12  Class:        BASE
    1.13  Group:        Mapping
    1.14  License:      GPL
    1.15 -Version:      4.76
    1.16 -Release:      20090106
    1.17 +Version:      6.01
    1.18 +Release:      20120800
    1.19  
    1.20  #   list of sources
    1.21 -Source0:      http://nmap.org/dist/nmap-%{version}.tgz
    1.22 +Source0:      http://nmap.org/dist/nmap-%{version}.tar.bz2
    1.23 +Patch0:       nmap.patch
    1.24  
    1.25  #   build information
    1.26 -Prefix:       %{l_prefix}
    1.27 -BuildRoot:    %{l_buildroot}
    1.28 -BuildPreReq:  OpenPKG, openpkg >= 20050615, make, gcc, gcc::with_cxx = yes, bison, flex
    1.29 -PreReq:       OpenPKG, openpkg >= 20050615
    1.30 -BuildPreReq:  libpcap, openssl, getopt, pcre
    1.31 -PreReq:       libpcap, openssl, getopt, pcre
    1.32 -AutoReq:      no
    1.33 -AutoReqProv:  no
    1.34 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes, bison, flex
    1.35 +PreReq:       OpenPKG, openpkg >= 20100101
    1.36 +BuildPreReq:  python, libpcap, openssl, getopt, pcre
    1.37 +PreReq:       python, libpcap, openssl, getopt, pcre
    1.38  
    1.39  %description
    1.40      Nmap is a utility for network exploration or security auditing.
    1.41 @@ -62,11 +59,12 @@
    1.42      prog nmap = {
    1.43          version   = %{version}
    1.44          url       = http://nmap.org/dist/
    1.45 -        regex     = nmap-(\d+\.\d+)\.tgz
    1.46 +        regex     = nmap-(\d+\.\d+)\.(?:tgz|tar\.bz2)
    1.47      }
    1.48  
    1.49  %prep
    1.50      %setup -q
    1.51 +    %patch -p0
    1.52      %{l_shtool} subst \
    1.53          -e 's;/usr/local/;%{l_prefix}/;g' \
    1.54          configure */configure
    1.55 @@ -74,10 +72,6 @@
    1.56          -e 's;\(socklen_t int\);\1 size_t;g' \
    1.57          aclocal.m4 \
    1.58          configure
    1.59 -    %{l_shtool} subst \
    1.60 -        -e 's;\(md5_block_data_order\);nmap_\1;g' \
    1.61 -        nbase/md32_common.h \
    1.62 -        nbase/nbase_md5.c
    1.63  
    1.64  %build
    1.65      cppflags="%{l_cppflags}"
    1.66 @@ -101,21 +95,20 @@
    1.67          --with-openssl=%{l_prefix} \
    1.68          --without-nmapfe \
    1.69          --without-zenmap
    1.70 -    %{l_make} %{l_mflags}
    1.71 +    %{l_make} %{l_mflags -O}
    1.72  
    1.73  %install
    1.74 -    rm -rf $RPM_BUILD_ROOT
    1.75      %{l_make} %{l_mflags} install \
    1.76          prefix=$RPM_BUILD_ROOT%{l_prefix} \
    1.77          exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
    1.78          mandir=$RPM_BUILD_ROOT%{l_prefix}/man
    1.79      rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/icons
    1.80      rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnome
    1.81 +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/*/man1
    1.82      strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    1.83      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.84  
    1.85  %files -f files
    1.86  
    1.87  %clean
    1.88 -    rm -rf $RPM_BUILD_ROOT
    1.89  

mercurial