perl-net.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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.16
  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_tftp 0.16
  34. %define V_net_telnet 3.03
  35. %define V_net_telnet_cisco 1.10
  36. %define V_plrpc 0.2017
  37. %define V_curl_easy 1.35
  38. %define V_net_imap_simple 0.93
  39. %define V_net_bgp 0.05
  40. # package information
  41. Name: perl-net
  42. Summary: Perl Modules for use with networks
  43. URL: http://www.cpan.org/
  44. Vendor: Perl Community
  45. Packager: The OpenPKG Project
  46. Distribution: OpenPKG [BASE]
  47. Group: Language
  48. License: GPL/Artistic
  49. Version: 20030704
  50. Release: 20030704
  51. # package options
  52. %option with_curl no
  53. # list of sources
  54. Source0: http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
  55. Source1: http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
  56. Source2: http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
  57. Source3: http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
  58. Source4: http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
  59. Source5: http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
  60. Source6: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
  61. Source7: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
  62. Source8: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
  63. Source9: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
  64. Source10: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
  65. Source11: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
  66. Source12: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
  67. Source13: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
  68. Patch0: perl-net.patch
  69. # build information
  70. Prefix: %{l_prefix}
  71. BuildRoot: %{l_buildroot}
  72. BuildPreReq: OpenPKG, openpkg >= 20030114, perl, perl-openpkg
  73. PreReq: OpenPKG, openpkg >= 20030114, perl, perl-openpkg
  74. %if "%{with_curl}" == "yes"
  75. BuildPreReq: curl
  76. %endif
  77. AutoReq: no
  78. AutoReqProv: no
  79. %description
  80. Perl modules for use with networks:
  81. - Net::Daemon (%{V_net_daemon})
  82. - Net::FTP (%{V_libnet})
  83. - Net::FTP::Common (%{V_net_ftp_common})
  84. - Net::Gen (%{V_net_ext})
  85. - Net::Inet (%{V_net_ext})
  86. - Net::NNTP (%{V_libnet})
  87. - Net::Netmask (%{V_net_netmask})
  88. - Net::POP3 (%{V_libnet})
  89. - Net::SMTP (%{V_libnet})
  90. - Net::SNMP (%{V_net_snmp})
  91. - Net::SNPP (%{V_libnet})
  92. - Net::Server (%{V_net_server})
  93. - Net::TCP (%{V_net_ext})
  94. - Net::TCP::Server (%{V_net_ext})
  95. - Net::TFTP (%{V_net_tftp})
  96. - Net::Telnet (%{V_net_telnet})
  97. - Net::Telnet:Cisco (%{V_net_telnet_cisco})
  98. - Net::Time (%{V_libnet})
  99. - Net::Time (%{V_libnet})
  100. - Net::UDP (%{V_net_ext})
  101. - Net::UNIX (%{V_net_ext})
  102. - Net::UNIX::Server (%{V_net_ext})
  103. - RPC::PlServer, RPC::PlClient (%{V_plrpc})
  104. %if "%{with_curl}" == "yes"
  105. - Curl::easy (%{V_curl_easy})
  106. %endif
  107. - Net::IMAP::Simple (%{V_net_imap_simple})
  108. - Net::BGP (%{V_net_bgp})
  109. %prep
  110. %setup0 -q -c
  111. %setup1 -q -T -D -a 1
  112. %setup2 -q -T -D -a 2
  113. %setup3 -q -T -D -a 3
  114. %setup4 -q -T -D -a 4
  115. %setup5 -q -T -D -a 5
  116. %setup6 -q -T -D -a 6
  117. %setup7 -q -T -D -a 7
  118. %setup8 -q -T -D -a 8
  119. %setup9 -q -T -D -a 9
  120. %setup10 -q -T -D -a 10
  121. %setup11 -q -T -D -a 11
  122. %setup12 -q -T -D -a 12
  123. %setup13 -q -T -D -a 13
  124. %patch0 -p0
  125. %build
  126. %install
  127. # perform common prolog operations
  128. %{l_prefix}/bin/perl-openpkg prolog
  129. # build and install individual modules
  130. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  131. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  132. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  133. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  134. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  135. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  136. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  137. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  138. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  139. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  140. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  141. %if "%{with_curl}" == "yes"
  142. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  143. %endif
  144. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  145. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  146. # perform common epilog operations
  147. %{l_prefix}/bin/perl-openpkg epilog
  148. %files -f files
  149. %clean
  150. rm -rf $RPM_BUILD_ROOT