nmap-vl.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
  2. Summary: Network exploration tool and security scanner
  3. Summary(ja): 多機能なポートスキャナー
  4. Name: nmap
  5. Version: 4.76
  6. Release: 1%{?_dist_release}
  7. License: GPL
  8. Group: Applications/System
  9. URL: http://www.insecure.org/nmap/
  10. Source0: http://www.insecure.org/nmap/dist/%{name}-%{version}.tar.bz2
  11. #Source1: zenmap.desktop
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: libpcap-devel
  14. BuildRequires: pcre-devel
  15. BuildRequires: python-devel
  16. BuildRequires: pygtk2-devel
  17. %description
  18. Nmap is a utility for network exploration or security auditing. It
  19. supports ping scanning (determine which hosts are up), many port
  20. scanning techniques (determine what services the hosts are offering),
  21. and TCP/IP fingerprinting (remote host operating system
  22. identification). Nmap also offers flexible target and port
  23. specification, decoy scanning, determination of TCP sequence
  24. predictability characteristics, sunRPC scanning, reverse-identd
  25. scanning, and more.
  26. %description -l ja
  27. Nmap はネットワークの調査やセキュリティ診断を行うユーティリティです。
  28. ping によるスキャン(どのホストが稼働中かの調査)、様々なポートスキャン
  29. 技術(そのホストがどのサービスを提供しているかの調査)や、TCP/IP 指紋
  30. の検査(そのホストの OS を特定)をサポートしています。Nmap は調査対象や
  31. ポートを柔軟に設計することもでき、おとりスキャン、TCP シーケンスの
  32. 予測可能な性質の測定、Sun RPC スキャン、逆 identd スキャンなどの
  33. 機能も提供します。
  34. %package frontend
  35. Summary: Gtk+ frontend for nmap
  36. Summary(ja): Nmap の GTK+ フロントエンド
  37. Group: Applications/System
  38. Requires: nmap = %{version}-%{release}
  39. Requires: python pygtk2 pysqlite
  40. Provides: zenmap = %{version}-%{release}
  41. %description frontend
  42. This package includes zenmap, a GTK+ frontend for nmap. The nmap package must
  43. be installed before installing nmap-frontend.
  44. %description frontend -l ja
  45. Nmap の GTK+ ベースのフロントエンド(zenmap)です。このパッケージをインストール
  46. する前に、nmap パッケージをインストールする必要があります。
  47. %prep
  48. %setup -q
  49. %build
  50. export CPPFLAGS="-I%{_includedir}/pcap -I%{_includedir}/pcre"
  51. %configure
  52. make
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make install DESTDIR=$RPM_BUILD_ROOT
  56. rm -f $RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap
  57. cp docs/zenmap.1 $RPM_BUILD_ROOT%{_mandir}/man1/
  58. gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || :
  59. pushd $RPM_BUILD_ROOT%{_mandir}/man1
  60. ln -s zenmap.1.gz nmapfe.1.gz
  61. ln -s zenmap.1.gz xnmap.1.gz
  62. popd
  63. #pushd $RPM_BUILD_ROOT%{_datadir}/pixmaps
  64. #mkdir zenmap
  65. #mv *.svg zenmap
  66. #mv *.png zenmap
  67. #popd
  68. #desktop-file-install --vendor= \
  69. # --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  70. # %{SOURCE1};
  71. rm -f $RPM_BUILD_ROOT%{_datadir}/applications/zenmap-root.desktop
  72. %clean
  73. rm -rf %{buildroot}
  74. %files
  75. %defattr(-,root,root)
  76. %doc COPYING COPYING.OpenSSL CHANGELOG
  77. %doc docs/README docs/nmap.usage.txt docs/nmap.dtd
  78. %{_bindir}/nmap
  79. %{_datadir}/nmap
  80. #%{_libexecdir}/nmap
  81. %{_mandir}/man1/nmap.1*
  82. %files frontend
  83. %defattr(-,root,root)
  84. %{_bindir}/nmapfe
  85. %{_bindir}/xnmap
  86. %{_bindir}/zenmap
  87. %{python_sitelib}/*
  88. %{_datadir}/applications/*.desktop
  89. #%{_datadir}/icons/*
  90. #%{_datadir}/pixmaps/zenmap
  91. %{_datadir}/zenmap
  92. %{_mandir}/man1/zenmap.1*
  93. %{_mandir}/man1/nmapfe.1*
  94. %{_mandir}/man1/xnmap.1*
  95. %changelog
  96. * Fri Apr 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.76-1
  97. - new upstream release
  98. - spec in UTF-8
  99. - added BuildRequires: libpcap-devel instead of libpcap
  100. - removed BuildRequires: desktop-file-utils
  101. * Sat Nov 01 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.60-4
  102. - rebuilt with libpcap 1.0.0
  103. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 4.60-3
  104. - rebuilt with python-2.5.2
  105. * Mon Apr 28 2008 NAKAMURA Kenta <kenta@vinelinux.org> 4.60-2
  106. - updated python sitelib files path
  107. * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.60-1vl5
  108. - new upstream release
  109. * Tue May 15 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.20-0vl1
  110. - new upstream release
  111. - rebuild with new environment/toolchain
  112. * Sat Jun 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10-0vl1
  113. - new upstream release
  114. - added BuildRequires: desktop-file-utils
  115. * Sat Feb 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.01-0vl1
  116. - new upstream release
  117. * Sun Sep 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.93-0vl2
  118. - rebuild for VineSeed Plus
  119. * Sun Sep 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.93-0vl1
  120. - new upstream release
  121. * Fri Feb 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.81-0vl1
  122. - new upstream release
  123. * Sun Oct 24 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.75-0vl1
  124. - new upstream release
  125. - added Japanese summary to nmap-frontend
  126. * Thu Sep 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.70-0vl1
  127. - new upstream release
  128. * Sat Mar 27 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-0vl2
  129. - rebuild with new openssl
  130. * Tue Mar 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-0vl1
  131. - new upstream release
  132. * Fri Oct 17 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.48-0vl1
  133. - new upstream release
  134. * Thu Sep 18 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.45-0vl1
  135. - new upstream release
  136. * Sun Jul 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.30-0vl1
  137. - new upstream release
  138. * Tue May 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.27-0vl2
  139. - merged Vine Plus specfile and VineSeed Plus specfile (sorry...)
  140. * Sat May 3 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.27-0vl1
  141. - new upstream release
  142. - rebuild with new toolchains
  143. * Sun Sep 22 2002 Masaru Sato <masachan@mediaship.ne.jp> 3.00-0vl1
  144. - new upstream release
  145. - delete Version Tag from nmap-frontend package
  146. - fix BuildRoot
  147. * Sun May 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.54BETA34-0vl1
  148. - new upstream release
  149. - 2.54BETA is developpment release, but it is more stable than 2.53.
  150. * Fri Mar 08 2002 Toru Sagami <sagami@vinelinux.org> 2.53-1vl2
  151. - unfortunately increase release: 1vl2 from 0vl2
  152. ( 2.53-1vl1 is found in VinePlus/2.1, also breaking our packaging rule)
  153. - patch to build on current glibc22 system
  154. * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
  155. - 2.53-0vl2: use better macros
  156. * Thu Sep 21 2000 Yoshihiro Kajiki <kajiki@ylug.org>
  157. - rebuild for VineSeed based on the original site's srpm
  158. - add Japanese summary and description
  159. * Thu Dec 30 1999 Fyodor <fyodor@insecure.org>
  160. - Updated description
  161. - Eliminated source1 (nmapfe.desktop) directive and simply packaged it with Nmap
  162. - Fixed nmap distribution URL (source0)
  163. - Added this .rpm to base Nmap distribution
  164. * Mon Dec 13 1999 Tim Powers <timp@redhat.com>
  165. - based on origional spec file from
  166. http://www.insecure.org/nmap/index.html#download
  167. - general cleanups, removed lots of commenrts since it made the spec hard to
  168. read
  169. - changed group to Applications/System
  170. - quiet setup
  171. - no need to create dirs in the install section, "make
  172. prefix=$RPM_BUILD_ROOT&{prefix} install" does this.
  173. - using defined %{prefix}, %{version} etc. for easier/quicker maint.
  174. - added docs
  175. - gzip man pages
  176. - strip after files have been installed into buildroot
  177. - created separate package for the frontend so that Gtk+ isn't needed for the
  178. CLI nmap
  179. - not using -f in files section anymore, no need for it since there aren't that
  180. many files/dirs
  181. - added desktop entry for gnome
  182. * Sun Jan 10 1999 Fyodor <fyodor@dhp.com>
  183. - Merged in spec file sent in by Ian Macdonald <ianmacd@xs4all.nl>
  184. * Tue Dec 29 1998 Fyodor <fyodor@dhp.com>
  185. - Made some changes, and merged in another .spec file sent in
  186. by Oren Tirosh <oren@hishome.net>
  187. * Mon Dec 21 1998 Riku Meskanen <mesrik@cc.jyu.fi>
  188. - initial build for RH 5.x