Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a7f9bc2409f02cf4c0f2f3192235a00d > files > 2

nmap-3.00-2mdk.src.rpm

%define beta	0

Summary:	Network exploration tool and security scanner
Name:		nmap
Version:	3.00
%if %beta
Release:	0.%beta.1mdk
%define theirversion %{version}%beta
%else
Release:	2mdk
%define theirversion %{version}
%endif
Epoch:      1
License:	GPL
Group:		Monitoring
BuildRequires:	gtk+-devel
Source0:	http://www.insecure.org/nmap/dist/%name-%theirversion.tar.bz2
Source1:	%{name}_icons.tar.bz2
URL:		http://www.insecure.org/nmap/
BuildRoot:	%_tmppath/%name-%version

%description
Nmap is a utility for network exploration or security auditing. It supports
ping scanning (determine which hosts are up), many port scanning techniques
(determine what services the hosts are offering), and TCP/IP fingerprinting
(remote host operating system identification). Nmap also offers flexible target
and port specification, decoy scanning, determination of TCP sequence
predictability characteristics, sunRPC scanning, reverse-identd scanning, and
more.

%package frontend
Summary:	Gtk+ frontend for nmap
Group:		Monitoring
Requires:	nmap = %{PACKAGE_VERSION} , gtk+
%description frontend
This package includes nmapfe, a Gtk+ frontend for nmap. The nmap package must
be installed before installing nmap-frontend.

%prep
%setup -q -a1 -n %name-%theirversion

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure %_target_platform --prefix=%_prefix \
--mandir=%buildroot%_mandir --libdir=%_libdir
%make 

%install
%makeinstall

mkdir -p %buildroot%_menudir
cat > %{buildroot}%{_menudir}/nmap-frontend <<EOF
?package(nmap-frontend):\
command="%{_bindir}/nmapfe"\
title="Nmap"\
icon="nmap.png"\
longtitle="A frontend for the nmap port scanner"\
needs="x11"\
section="Networking/Other"
EOF

mkdir -p %buildroot{%_miconsdir,%_liconsdir}
#cd $RPM_BUILD_DIR/%{name}-%{version}
install -m 644 %{name}16.png %buildroot%_miconsdir/%name.png
install -m 644 %{name}32.png %buildroot%_iconsdir/%name.png
install -m 644 %{name}48.png %buildroot%_liconsdir/%name.png


%clean
rm -rf %{buildroot}

%post frontend
%update_menus

%postun frontend
%clean_menus


%files 
%defattr(-,root,root)
%doc docs/README docs/nmap-fingerprinting-article.txt
%doc docs/nmap.deprecated.txt docs/nmap.usage.txt docs/nmap_doc.html
%doc docs/nmap_manpage.html 
%_bindir/nmap
%dir %_datadir/%name
%_datadir/%name/*
%_mandir/man1/nmap*

%files frontend
%defattr(-,root,root)
%_bindir/nmapfe
%_datadir/gnome/apps/Utilities/nmapfe.desktop
%_bindir/xnmap
%_menudir/%name-frontend
%_iconsdir/*
%_mandir/man1/nmapfe*
%_mandir/man1/xnmap*


%changelog
* Mon Jan 20 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.00-2mdk
- don't reference inexistant doc
- fix unpackaged files

* Mon Aug 05 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.00-1mdk
- new release

* Mon Jul 29 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.99-0.RC2.1mdk
- RC2

* Tue Jul 23 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.99-0.RC1.1mdk
- RC1 for 3.0

* Mon Jul 22 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.54-0.beta37.1mdk
- new release
- spec cleaning

* Sun May 12 2002 Yves Duret <yduret@mandrakesoft.com> 2.54-0.beta34.1mdk
- version BETA34

* Mon Apr 08 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.54-0.beta32.1mdk
- New and shiny nmap from www.insecure.org.

* Fri Feb 01 2002 Yves Duret <yduret@mandrakesoft.com> 2.54-0.beta30.2mdk
- xpm -> png icons
- more macros

* Tue Jan 22 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.54-0.beta30.1mdk
- update sources
- build for _target_platform !

* Fri Oct 19 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 2.54-0.beta22.3mdk
- Epoch 1
- just change release name.
- permissions of documentations files

* Mon Jun 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.54BETA22-2mdk
- BuildRequires:	gtk+-devel
- Remove BuildRequires:	XFree86-devel

* Tue May 29 2001 Yves Bailly <ybailly@mandrakesoft.com> 2.54BETA22-1mdk
- upgrade to 2.54BETA22

* Mon Mar 26 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.53-7mdk
- clean spec: s,bzip2 -dc %%{SOURCE1} | tar -xf -,%%setup -a1

* Mon Mar 26 2001 Vincent Danen <vdanen@mandrakesoft.com> 2.53-6mdk
- don't call tar with -j anymore
- make longtitle in menu entry a little more verbose

* Fri Dec 22 2000 Vincent Danen <vdanen@mandrakesoft.com> 2.53-5mdk
- macros, some spec cleanups
- move manpages for nmapfe/xnmap to frontend package
- patch to build for glibc2.2

* Fri Oct 06 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 2.53-4mdk
- update for wrong menu entry.
- made icons transparent.

* Tue Aug 29 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 2.53-3mdk
- use %{_mandir}

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.53-2mdk
- automatically added BuildRequires

* Fri Jun  9 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.53-1mdk
- 2.53

* Fri Apr 28 2000 Vincent Saugey <vince@mandrakesoft.com> 2.30BETA17-3mdk
- add 3 icons for menu
 (Thx to Lenny, but i hadn't problem with stat !!)

* Wed Apr 12 2000 Lenny Cartier <lenny@mandrakesoft.com> 2.30BETA17-3mdk
- add icon
- merge menu file with spec (to help vince' stats !!)

* Fri Mar 31 2000 Vincent Saugey <vince@mandrakesoft.com> 2.30BETA17-2mdk
- Add menu entry

* Fri Mar 31 2000 Vincent Saugey <vince@mandrakesoft.com> 2.3BETA12-1mdk
- Update to 2.3BETA17
- Many change in specfile for spechelper
- Corrected groups

* Thu Jan 20 2000 Lenny Cartier <lenny@mandrakesoft.com>
- v2.3BETA12
- used srpm provided by Dara Hazeghi <dhazeghi@pacbell.net>

* Wed Jan 5 2000 Dara Hazeghi <dhazeghi@pacbell.net>
- Adapted for Mandrake

* Thu Dec 30 1999 Fyodor <fyodor@dhp.com>
- Updated description
- Eliminated source1 (nmapfe.desktop) directive and simply packaged it with Nmap
- Fixed nmap distribution URL (source0)
- Added this .rpm to base Nmap distribution

* Mon Dec 13 1999 Tim Powers <timp@redhat.com>
- based on origional spec file from
	http://www.insecure.org/nmap/index.html#download
- general cleanups, removed lots of commenrts since it made the spec hard to
	read
- changed group to Applications/System
- quiet setup
- no need to create dirs in the install section, "make
	prefix=$RPM_BUILD_ROOT&{prefix} install" does this.
- using defined %{prefix}, %{version} etc. for easier/quicker maint.
- added docs
- gzip man pages
- strip after files have been installed into buildroot
- created separate package for the frontend so that Gtk+ isn't needed for the
	CLI nmap 
- not using -f in files section anymore, no need for it since there aren't that
	many files/dirs
- added desktop entry for gnome

* Sun Jan 10 1999 Fyodor <fyodor@dhp.com>
- Merged in spec file sent in by Ian Macdonald <ianmacd@xs4all.nl>

* Tue Dec 29 1998 Fyodor <fyodor@dhp.com>
- Made some changes, and merged in another .spec file sent in
  by Oren Tirosh <oren@hishome.net>

* Mon Dec 21 1998 Riku Meskanen <mesrik@cc.jyu.fi>
- initial build for RH 5.x