perl-poe.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ##
  2. ## perl-poe.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.4
  27. %define V_poe 0.2802
  28. %define V_poe_component_child 1.31
  29. %define V_poe_component_server_http 0.04
  30. %define V_poe_component_server_preforktcp 0.11
  31. %define V_poe_component_server_soap 1.03
  32. %define V_poe_session_multidispatch 1.3
  33. # package information
  34. Name: perl-poe
  35. Summary: Perl Modules for use with POE
  36. URL: http://www.cpan.org/
  37. Vendor: Perl Community
  38. Packager: The OpenPKG Project
  39. Distribution: OpenPKG
  40. Class: BASE
  41. Group: Language
  42. License: GPL/Artistic
  43. Version: %{V_perl}
  44. Release: 20040508
  45. # list of sources
  46. Source0: http://www.cpan.org/modules/by-module/POE/POE-%{V_poe}.tar.gz
  47. Source1: http://www.cpan.org/modules/by-module/POE/POE-Component-Child-%{V_poe_component_child}.tar.gz
  48. Source2: http://www.cpan.org/modules/by-module/POE/POE-Component-Server-HTTP-%{V_poe_component_server_http}.tar.gz
  49. Source3: http://www.cpan.org/modules/by-module/POE/POE-Component-Server-PreforkTCP-%{V_poe_component_server_preforktcp}.tar.gz
  50. Source4: http://www.cpan.org/modules/by-module/POE/POE-Component-Server-SOAP-%{V_poe_component_server_soap}.tar.gz
  51. Source5: http://www.cpan.org/modules/by-module/POE/POE-Session-MultiDispatch-%{V_poe_session_multidispatch}.tar.gz
  52. # build information
  53. Prefix: %{l_prefix}
  54. BuildRoot: %{l_buildroot}
  55. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  56. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  57. BuildPreReq: perl-time, perl-sys, perl-comp, perl-www, perl-term
  58. PreReq: perl-time, perl-sys, perl-comp, perl-www, perl-term
  59. AutoReq: no
  60. AutoReqProv: no
  61. %description
  62. Various modules for using POE:
  63. - POE (%{V_poe})
  64. - POE::Component::Child (%{V_poe_component_child})
  65. - POE::Component::Server::HTTP (%{V_poe_component_server_http})
  66. - POE::Component::Server::PreforkTCP (%{V_poe_component_server_preforktcp})
  67. - POE::Component::Server::SOAP (%{V_poe_component_server_soap})
  68. - POE::Session::MultiDispatch (%{V_poe_session_multidispatch})
  69. %track
  70. prog perl-poe:POE = {
  71. version = %{V_poe}
  72. url = http://www.cpan.org/modules/by-module/POE/
  73. regex = POE-(__VER__)\.tar\.gz
  74. }
  75. prog perl-poe:POE-Component-Child = {
  76. version = %{V_poe_component_child}
  77. url = http://www.cpan.org/modules/by-module/POE/
  78. regex = POE-Component-Child-(__VER__)\.tar\.gz
  79. }
  80. prog perl-poe:POE-Component-Server-HTTP = {
  81. version = %{V_poe_component_server_http}
  82. url = http://www.cpan.org/modules/by-module/POE/
  83. regex = POE-Component-Server-HTTP-(__VER__)\.tar\.gz
  84. }
  85. prog perl-poe:POE-Component-Server-PreforkTCP = {
  86. version = %{V_poe_component_server_preforktcp}
  87. url = http://www.cpan.org/modules/by-module/POE/
  88. regex = POE-Component-Server-PreforkTCP-(__VER__)\.tar\.gz
  89. }
  90. prog perl-poe:POE-Component-Server-SOAP = {
  91. version = %{V_poe_component_server_soap}
  92. url = http://www.cpan.org/modules/by-module/POE/
  93. regex = POE-Component-Server-SOAP-(__VER__)\.tar\.gz
  94. }
  95. prog perl-poe:POE-Session-MultiDispatch = {
  96. version = %{V_poe_session_multidispatch}
  97. url = http://www.cpan.org/modules/by-module/POE/
  98. regex = POE-Session-MultiDispatch-(__VER__)\.tar\.gz
  99. }
  100. %prep
  101. %setup -q -c
  102. %setup -q -T -D -a 1
  103. %setup -q -T -D -a 2
  104. %setup -q -T -D -a 3
  105. %setup -q -T -D -a 4
  106. %setup -q -T -D -a 5
  107. %build
  108. %install
  109. rm -rf $RPM_BUILD_ROOT
  110. %{l_prefix}/bin/perl-openpkg prepare
  111. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} \
  112. --args '--default' \
  113. configure build install
  114. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  115. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  116. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  117. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  118. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  119. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  120. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  121. %files -f files
  122. %clean
  123. rm -rf $RPM_BUILD_ROOT