nmap/nmap.spec

161 lines
4.9 KiB
RPMSpec
Raw Normal View History

auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
Name: nmap
Epoch: 4
Version: 7.92
2012-06-05 08:59:57 +00:00
#global prerelease TEST5
Release: %autorelease
Summary: Network exploration tool and security scanner
URL: http://nmap.org/
# https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/Q67UGCHSCKCLJOVOHSLYU4AERAHBS5YE/
# https://gitlab.com/fedora/legal/fedora-license-data/-/issues/543
License: LicenseRef-Nmap
2013-07-30 09:42:35 +00:00
Source0: http://nmap.org/dist/%{name}-%{version}%{?prerelease}.tar.bz2
2020-10-29 07:27:48 +00:00
Source1: https://nmap.org/dist/sigs/%{name}-%{version}.tar.bz2.asc
Source2: https://svn.nmap.org/nmap/docs/nmap_gpgkeys.txt
2021-01-10 19:44:47 +00:00
#prevent possible race condition for shtool, rhbz#158996
2008-01-07 13:50:33 +00:00
Patch1: nmap-4.03-mktemp.patch
#don't suggest to scan microsoft
2008-01-07 13:50:33 +00:00
Patch2: nmap-4.52-noms.patch
# upstream provided patch for rhbz#845005, not yet in upstream repository
Patch3: ncat_reg_stdin.diff
# TODO: review after GUI gets enabled again
#Patch4: nmap-6.25-displayerror.patch
# https://github.com/nmap/nmap/pull/2247
Patch7: nmap_resolve_config.patch
# backport of upstream pcre2 migration, rhbz#2128336
Patch8: nmap-pcre2.patch
# https://github.com/nmap/nmap/pull/2724
Patch9: nmap-ems-ssl-enum-ciphers.patch
2018-01-22 14:41:17 +00:00
2021-01-10 19:44:47 +00:00
BuildRequires: automake make
BuildRequires: autoconf
2018-02-19 11:05:25 +00:00
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: libpcap-devel
%if 0%{?fedora}
2017-08-03 08:32:53 +00:00
BuildRequires: libssh2-devel
%endif
BuildRequires: libtool
BuildRequires: lua-devel
BuildRequires: openssl-devel
BuildRequires: pcre2-devel
BuildRequires: zlib-devel
2020-10-29 07:27:48 +00:00
BuildRequires: gnupg2
Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
Obsoletes: nmap-frontend < 7.70-1
Obsoletes: nmap-ndiff < 7.70-1
2008-01-07 13:50:33 +00:00
%define pixmap_srcdir zenmap/share/pixmaps
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%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
2011-03-28 08:08:06 +00:00
predictability characteristics, reverse-identd scanning, and more. In addition
to the classic command-line nmap executable, the Nmap suite includes a flexible
data transfer, redirection, and debugging tool (netcat utility ncat), a utility
2017-06-30 08:20:26 +00:00
for comparing scan results (ndiff), and a packet generation and response
analysis tool (nping).
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%package ncat
Summary: Nmap's Netcat replacement
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
Obsoletes: nc < 1.109.20120711-2
2017-06-30 07:52:16 +00:00
Obsoletes: nc6 < 1.00-22
Provides: nc = %{epoch}:%{version}-%{release}
Provides: nc6 = %{epoch}:%{version}-%{release}
Provides: ncat = %{epoch}:%{version}-%{release}
2017-06-30 07:52:16 +00:00
%description ncat
Ncat is a feature packed networking utility which will read and
write data across a network from the command line. It uses both
TCP and UDP for communication and is designed to be a reliable
back-end tool to instantly provide network connectivity to other
applications and users. Ncat will not only work with IPv4 and IPv6
but provides the user with a virtually limitless number of potential
uses.
2017-07-18 12:18:27 +00:00
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%prep
2020-10-29 07:27:48 +00:00
%{gpgverify} --keyring=%{SOURCE2} --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1
autoconf -f
2008-01-07 13:50:33 +00:00
#TODO: stop using local copy of libdnet, once system distributed version
#supports sctp (grep sctp /usr/include/dnet.h)
2017-08-03 08:32:53 +00:00
#be sure we're not using tarballed copies of some libraries
#rm -rf liblua libpcap libpcre macosx mswin32 ###TODO###
rm -rf libpcap libpcre macosx mswin32 libssh2 libz
2017-08-03 08:32:53 +00:00
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%build
2012-11-29 13:45:20 +00:00
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
2017-06-30 08:20:26 +00:00
### TODO ## configure --with-libpcap=/usr ###TODO###
2018-04-19 09:28:01 +00:00
%configure --with-libpcap=yes --with-liblua=included \
--without-zenmap --without-ndiff \
%if 0%{?fedora}
--with-libssh2=yes \
%else
--with-libssh2=no \
%endif
--enable-dbus
%make_build
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
2013-05-24 11:37:56 +00:00
#fix man page (rhbz#813734)
sed -i 's/-md/-mf/' nping/docs/nping.1
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%install
2012-06-05 11:06:32 +00:00
#prevent stripping - replace strip command with 'true'
2017-08-03 08:32:53 +00:00
make DESTDIR=%{buildroot} STRIP=true install
#do not include certificate bundle (#734389)
2017-08-03 08:32:53 +00:00
rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt
rmdir %{buildroot}%{_datadir}/ncat
#we provide 'nc' replacement (#1653119)
touch %{buildroot}%{_mandir}/man1/nc.1.gz
touch %{buildroot}%{_bindir}/nc
2018-04-19 09:28:01 +00:00
2010-04-30 11:26:48 +00:00
%find_lang nmap --with-man
%post ncat
%{_sbindir}/alternatives --install %{_bindir}/nc nc %{_bindir}/ncat 10 \
--slave %{_mandir}/man1/nc.1.gz nc-man %{_mandir}/man1/ncat.1.gz
%preun ncat
if [ $1 -eq 0 ]; then
%{_sbindir}/alternatives --remove nc %{_bindir}/ncat
fi
2010-04-30 11:26:48 +00:00
%files -f nmap.lang
2021-04-08 09:41:49 +00:00
%license LICENSE
%doc docs/README
%doc docs/nmap.usage.txt
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%{_bindir}/nmap
2011-02-07 12:47:27 +00:00
%{_bindir}/nping
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%{_mandir}/man1/nmap.1.gz
2011-02-07 12:47:27 +00:00
%{_mandir}/man1/nping.1.gz
2009-06-18 14:12:29 +00:00
%{_datadir}/nmap
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%files ncat
2021-04-08 09:41:49 +00:00
%license LICENSE
%doc ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples
%ghost %{_bindir}/nc
%{_bindir}/ncat
%ghost %{_mandir}/man1/nc.1.gz
%{_mandir}/man1/ncat.1.gz
auto-import changelog data from nmap-2.54BETA22-2.src.rpm Tue Jul 10 2001 Tim Powers <timp@redhat.com> - fix bugs in desktop file (#48341) Wed May 16 2001 Tim Powers <timp@redhat.com> - updated to 2.54BETA22 Mon Nov 20 2000 Tim Powers <timp@redhat.com> - rebuilt to fix bad dir perms Fri Nov 03 2000 Tim Powers <timp@redhat.com> - fixed nmapdatadir in the install section, forgot lto include $RPM_BUILD_ROOT in the path Thu Nov 02 2000 Tim Powers <timp@redhat.com> - update to nmap-2.54BETA7 to possibly fix bug #20199 - use the desktop file provided by the package instead of using my own - patches in previous version are depreciated. Included in SRPM for reference only Mon Jul 24 2000 Prospector <prospector@redhat.com> - rebuilt Mon Jul 10 2000 Tim Powers <timp@redhat.com> - rebuilt Wed Jun 28 2000 Tim Powers <timp@redhat.com> - rebuilt package Thu Jun 08 2000 Tim Powers <timp@redhat.com> - fixed man pages so that they are in an FHS compliant location - use %makeinstall - use predefined RPM macros wherever possible Tue May 16 2000 Tim Powers <timp@redhat.com> - updated to 2.53 - using applnk now - use CFLAGS="${CFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -march=i386 -mcpu=i686}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -march=i386 -mcpu=i686}" ; export FFLAGS ; [ -f configure.in ] && libtoolize --copy --force ; ./configure i386-redhat-linux \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info, and /usr where possible - removed redundant defines at top of spec file 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 madethe 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}, 2.54BETA22 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
2004-09-09 09:17:24 +00:00
%changelog
%autochangelog