perl-net.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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.3
  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.17
  31. %define V_net_netmask 1.9002
  32. %define V_net_ftp_common 2.9
  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. # package information
  42. Name: perl-net
  43. Summary: Perl Modules for use with networks
  44. URL: http://www.cpan.org/
  45. Vendor: Perl Community
  46. Packager: The OpenPKG Project
  47. Distribution: OpenPKG
  48. Class: BASE
  49. Group: Language
  50. License: GPL/Artistic
  51. Version: %{V_perl}
  52. Release: 20040218
  53. # package options
  54. %option with_curl no
  55. # list of sources
  56. Source0: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  57. Source1: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  58. Source2: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  59. Source3: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  60. Source4: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  61. Source5: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  62. Source6: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  63. Source7: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  64. Source8: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  65. Source9: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  66. Source10: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  67. Source11: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
  68. Source12: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  69. Source13: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
  70. Patch0: perl-net.patch
  71. # build information
  72. Prefix: %{l_prefix}
  73. BuildRoot: %{l_buildroot}
  74. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126, perl-crypto
  75. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126, perl-crypto
  76. %if "%{with_curl}" == "yes"
  77. BuildPreReq: curl
  78. PreReq: curl
  79. %endif
  80. AutoReq: no
  81. AutoReqProv: no
  82. %description
  83. Perl modules for use with networks:
  84. - Net::Daemon (%{V_net_daemon})
  85. - Net::FTP (%{V_libnet})
  86. - Net::FTP::Common (%{V_net_ftp_common})
  87. - Net::Gen (%{V_net_ext})
  88. - Net::Inet (%{V_net_ext})
  89. - Net::NNTP (%{V_libnet})
  90. - Net::Netmask (%{V_net_netmask})
  91. - Net::POP3 (%{V_libnet})
  92. - Net::SMTP (%{V_libnet})
  93. - Net::SNMP (%{V_net_snmp})
  94. - Net::SNPP (%{V_libnet})
  95. - Net::Server (%{V_net_server})
  96. - Net::TCP (%{V_net_ext})
  97. - Net::TCP::Server (%{V_net_ext})
  98. - Net::TFTP (%{V_net_tftp})
  99. - Net::Telnet (%{V_net_telnet})
  100. - Net::Telnet:Cisco (%{V_net_telnet_cisco})
  101. - Net::Time (%{V_libnet})
  102. - Net::Time (%{V_libnet})
  103. - Net::UDP (%{V_net_ext})
  104. - Net::UNIX (%{V_net_ext})
  105. - Net::UNIX::Server (%{V_net_ext})
  106. - RPC::PlServer, RPC::PlClient (%{V_plrpc})
  107. %if "%{with_curl}" == "yes"
  108. - Curl::easy (%{V_curl_easy})
  109. %endif
  110. - Net::IMAP::Simple (%{V_net_imap_simple})
  111. - Net::BGP (%{V_net_bgp})
  112. %track
  113. prog perl-net:Curl-easy = {
  114. version = %{V_curl_easy}
  115. url = http://curl.haxx.se/libcurl/perl/
  116. regex = Curl-easy-(__VER__)\.tar\.gz
  117. }
  118. prog perl-net:libnet = {
  119. version = %{V_libnet}
  120. url = http://www.cpan.org/modules/by-module/Net/
  121. regex = libnet-(__VER__)\.tar\.gz
  122. }
  123. prog perl-net:Net-BGP = {
  124. version = %{V_net_bgp}
  125. url = http://www.cpan.org/modules/by-module/Net/
  126. regex = Net-BGP-(__VER__)\.tar\.gz
  127. }
  128. prog perl-net:Net-Daemon = {
  129. version = %{V_net_daemon}
  130. url = http://www.cpan.org/modules/by-module/Net/
  131. regex = Net-Daemon-(__VER__)\.tar\.gz
  132. }
  133. prog perl-net:Net-ext = {
  134. version = %{V_net_ext}
  135. url = http://www.cpan.org/modules/by-module/Net/
  136. regex = Net-ext-(__VER__)\.tar\.gz
  137. }
  138. prog perl-net:Net-Imap-Simple = {
  139. version = %{V_net_imap_simple}
  140. url = http://www.cpan.org/modules/by-module/Net/
  141. regex = Net-IMAP-Simple-(__VER__)\.tar\.gz
  142. }
  143. prog perl-net:Net-Server = {
  144. version = %{V_net_server}
  145. url = http://www.cpan.org/modules/by-module/Net/
  146. regex = Net-Server-(__VER__)\.tar\.gz
  147. }
  148. prog perl-net:Net-SNMP = {
  149. version = %{V_net_snmp}
  150. url = http://www.cpan.org/modules/by-module/Net/
  151. regex = Net-SNMP-(__VER__)\.tar\.gz
  152. }
  153. prog perl-net:Net-Telnet = {
  154. version = %{V_net_telnet}
  155. url = http://www.cpan.org/modules/by-module/Net/
  156. regex = Net-Telnet-(__VER__)\.tar\.gz
  157. }
  158. prog perl-net:Net-Telnet-Cisco = {
  159. version = %{V_net_telnet_cisco}
  160. url = http://www.cpan.org/modules/by-module/Net/
  161. regex = Net-Telnet-Cisco-(__VER__)\.tar\.gz
  162. }
  163. prog perl-net:Net-TFTP = {
  164. version = %{V_net_tftp}
  165. url = http://www.cpan.org/modules/by-module/Net/
  166. regex = Net-TFTP-(__VER__)\.tar\.gz
  167. }
  168. prog perl-net:PlRPC = {
  169. version = %{V_plrpc}
  170. url = http://www.cpan.org/modules/by-module/RPC/
  171. regex = PlRPC-(__VER__)\.tar\.gz
  172. }
  173. %prep
  174. %setup -q -c
  175. %setup -q -T -D -a 1
  176. %setup -q -T -D -a 2
  177. %setup -q -T -D -a 3
  178. %setup -q -T -D -a 4
  179. %setup -q -T -D -a 5
  180. %setup -q -T -D -a 6
  181. %setup -q -T -D -a 7
  182. %setup -q -T -D -a 8
  183. %setup -q -T -D -a 9
  184. %setup -q -T -D -a 10
  185. %setup -q -T -D -a 11
  186. %setup -q -T -D -a 12
  187. %setup -q -T -D -a 13
  188. %patch -p0
  189. %build
  190. %install
  191. %{l_prefix}/bin/perl-openpkg prepare
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  198. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  203. %if "%{with_curl}" == "yes"
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  205. %endif
  206. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  208. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  209. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  210. %files -f files
  211. %clean
  212. rm -rf $RPM_BUILD_ROOT