1.1 --- a/nmap/nmap.spec Fri Mar 11 21:30:26 2011 +0100 1.2 +++ b/nmap/nmap.spec Fri Mar 11 21:36:51 2011 +0100 1.3 @@ -1,35 +1,21 @@ 1.4 -# To build a static RPM, add 1.5 -# --define "static 1" 1.6 -# to the rpmbuild command line. To build without Ncat, add 1.7 -# --define "buildncat 0" 1.8 -# 1.9 -# To specify openssl dir, add something like: 1.10 -# --define "openssl /usr/local/ssl" 1.11 +Summary: Network exploration tool and security scanner 1.12 +Vendor: Europalab Software 1.13 +Packager: Michael Schloh von Bennewitz 1.14 +Distribution: MeeGo Thirdparty 1.15 +Name: nmap 1.16 +Version: 5.21 1.17 +Release: 20101201 1.18 +URL: http://www.nmap.org/ 1.19 +Group: Applications/System 1.20 +License: http://nmap.org/man/man-legal.html 1.21 +Source0: http://nmap.org/dist/%{name}-%{version}.tar.bz2 1.22 +BuildRoot: %{_tmppath}/%{name}-root 1.23 +BuildRequires: openssl-devel libpcap-devel pcre-devel lua-devel 1.24 1.25 -%define name nmap 1.26 -%define version 5.21 1.27 -%define release 1 1.28 -%define _prefix /usr 1.29 - 1.30 -Summary: Network exploration tool and security scanner 1.31 -Name: %{name} 1.32 -Version: %{version} 1.33 -Release: %{release} 1.34 -Epoch: 2 1.35 -License: http://nmap.org/man/man-legal.html 1.36 -Group: Applications/System 1.37 -Source0: http://nmap.org/dist/%{name}-%{version}.tgz 1.38 -URL: http://nmap.org 1.39 - 1.40 -# For Ndiff. 1.41 -Requires: python >= 2.4 1.42 - 1.43 -# RPM can't be relocatable until I stop storing path info in the binary. 1.44 -# Prefix: %{_prefix} 1.45 -BuildRoot: %{_tmppath}/%{name}-root 1.46 +# for ndiff(1) only 1.47 +Requires: python >= 2.4 1.48 1.49 %description 1.50 - 1.51 Nmap ("Network Mapper") is a free and open source utility 1.52 for network exploration or security auditing. Many systems and network 1.53 administrators also find it useful for tasks such as network 1.54 @@ -46,16 +32,12 @@ 1.55 %prep 1.56 %setup -q 1.57 1.58 +# avoid using included copies of libraries 1.59 +rm -rf liblua libpcap libpcre macosx mswin32 1.60 + 1.61 %build 1.62 -%configure --with-openssl=%{openssl} --without-zenmap --with-ndiff --with-libdnet=included --with-libpcap=included --with-libpcre=included --with-liblua=included 1.63 -%if "%{buildncat}" == "0" 1.64 -%configure --without-ncat 1.65 -%endif 1.66 -%if "%{static}" == "1" 1.67 -make static 1.68 -%else 1.69 -make 1.70 -%endif 1.71 +%configure --without-ncat --without-zenmap --with-ndiff --with-libdnet=included --with-openssl=/usr --with-libpcap=/usr --with-libpcre=/usr --with-liblua=/usr 1.72 +make %{?_smp_mflags} 1.73 1.74 %install 1.75 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 1.76 @@ -79,31 +61,9 @@ 1.77 %{_bindir}/ndiff 1.78 %doc %{_prefix}/share/man/man1/ndiff.1.gz 1.79 1.80 -# Ncat subpackage 1.81 -%if "%{buildncat}" != "0" 1.82 -%package -n ncat 1.83 -Summary: Nmap's Netcat replacement 1.84 -Group: Applications/System 1.85 - 1.86 -%description -n ncat 1.87 -Ncat is a feature packed networking utility which will read and 1.88 -write data across a network from the command line. It uses both 1.89 -TCP and UDP for communication and is designed to be a reliable 1.90 -back-end tool to instantly provide network connectivity to other 1.91 -applications and users. Ncat will not only work with IPv4 and IPv6 1.92 -but provides the user with a virtually limitless number of potential 1.93 -uses. 1.94 - 1.95 -%files -n ncat 1.96 -%defattr(-,root,root) 1.97 -%doc %{_prefix}/share/man/man1/ncat.1.gz 1.98 -%{_bindir}/ncat 1.99 -%{_datadir}/ncat 1.100 - 1.101 -%endif 1.102 - 1.103 %changelog 1.104 - 1.105 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 5.21-20101201 1.106 +- Repackage for MeeGo 1.1 1.107 * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org) 1.108 - Removed changelog entries as SVN is a more authoritative source. Execute: 1.109 - svn log --username guest --password "" svn://svn.insecure.org/nmap/nmap.spec.in