File knmap.spec of Package knmap
Summary: A KDE front-end for the nmap network scanner tool
Name: knmap
Version: 2.1
Release: 1
License: GPL-2.0
Group: Productivity/Networking/Security
Source: knmap-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: nmap
BuildRequires: gcc-c++ qt3-devel libjpeg-devel kdelibs3-devel
BuildRequires: gcc-c++
URL: http://sourceforge.net/projects/knmap
Patch0: knmap-deprecate-update-desktop-files.patch
%description
The main Knmap window provides for the entry of nmap options and the display of nmap-generated output.
It is possible with Knmap to have multiple concurrent nmap sessions, each with a different 'profile'.
Profiles allow for frequently used collection of parameters to be easily invoked.
Of course, full documentation is provided - including a version of the nmap man page in HTML form.
%prep
%setup -q
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%patch -P 0 -p1
%build
. /etc/opt/kde3/common_options
%configure $configkde
make CCOPT="$CFLAGS"
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}/bin
make DESTDIR=${RPM_BUILD_ROOT} install
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Utilities/knmap.desktop %{buildroot}/opt/kde3/share/applications/kde/knmap.desktop
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS README COPYING TODO INSTALL ChangeLog NEWS
%doc /opt/kde3/share/doc/HTML/en/knmap
%dir /opt/kde3/share/apps/knmap
/opt/kde3/bin/knmap
/opt/kde3/share/applications/kde/knmap.desktop
/opt/kde3/share/apps/knmap/knmapui.rc
/opt/kde3/share/apps/knmap/nmap_manpage.html
/opt/kde3/share/apps/knmap/nmap_manpage.html.diff
/opt/kde3/share/icons/hicolor/*x*/apps/*.png
%changelog