perl-net.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. ##
  2. ## perl-net.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_perl 5.8.5
  27. %define V_net_daemon 0.38
  28. %define V_net_server 0.87
  29. %define V_net_ext 1.011
  30. %define V_libnet 1.19
  31. %define V_net_netmask 1.9011
  32. %define V_net_ftp_common 5.0
  33. %define V_net_snmp 4.1.2
  34. %define V_net_tftp 0.16
  35. %define V_net_telnet 3.03
  36. %define V_net_telnet_cisco 1.10
  37. %define V_plrpc 0.2017
  38. %define V_curl_easy 1.35
  39. %define V_net_imap_simple 0.93
  40. %define V_net_bgp 0.07
  41. %define V_net_pcap 0.05
  42. %define V_net_radius 1.44
  43. %define V_net_ip 1.20
  44. # package information
  45. Name: perl-net
  46. Summary: Perl Modules for use with networks
  47. URL: http://www.cpan.org/
  48. Vendor: Perl Community
  49. Packager: The OpenPKG Project
  50. Distribution: OpenPKG
  51. Class: BASE
  52. Group: Language
  53. License: GPL/Artistic
  54. Version: %{V_perl}
  55. Release: 20040720
  56. # package options
  57. %option with_curl no
  58. %option with_pcap no
  59. # list of sources
  60. Source0: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  61. Source1: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  62. Source2: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  63. Source3: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  64. Source4: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  65. Source5: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  66. Source6: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  67. Source7: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  68. Source8: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  69. Source9: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  70. Source10: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
  71. Source11: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  72. Source12: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
  73. Source13: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  74. Source14: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
  75. Source15: http://www.cpan.org/authors/id/K/KC/KCARNUT/Net-Pcap-%{V_net_pcap}.tar.gz
  76. Source16: http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-%{V_net_ip}.tar.gz
  77. Patch0: perl-net.patch
  78. # build information
  79. Prefix: %{l_prefix}
  80. BuildRoot: %{l_buildroot}
  81. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  82. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  83. BuildPreReq: perl-crypto
  84. PreReq: perl-crypto
  85. %if "%{with_curl}" == "yes"
  86. BuildPreReq: curl
  87. PreReq: curl
  88. %endif
  89. %if "%{with_pcap}" == "yes"
  90. BuildPreReq: libpcap
  91. PreReq: libpcap
  92. %endif
  93. AutoReq: no
  94. AutoReqProv: no
  95. %description
  96. Perl modules for use with networks:
  97. - Net::Daemon (%{V_net_daemon})
  98. - Net::FTP (%{V_libnet})
  99. - Net::NNTP
  100. - Net::POP3
  101. - Net::SMTP
  102. - Net::SNPP
  103. - Net::Time
  104. - Net::FTP::Common (%{V_net_ftp_common})
  105. - Net::Gen (%{V_net_ext})
  106. - Net::Inet
  107. - Net::TCP
  108. - Net::TCP::Server
  109. - Net::UDP
  110. - Net::UNIX
  111. - Net::UNIX::Server
  112. - Net::Netmask (%{V_net_netmask})
  113. - Net::SNMP (%{V_net_snmp})
  114. - Net::Server (%{V_net_server})
  115. - Net::TFTP (%{V_net_tftp})
  116. - Net::Telnet (%{V_net_telnet})
  117. - Net::Telnet::Cisco (%{V_net_telnet_cisco})
  118. - Net::Radius (%{V_net_radius})
  119. - RPC::PlServer, RPC::PlClient (%{V_plrpc})
  120. - Net::IP (%{V_net_ip})
  121. %if "%{with_curl}" == "yes"
  122. - Curl::easy (%{V_curl_easy})
  123. %endif
  124. - Net::IMAP::Simple (%{V_net_imap_simple})
  125. - Net::BGP (%{V_net_bgp})
  126. %if "%{with_pcap}" == "yes"
  127. - Net::Pcap (%{V_net_pcap})
  128. %endif
  129. %track
  130. prog perl-net:Curl-easy = {
  131. version = %{V_curl_easy}
  132. url = http://curl.haxx.se/libcurl/perl/
  133. regex = Curl-easy-(__VER__)\.tar\.gz
  134. }
  135. prog perl-net:net_netmask = {
  136. version = %{V_net_netmask}
  137. url = http://www.cpan.org/modules/by-module/Net/
  138. regex = Net-Netmask-(__VER__)\.tar\.gz
  139. }
  140. prog perl-net:net_ftp_common = {
  141. version = %{V_net_ftp_common}
  142. url = http://www.cpan.org/modules/by-module/Net/
  143. regex = Net-FTP-Common-(__VER__)\.tar\.gz
  144. }
  145. prog perl-net:libnet = {
  146. version = %{V_libnet}
  147. url = http://www.cpan.org/modules/by-module/Net/
  148. regex = libnet-(__VER__)\.tar\.gz
  149. }
  150. prog perl-net:Net-BGP = {
  151. version = %{V_net_bgp}
  152. url = http://www.cpan.org/modules/by-module/Net/
  153. regex = Net-BGP-(__VER__)\.tar\.gz
  154. }
  155. prog perl-net:Net-Daemon = {
  156. version = %{V_net_daemon}
  157. url = http://www.cpan.org/modules/by-module/Net/
  158. regex = Net-Daemon-(__VER__)\.tar\.gz
  159. }
  160. prog perl-net:Net-ext = {
  161. version = %{V_net_ext}
  162. url = http://www.cpan.org/modules/by-module/Net/
  163. regex = Net-ext-(__VER__)\.tar\.gz
  164. }
  165. prog perl-net:Net-Imap-Simple = {
  166. version = %{V_net_imap_simple}
  167. url = http://www.cpan.org/modules/by-module/Net/
  168. regex = Net-IMAP-Simple-(__VER__)\.tar\.gz
  169. }
  170. prog perl-net:Net-Server = {
  171. version = %{V_net_server}
  172. url = http://www.cpan.org/modules/by-module/Net/
  173. regex = Net-Server-(__VER__)\.tar\.gz
  174. }
  175. prog perl-net:Net-SNMP = {
  176. version = %{V_net_snmp}
  177. url = http://www.cpan.org/modules/by-module/Net/
  178. regex = Net-SNMP-(__VER__)\.tar\.gz
  179. }
  180. prog perl-net:Net-Telnet = {
  181. version = %{V_net_telnet}
  182. url = http://www.cpan.org/modules/by-module/Net/
  183. regex = Net-Telnet-(__VER__)\.tar\.gz
  184. }
  185. prog perl-net:Net-Telnet-Cisco = {
  186. version = %{V_net_telnet_cisco}
  187. url = http://www.cpan.org/modules/by-module/Net/
  188. regex = Net-Telnet-Cisco-(__VER__)\.tar\.gz
  189. }
  190. prog perl-net:Net-TFTP = {
  191. version = %{V_net_tftp}
  192. url = http://www.cpan.org/modules/by-module/Net/
  193. regex = Net-TFTP-(__VER__)\.tar\.gz
  194. }
  195. prog perl-net:PlRPC = {
  196. version = %{V_plrpc}
  197. url = http://www.cpan.org/modules/by-module/RPC/
  198. regex = PlRPC-(__VER__)\.tar\.gz
  199. }
  200. prog perl-net:Net-Pcap = {
  201. version = %{V_net_pcap}
  202. url = http://www.cpan.org/authors/id/K/KC/KCARNUT/
  203. regex = Net-Pcap-(__VER__)\.tar\.gz
  204. }
  205. prog perl-net:Net-Radius = {
  206. version = %{V_net_radius}
  207. url = http://www.cpan.org/modules/by-module/Net/
  208. regex = Net-Radius-(__VER__)\.tar\.gz
  209. }
  210. prog perl-net:Net-IP = {
  211. version = %{V_net_ip}
  212. url = http://www.cpan.org/authors/id/M/MA/MANU/
  213. regex = Net-IP-(__VER__)\.tar\.gz
  214. }
  215. %prep
  216. %setup -q -c
  217. %setup -q -T -D -a 1
  218. %setup -q -T -D -a 2
  219. %setup -q -T -D -a 3
  220. %setup -q -T -D -a 4
  221. %setup -q -T -D -a 5
  222. %setup -q -T -D -a 6
  223. %setup -q -T -D -a 7
  224. %setup -q -T -D -a 8
  225. %setup -q -T -D -a 9
  226. %setup -q -T -D -a 10
  227. %setup -q -T -D -a 11
  228. %setup -q -T -D -a 12
  229. %setup -q -T -D -a 13
  230. %setup -q -T -D -a 14
  231. %setup -q -T -D -a 15
  232. %setup -q -T -D -a 16
  233. sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
  234. %build
  235. %install
  236. rm -rf $RPM_BUILD_ROOT
  237. %{l_prefix}/bin/perl-openpkg prepare
  238. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  239. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  240. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  241. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  242. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  243. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  244. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  245. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  246. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  247. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  248. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  249. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  250. %if "%{with_curl}" == "yes"
  251. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  252. %endif
  253. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  254. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  255. %if "%{with_pcap}" == "yes"
  256. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  257. %endif
  258. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  259. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  260. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  261. %files -f files
  262. %clean
  263. rm -rf $RPM_BUILD_ROOT