perl-net.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. ##
  2. ## perl-net.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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_net_daemon 0.37
  27. %define V_net_server 0.85
  28. %define V_net_ext 1.011
  29. %define V_libnet 1.15
  30. %define V_net_netmask 1.9002
  31. %define V_net_ftp_common 2.9
  32. %define V_net_snmp 4.1.0
  33. %define V_net_services 1.3
  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.04
  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 [BASE]
  48. Group: Language
  49. License: GPL/Artistic
  50. Version: 20030614
  51. Release: 20030614
  52. # package options
  53. %option with_curl no
  54. # list of sources
  55. Source0: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  56. Source1: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  57. Source2: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  58. Source3: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  59. Source4: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  60. Source5: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  61. Source6: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  62. Source7: http://www.cpan.org/modules/by-module/Net/Net-Services-%{V_net_services}.tar.gz
  63. Source8: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  64. Source9: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  65. Source10: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  66. Source11: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  67. Source12: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
  68. Source13: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  69. Source14: 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 >= 20030114, perl, perl-openpkg
  75. PreReq: OpenPKG, openpkg >= 20030114, perl, perl-openpkg
  76. %if "%{with_curl}" == "yes"
  77. BuildPreReq: curl
  78. %endif
  79. AutoReq: no
  80. AutoReqProv: no
  81. %description
  82. Perl modules for use with networks:
  83. - Net::Daemon (%{V_net_daemon})
  84. - Net::FTP (%{V_libnet})
  85. - Net::FTP::Common (%{V_net_ftp_common})
  86. - Net::Gen (%{V_net_ext})
  87. - Net::Inet (%{V_net_ext})
  88. - Net::NNTP (%{V_libnet})
  89. - Net::Netmask (%{V_net_netmask})
  90. - Net::POP3 (%{V_libnet})
  91. - Net::SMTP (%{V_libnet})
  92. - Net::SNMP (%{V_net_snmp})
  93. - Net::SNPP (%{V_libnet})
  94. - Net::Server (%{V_net_server})
  95. - Net::Services (%{V_net_services})
  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. %prep
  113. %setup0 -q -c
  114. %setup1 -q -T -D -a 1
  115. %setup2 -q -T -D -a 2
  116. %setup3 -q -T -D -a 3
  117. %setup4 -q -T -D -a 4
  118. %setup5 -q -T -D -a 5
  119. %setup6 -q -T -D -a 6
  120. %setup7 -q -T -D -a 7
  121. %setup8 -q -T -D -a 8
  122. %setup9 -q -T -D -a 9
  123. %setup10 -q -T -D -a 10
  124. %setup11 -q -T -D -a 11
  125. %setup12 -q -T -D -a 12
  126. %setup13 -q -T -D -a 13
  127. %setup14 -q -T -D -a 14
  128. %patch0 -p0
  129. %build
  130. %install
  131. # perform common prolog operations
  132. %{l_prefix}/bin/perl-openpkg prolog
  133. # build and install individual modules
  134. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  135. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  136. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  137. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  138. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  139. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  140. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  141. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  142. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  143. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  144. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  145. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  146. %if "%{with_curl}" == "yes"
  147. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  148. %endif
  149. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  150. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE14}
  151. # perform common epilog operations
  152. %{l_prefix}/bin/perl-openpkg epilog
  153. %files -f files
  154. %clean
  155. rm -rf $RPM_BUILD_ROOT