nmap-vl.spec 8.9 KB

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