perl-net.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. ##
  2. ## perl-net.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # versions of individual parts
  25. %define V_perl 5.10.0
  26. %define V_math_base85 0.2
  27. %define V_net_ipv4addr 0.10
  28. %define V_net_ipv6addr 0.2
  29. %define V_net_daemon 0.43
  30. %define V_net_server 0.97
  31. %define V_net_ext 1.011
  32. %define V_libnet 1.22
  33. %define V_net_netmask 1.9015
  34. %define V_net_ftp_common 6.1
  35. %define V_net_snmp 5.2.0
  36. %define V_net_tftp 0.17
  37. %define V_net_telnet 3.03
  38. %define V_net_telnet_cisco 1.10
  39. %define V_plrpc 0.2020
  40. %define V_net_imap_simple 1.14
  41. %define V_net_bgp 0.09
  42. %define V_net_pcap 0.15
  43. %define V_net_radius 1.56
  44. %define V_net_ip 1.25
  45. %define V_class_gomor 1.01
  46. %define V_net_packet 3.25
  47. %define V_net_xmpp 1.02
  48. %define V_net_jabber 2.0
  49. %define V_net_patricia 1.014
  50. %define V_net_irc 0.75
  51. %define V_ip_country 2.23
  52. %define V_io_socket_multicast 1.05
  53. %define V_net_growlclient 0.02
  54. %define V_net_dhcp 0.66
  55. %define V_net_proxy 0.12
  56. # package information
  57. Name: perl-net
  58. Summary: Perl Modules for use with networks
  59. URL: http://www.cpan.org/
  60. Vendor: Perl Community
  61. Packager: OpenPKG Foundation e.V.
  62. Distribution: OpenPKG Community
  63. Class: BASE
  64. Group: Perl
  65. License: GPL/Artistic
  66. Version: %{V_perl}
  67. Release: 20071219
  68. # package options
  69. %option with_pcap no
  70. # list of sources
  71. Source0: http://www.cpan.org/modules/by-module/Math/Math-Base85-%{V_math_base85}.tar.gz
  72. Source1: http://www.cpan.org/modules/by-module/Net/Net-IPv4Addr-%{V_net_ipv4addr}.tar.gz
  73. Source2: http://www.cpan.org/modules/by-module/Net/Net-IPv6Addr-%{V_net_ipv6addr}.tar.gz
  74. Source3: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  75. Source4: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  76. Source5: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  77. Source6: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  78. Source7: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  79. Source8: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  80. Source9: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  81. Source10: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  82. Source11: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  83. Source12: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  84. Source13: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
  85. Source14: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  86. Source15: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  87. Source16: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
  88. Source17: http://www.cpan.org/modules/by-module/Net/Net-Pcap-%{V_net_pcap}.tar.gz
  89. Source18: http://www.cpan.org/modules/by-module/Class/Class-Gomor-%{V_class_gomor}.tar.gz
  90. Source19: http://www.cpan.org/modules/by-module/Net/Net-Packet-%{V_net_packet}.tar.gz
  91. Source20: http://www.cpan.org/modules/by-module/Net/Net-IP-%{V_net_ip}.tar.gz
  92. Source21: http://www.cpan.org/modules/by-module/Net/Net-XMPP-%{V_net_xmpp}.tar.gz
  93. Source22: http://www.cpan.org/modules/by-module/Net/Net-Jabber-%{V_net_jabber}.tar.gz
  94. Source23: http://www.cpan.org/modules/by-module/Net/Net-Patricia-%{V_net_patricia}.tar.gz
  95. Source24: http://www.cpan.org/modules/by-module/Net/Net-IRC-%{V_net_irc}.tar.gz
  96. Source25: http://www.cpan.org/modules/by-module/IP/IP-Country-%{V_ip_country}.tar.gz
  97. Source26: http://www.cpan.org/modules/by-module/IO/IO-Socket-Multicast-%{V_io_socket_multicast}.tar.gz
  98. Source27: http://www.cpan.org/modules/by-module/Net/Net-GrowlClient-%{V_net_growlclient}.tar.gz
  99. Source28: http://www.cpan.org/modules/by-module/Net/Net-DHCP-%{V_net_dhcp}.tar.gz
  100. Source29: http://www.cpan.org/modules/by-module/Net/Net-Proxy-%{V_net_proxy}.tar.gz
  101. Patch0: perl-net.patch
  102. # build information
  103. Prefix: %{l_prefix}
  104. BuildRoot: %{l_buildroot}
  105. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  106. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  107. BuildPreReq: perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
  108. PreReq: perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
  109. %if "%{with_pcap}" == "yes"
  110. BuildPreReq: libpcap
  111. PreReq: libpcap
  112. %endif
  113. AutoReq: no
  114. AutoReqProv: no
  115. %description
  116. Perl modules for use with networks:
  117. - Net::Daemon (%{V_net_daemon})
  118. - Net::FTP (%{V_libnet})
  119. - Net::NNTP
  120. - Net::POP3
  121. - Net::SMTP
  122. - Net::SNPP
  123. - Net::Time
  124. - Net::FTP::Common (%{V_net_ftp_common})
  125. - Net::Gen (%{V_net_ext})
  126. - Net::Inet
  127. - Net::TCP
  128. - Net::TCP::Server
  129. - Net::UDP
  130. - Net::UNIX
  131. - Net::UNIX::Server
  132. - Net::Netmask (%{V_net_netmask})
  133. - Net::SNMP (%{V_net_snmp})
  134. - Net::Server (%{V_net_server})
  135. - Net::TFTP (%{V_net_tftp})
  136. - Net::Telnet (%{V_net_telnet})
  137. - Net::Telnet::Cisco (%{V_net_telnet_cisco})
  138. - Net::Radius (%{V_net_radius})
  139. - RPC::PlServer, RPC::PlClient (%{V_plrpc})
  140. - Net::IP (%{V_net_ip})
  141. - Net::IMAP::Simple (%{V_net_imap_simple})
  142. - Net::BGP (%{V_net_bgp})
  143. %if "%{with_pcap}" == "yes"
  144. - Net::Pcap (%{V_net_pcap})
  145. - Net::Packet (%{V_net_packet})
  146. - Class::Gomor (%{V_class_gomor})
  147. %endif
  148. - Net::XMPP (%{V_net_xmpp})
  149. - Net::Jabber (%{V_net_jabber})
  150. - Net::Patricia (%{V_net_patricia})
  151. - Net::IPv4Addr (%{V_net_ipv4addr})
  152. - Net::IPv6Addr (%{V_net_ipv6addr})
  153. - Net::IRC (%{V_net_irc})
  154. - IP::Country (%{V_ip_country})
  155. - IO::Socket::Multicast (%{V_io_socket_multicast})
  156. - Net::GrowlClient (%{V_net_growlclient})
  157. - Net::DHCP (%{V_net_dhcp})
  158. - Net::Proxy (%{V_net_proxy})
  159. %track
  160. prog perl-net:Net-Netmask = {
  161. version = %{V_net_netmask}
  162. url = http://www.cpan.org/modules/by-module/Net/
  163. regex = Net-Netmask-(__VER__)\.tar\.gz
  164. }
  165. prog perl-net:Net-Ftp-Common = {
  166. version = %{V_net_ftp_common}
  167. url = http://www.cpan.org/modules/by-module/Net/
  168. regex = Net-FTP-Common-(__VER__)\.tar\.gz
  169. }
  170. prog perl-net:libnet = {
  171. version = %{V_libnet}
  172. url = http://www.cpan.org/modules/by-module/Net/
  173. regex = libnet-(__VER__)\.tar\.gz
  174. }
  175. prog perl-net:Net-BGP = {
  176. version = %{V_net_bgp}
  177. url = http://www.cpan.org/modules/by-module/Net/
  178. regex = Net-BGP-(__VER__)\.tar\.gz
  179. }
  180. prog perl-net:Net-Daemon = {
  181. version = %{V_net_daemon}
  182. url = http://www.cpan.org/modules/by-module/Net/
  183. regex = Net-Daemon-(__VER__)\.tar\.gz
  184. }
  185. prog perl-net:Net-ext = {
  186. version = %{V_net_ext}
  187. url = http://www.cpan.org/modules/by-module/Net/
  188. regex = Net-ext-(__VER__)\.tar\.gz
  189. }
  190. prog perl-net:Net-Imap-Simple = {
  191. version = %{V_net_imap_simple}
  192. url = http://www.cpan.org/modules/by-module/Net/
  193. regex = Net-IMAP-Simple-(__VER__)\.tar\.gz
  194. }
  195. prog perl-net:Net-Server = {
  196. version = %{V_net_server}
  197. url = http://www.cpan.org/modules/by-module/Net/
  198. regex = Net-Server-(__VER__)\.tar\.gz
  199. }
  200. prog perl-net:Net-SNMP = {
  201. version = %{V_net_snmp}
  202. url = http://www.cpan.org/modules/by-module/Net/
  203. regex = Net-SNMP-(__VER__)\.tar\.gz
  204. }
  205. prog perl-net:Net-Telnet = {
  206. version = %{V_net_telnet}
  207. url = http://www.cpan.org/modules/by-module/Net/
  208. regex = Net-Telnet-(__VER__)\.tar\.gz
  209. }
  210. prog perl-net:Net-Telnet-Cisco = {
  211. version = %{V_net_telnet_cisco}
  212. url = http://www.cpan.org/modules/by-module/Net/
  213. regex = Net-Telnet-Cisco-(__VER__)\.tar\.gz
  214. }
  215. prog perl-net:Net-TFTP = {
  216. version = %{V_net_tftp}
  217. url = http://www.cpan.org/modules/by-module/Net/
  218. regex = Net-TFTP-(__VER__)\.tar\.gz
  219. }
  220. prog perl-net:PlRPC = {
  221. version = %{V_plrpc}
  222. url = http://www.cpan.org/modules/by-module/RPC/
  223. regex = PlRPC-(__VER__)\.tar\.gz
  224. }
  225. prog perl-net:Net-Pcap = {
  226. version = %{V_net_pcap}
  227. url = http://www.cpan.org/modules/by-module/Net/
  228. regex = Net-Pcap-(__VER__)\.tar\.gz
  229. }
  230. prog perl-net:Net-Radius = {
  231. version = %{V_net_radius}
  232. url = http://www.cpan.org/modules/by-module/Net/
  233. regex = Net-Radius-(__VER__)\.tar\.gz
  234. }
  235. prog perl-net:Net-IP = {
  236. version = %{V_net_ip}
  237. url = http://www.cpan.org/authors/id/M/MA/MANU/
  238. regex = Net-IP-(__VER__)\.tar\.gz
  239. }
  240. prog perl-net:Net-Packet = {
  241. version = %{V_net_packet}
  242. url = http://www.cpan.org/modules/by-module/Net/
  243. regex = Net-Packet-(__VER__)\.tar\.gz
  244. }
  245. prog perl-net:Class-Gomor = {
  246. version = %{V_class_gomor}
  247. url = http://www.cpan.org/modules/by-module/Class/
  248. regex = Class-Gomor-(__VER__)\.tar\.gz
  249. }
  250. prog perl-net:Net-XMPP = {
  251. version = %{V_net_xmpp}
  252. url = http://www.cpan.org/modules/by-module/Net/
  253. regex = Net-XMPP-(__VER__)\.tar\.gz
  254. }
  255. prog perl-net:Net-Jabber = {
  256. version = %{V_net_jabber}
  257. url = http://www.cpan.org/modules/by-module/Net/
  258. regex = Net-Jabber-(__VER__)\.tar\.gz
  259. }
  260. prog perl-net:Net-Patricia = {
  261. version = %{V_net_patricia}
  262. url = http://www.cpan.org/modules/by-module/Net/
  263. regex = Net-Patricia-(__VER__)\.tar\.gz
  264. }
  265. prog perl-net:Net-IPv4Addr = {
  266. version = %{V_net_ipv4addr}
  267. url = http://www.cpan.org/modules/by-module/Net/
  268. regex = Net-IPv4Addr-(__VER__)\.tar\.gz
  269. }
  270. prog perl-net:Net-IPv6Addr = {
  271. version = %{V_net_ipv6addr}
  272. url = http://www.cpan.org/modules/by-module/Net/
  273. regex = Net-IPv6Addr-(__VER__)\.tar\.gz
  274. }
  275. prog perl-net:Math-Base85 = {
  276. version = %{V_math_base85}
  277. url = http://www.cpan.org/modules/by-module/Math/
  278. regex = Math-Base85-(__VER__)\.tar\.gz
  279. }
  280. prog perl-net:Net-IRC = {
  281. version = %{V_net_irc}
  282. url = http://www.cpan.org/modules/by-module/Net/
  283. regex = Net-IRC-(__VER__)\.tar\.gz
  284. }
  285. prog perl-net:IP-Country = {
  286. version = %{V_ip_country}
  287. url = http://www.cpan.org/modules/by-module/IP/
  288. regex = IP-Country-(__VER__)\.tar\.gz
  289. }
  290. prog perl-net:IO-Socket-Multicast = {
  291. version = %{V_io_socket_multicast}
  292. url = http://www.cpan.org/modules/by-module/IO/
  293. regex = IO-Socket-Multicast-(__VER__)\.tar\.gz
  294. }
  295. prog perl-net:Net-GrowlClient = {
  296. version = %{V_net_growlclient}
  297. url = http://www.cpan.org/modules/by-module/Net/
  298. regex = Net-GrowlClient-(__VER__)\.tar\.gz
  299. }
  300. prog perl-net:Net-DHCP = {
  301. version = %{V_net_dhcp}
  302. url = http://www.cpan.org/modules/by-module/Net/
  303. regex = Net-DHCP-(__VER__)\.tar\.gz
  304. }
  305. prog perl-net:Net-Proxy = {
  306. version = %{V_net_proxy}
  307. url = http://www.cpan.org/modules/by-module/Net/
  308. regex = Net-Proxy-(__VER__)\.tar\.gz
  309. }
  310. %prep
  311. %setup -q -c
  312. %setup -q -T -D -a 1
  313. %setup -q -T -D -a 2
  314. %setup -q -T -D -a 3
  315. %setup -q -T -D -a 4
  316. %setup -q -T -D -a 5
  317. %setup -q -T -D -a 6
  318. %setup -q -T -D -a 7
  319. %setup -q -T -D -a 8
  320. %setup -q -T -D -a 9
  321. %setup -q -T -D -a 10
  322. %setup -q -T -D -a 11
  323. %setup -q -T -D -a 12
  324. %setup -q -T -D -a 13
  325. %setup -q -T -D -a 14
  326. %setup -q -T -D -a 15
  327. %setup -q -T -D -a 16
  328. %setup -q -T -D -a 17
  329. %setup -q -T -D -a 18
  330. %setup -q -T -D -a 19
  331. %setup -q -T -D -a 20
  332. %setup -q -T -D -a 21
  333. %setup -q -T -D -a 22
  334. %setup -q -T -D -a 23
  335. %setup -q -T -D -a 24
  336. %setup -q -T -D -a 25
  337. %setup -q -T -D -a 26
  338. %setup -q -T -D -a 27
  339. (
  340. %setup -q -T -D -a 28
  341. ) || true
  342. %setup -q -T -D -a 29
  343. sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
  344. %build
  345. %install
  346. rm -rf $RPM_BUILD_ROOT
  347. %{l_prefix}/bin/perl-openpkg prepare
  348. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  349. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  350. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  351. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  352. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  353. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  354. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  355. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  356. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  357. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  358. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  359. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  360. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  361. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  362. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  363. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  364. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  365. %if "%{with_pcap}" == "yes"
  366. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  367. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  368. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} \
  369. -A "INC='-I. %{l_cppflags}'" \
  370. -A "LIBS='%{l_ldflags} -lpcap'" \
  371. configure build install
  372. %endif
  373. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  374. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  375. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  376. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  377. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  378. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  379. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  380. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  381. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  382. %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
  383. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  384. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  385. %files -f files
  386. %clean
  387. rm -rf $RPM_BUILD_ROOT