perl-poe.spec 5.6 KB

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