perl-net.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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.8.8
  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.21
  33. %define V_net_netmask 1.9015
  34. %define V_net_ftp_common 6.0
  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.08
  42. %define V_net_pcap 0.14
  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. # package information
  56. Name: perl-net
  57. Summary: Perl Modules for use with networks
  58. URL: http://www.cpan.org/
  59. Vendor: Perl Community
  60. Packager: OpenPKG Foundation e.V.
  61. Distribution: OpenPKG Community
  62. Class: BASE
  63. Group: Perl
  64. License: GPL/Artistic
  65. Version: %{V_perl}
  66. Release: 20070826
  67. # package options
  68. %option with_pcap no
  69. # list of sources
  70. Source0: http://www.cpan.org/modules/by-module/Math/Math-Base85-%{V_math_base85}.tar.gz
  71. Source1: http://www.cpan.org/modules/by-module/Net/Net-IPv4Addr-%{V_net_ipv4addr}.tar.gz
  72. Source2: http://www.cpan.org/modules/by-module/Net/Net-IPv6Addr-%{V_net_ipv6addr}.tar.gz
  73. Source3: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  74. Source4: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  75. Source5: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  76. Source6: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  77. Source7: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  78. Source8: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  79. Source9: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  80. Source10: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  81. Source11: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  82. Source12: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  83. Source13: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
  84. Source14: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  85. Source15: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  86. Source16: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
  87. Source17: http://www.cpan.org/modules/by-module/Net/Net-Pcap-%{V_net_pcap}.tar.gz
  88. Source18: http://www.cpan.org/modules/by-module/Class/Class-Gomor-%{V_class_gomor}.tar.gz
  89. Source19: http://www.cpan.org/modules/by-module/Net/Net-Packet-%{V_net_packet}.tar.gz
  90. Source20: http://www.cpan.org/modules/by-module/Net/Net-IP-%{V_net_ip}.tar.gz
  91. Source21: http://www.cpan.org/modules/by-module/Net/Net-XMPP-%{V_net_xmpp}.tar.gz
  92. Source22: http://www.cpan.org/modules/by-module/Net/Net-Jabber-%{V_net_jabber}.tar.gz
  93. Source23: http://www.cpan.org/modules/by-module/Net/Net-Patricia-%{V_net_patricia}.tar.gz
  94. Source24: http://www.cpan.org/modules/by-module/Net/Net-IRC-%{V_net_irc}.tar.gz
  95. Source25: http://www.cpan.org/modules/by-module/IP/IP-Country-%{V_ip_country}.tar.gz
  96. Source26: http://www.cpan.org/modules/by-module/IO/IO-Socket-Multicast-%{V_io_socket_multicast}.tar.gz
  97. Source27: http://www.cpan.org/modules/by-module/Net/Net-GrowlClient-%{V_net_growlclient}.tar.gz
  98. Source28: http://www.cpan.org/modules/by-module/Net/Net-DHCP-%{V_net_dhcp}.tar.gz
  99. Patch0: perl-net.patch
  100. # build information
  101. Prefix: %{l_prefix}
  102. BuildRoot: %{l_buildroot}
  103. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  104. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  105. BuildPreReq: perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
  106. PreReq: perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
  107. %if "%{with_pcap}" == "yes"
  108. BuildPreReq: libpcap
  109. PreReq: libpcap
  110. %endif
  111. AutoReq: no
  112. AutoReqProv: no
  113. %description
  114. Perl modules for use with networks:
  115. - Net::Daemon (%{V_net_daemon})
  116. - Net::FTP (%{V_libnet})
  117. - Net::NNTP
  118. - Net::POP3
  119. - Net::SMTP
  120. - Net::SNPP
  121. - Net::Time
  122. - Net::FTP::Common (%{V_net_ftp_common})
  123. - Net::Gen (%{V_net_ext})
  124. - Net::Inet
  125. - Net::TCP
  126. - Net::TCP::Server
  127. - Net::UDP
  128. - Net::UNIX
  129. - Net::UNIX::Server
  130. - Net::Netmask (%{V_net_netmask})
  131. - Net::SNMP (%{V_net_snmp})
  132. - Net::Server (%{V_net_server})
  133. - Net::TFTP (%{V_net_tftp})
  134. - Net::Telnet (%{V_net_telnet})
  135. - Net::Telnet::Cisco (%{V_net_telnet_cisco})
  136. - Net::Radius (%{V_net_radius})
  137. - RPC::PlServer, RPC::PlClient (%{V_plrpc})
  138. - Net::IP (%{V_net_ip})
  139. - Net::IMAP::Simple (%{V_net_imap_simple})
  140. - Net::BGP (%{V_net_bgp})
  141. %if "%{with_pcap}" == "yes"
  142. - Net::Pcap (%{V_net_pcap})
  143. - Net::Packet (%{V_net_packet})
  144. - Class::Gomor (%{V_class_gomor})
  145. %endif
  146. - Net::XMPP (%{V_net_xmpp})
  147. - Net::Jabber (%{V_net_jabber})
  148. - Net::Patricia (%{V_net_patricia})
  149. - Net::IPv4Addr (%{V_net_ipv4addr})
  150. - Net::IPv6Addr (%{V_net_ipv6addr})
  151. - Net::IRC (%{V_net_irc})
  152. - IP::Country (%{V_ip_country})
  153. - IO::Socket::Multicast (%{V_io_socket_multicast})
  154. - Net::GrowlClient (%{V_net_growlclient})
  155. - Net::DHCP (%{V_net_dhcp})
  156. %track
  157. prog perl-net:Net-Netmask = {
  158. version = %{V_net_netmask}
  159. url = http://www.cpan.org/modules/by-module/Net/
  160. regex = Net-Netmask-(__VER__)\.tar\.gz
  161. }
  162. prog perl-net:Net-Ftp-Common = {
  163. version = %{V_net_ftp_common}
  164. url = http://www.cpan.org/modules/by-module/Net/
  165. regex = Net-FTP-Common-(__VER__)\.tar\.gz
  166. }
  167. prog perl-net:libnet = {
  168. version = %{V_libnet}
  169. url = http://www.cpan.org/modules/by-module/Net/
  170. regex = libnet-(__VER__)\.tar\.gz
  171. }
  172. prog perl-net:Net-BGP = {
  173. version = %{V_net_bgp}
  174. url = http://www.cpan.org/modules/by-module/Net/
  175. regex = Net-BGP-(__VER__)\.tar\.gz
  176. }
  177. prog perl-net:Net-Daemon = {
  178. version = %{V_net_daemon}
  179. url = http://www.cpan.org/modules/by-module/Net/
  180. regex = Net-Daemon-(__VER__)\.tar\.gz
  181. }
  182. prog perl-net:Net-ext = {
  183. version = %{V_net_ext}
  184. url = http://www.cpan.org/modules/by-module/Net/
  185. regex = Net-ext-(__VER__)\.tar\.gz
  186. }
  187. prog perl-net:Net-Imap-Simple = {
  188. version = %{V_net_imap_simple}
  189. url = http://www.cpan.org/modules/by-module/Net/
  190. regex = Net-IMAP-Simple-(__VER__)\.tar\.gz
  191. }
  192. prog perl-net:Net-Server = {
  193. version = %{V_net_server}
  194. url = http://www.cpan.org/modules/by-module/Net/
  195. regex = Net-Server-(__VER__)\.tar\.gz
  196. }
  197. prog perl-net:Net-SNMP = {
  198. version = %{V_net_snmp}
  199. url = http://www.cpan.org/modules/by-module/Net/
  200. regex = Net-SNMP-(__VER__)\.tar\.gz
  201. }
  202. prog perl-net:Net-Telnet = {
  203. version = %{V_net_telnet}
  204. url = http://www.cpan.org/modules/by-module/Net/
  205. regex = Net-Telnet-(__VER__)\.tar\.gz
  206. }
  207. prog perl-net:Net-Telnet-Cisco = {
  208. version = %{V_net_telnet_cisco}
  209. url = http://www.cpan.org/modules/by-module/Net/
  210. regex = Net-Telnet-Cisco-(__VER__)\.tar\.gz
  211. }
  212. prog perl-net:Net-TFTP = {
  213. version = %{V_net_tftp}
  214. url = http://www.cpan.org/modules/by-module/Net/
  215. regex = Net-TFTP-(__VER__)\.tar\.gz
  216. }
  217. prog perl-net:PlRPC = {
  218. version = %{V_plrpc}
  219. url = http://www.cpan.org/modules/by-module/RPC/
  220. regex = PlRPC-(__VER__)\.tar\.gz
  221. }
  222. prog perl-net:Net-Pcap = {
  223. version = %{V_net_pcap}
  224. url = http://www.cpan.org/modules/by-module/Net/
  225. regex = Net-Pcap-(__VER__)\.tar\.gz
  226. }
  227. prog perl-net:Net-Radius = {
  228. version = %{V_net_radius}
  229. url = http://www.cpan.org/modules/by-module/Net/
  230. regex = Net-Radius-(__VER__)\.tar\.gz
  231. }
  232. prog perl-net:Net-IP = {
  233. version = %{V_net_ip}
  234. url = http://www.cpan.org/authors/id/M/MA/MANU/
  235. regex = Net-IP-(__VER__)\.tar\.gz
  236. }
  237. prog perl-net:Net-Packet = {
  238. version = %{V_net_packet}
  239. url = http://www.cpan.org/modules/by-module/Net/
  240. regex = Net-Packet-(__VER__)\.tar\.gz
  241. }
  242. prog perl-net:Class-Gomor = {
  243. version = %{V_class_gomor}
  244. url = http://www.cpan.org/modules/by-module/Class/
  245. regex = Class-Gomor-(__VER__)\.tar\.gz
  246. }
  247. prog perl-net:Net-XMPP = {
  248. version = %{V_net_xmpp}
  249. url = http://www.cpan.org/modules/by-module/Net/
  250. regex = Net-XMPP-(__VER__)\.tar\.gz
  251. }
  252. prog perl-net:Net-Jabber = {
  253. version = %{V_net_jabber}
  254. url = http://www.cpan.org/modules/by-module/Net/
  255. regex = Net-Jabber-(__VER__)\.tar\.gz
  256. }
  257. prog perl-net:Net-Patricia = {
  258. version = %{V_net_patricia}
  259. url = http://www.cpan.org/modules/by-module/Net/
  260. regex = Net-Patricia-(__VER__)\.tar\.gz
  261. }
  262. prog perl-net:Net-IPv4Addr = {
  263. version = %{V_net_ipv4addr}
  264. url = http://www.cpan.org/modules/by-module/Net/
  265. regex = Net-IPv4Addr-(__VER__)\.tar\.gz
  266. }
  267. prog perl-net:Net-IPv6Addr = {
  268. version = %{V_net_ipv6addr}
  269. url = http://www.cpan.org/modules/by-module/Net/
  270. regex = Net-IPv6Addr-(__VER__)\.tar\.gz
  271. }
  272. prog perl-net:Math-Base85 = {
  273. version = %{V_math_base85}
  274. url = http://www.cpan.org/modules/by-module/Math/
  275. regex = Math-Base85-(__VER__)\.tar\.gz
  276. }
  277. prog perl-net:Net-IRC = {
  278. version = %{V_net_irc}
  279. url = http://www.cpan.org/modules/by-module/Net/
  280. regex = Net-IRC-(__VER__)\.tar\.gz
  281. }
  282. prog perl-net:IP-Country = {
  283. version = %{V_ip_country}
  284. url = http://www.cpan.org/modules/by-module/IP/
  285. regex = IP-Country-(__VER__)\.tar\.gz
  286. }
  287. prog perl-net:IO-Socket-Multicast = {
  288. version = %{V_io_socket_multicast}
  289. url = http://www.cpan.org/modules/by-module/IO/
  290. regex = IO-Socket-Multicast-(__VER__)\.tar\.gz
  291. }
  292. prog perl-net:Net-GrowlClient = {
  293. version = %{V_net_growlclient}
  294. url = http://www.cpan.org/modules/by-module/Net/
  295. regex = Net-GrowlClient-(__VER__)\.tar\.gz
  296. }
  297. prog perl-net:Net-DHCP = {
  298. version = %{V_net_dhcp}
  299. url = http://www.cpan.org/modules/by-module/Net/
  300. regex = Net-DHCP-(__VER__)\.tar\.gz
  301. }
  302. %prep
  303. %setup -q -c
  304. %setup -q -T -D -a 1
  305. %setup -q -T -D -a 2
  306. %setup -q -T -D -a 3
  307. %setup -q -T -D -a 4
  308. %setup -q -T -D -a 5
  309. %setup -q -T -D -a 6
  310. %setup -q -T -D -a 7
  311. %setup -q -T -D -a 8
  312. %setup -q -T -D -a 9
  313. %setup -q -T -D -a 10
  314. %setup -q -T -D -a 11
  315. %setup -q -T -D -a 12
  316. %setup -q -T -D -a 13
  317. %setup -q -T -D -a 14
  318. %setup -q -T -D -a 15
  319. %setup -q -T -D -a 16
  320. %setup -q -T -D -a 17
  321. %setup -q -T -D -a 18
  322. %setup -q -T -D -a 19
  323. %setup -q -T -D -a 20
  324. %setup -q -T -D -a 21
  325. %setup -q -T -D -a 22
  326. %setup -q -T -D -a 23
  327. %setup -q -T -D -a 24
  328. %setup -q -T -D -a 25
  329. %setup -q -T -D -a 26
  330. %setup -q -T -D -a 27
  331. %setup -q -T -D -a 28
  332. sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
  333. %build
  334. %install
  335. rm -rf $RPM_BUILD_ROOT
  336. %{l_prefix}/bin/perl-openpkg prepare
  337. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  338. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  339. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  340. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  341. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  342. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  343. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  344. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  345. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  346. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  347. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  348. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  349. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  350. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  351. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  352. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  353. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  354. %if "%{with_pcap}" == "yes"
  355. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  356. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  357. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} \
  358. -A "INC='-I. %{l_cppflags}'" \
  359. -A "LIBS='%{l_ldflags} -lpcap'" \
  360. configure build install
  361. %endif
  362. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  363. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  364. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  365. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  366. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  367. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  368. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  369. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  370. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  371. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  372. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  373. %files -f files
  374. %clean
  375. rm -rf $RPM_BUILD_ROOT