perl-stats.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. ##
  2. ## perl-stats.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_statistics_basic 0.42
  27. %define V_statistics_lite 3.2
  28. %define V_statistics_maxentropy 0.9
  29. %define V_statistics_descriptive 2.6
  30. %define V_statistics_distributions 1.02
  31. %define V_statistics_ttest 1.1.0
  32. %define V_statistics_chisquare 0.5
  33. %define V_statistics_regression 0.53
  34. %define V_statistics_rankcorrelation 0.11_3
  35. %define V_statistics_serialcorrelation 1.1
  36. # package information
  37. Name: perl-stats
  38. Summary: Perl Modules for Statistics
  39. URL: http://www.cpan.org/
  40. Vendor: Perl Community
  41. Packager: OpenPKG Foundation e.V.
  42. Distribution: OpenPKG Community
  43. Class: BASE
  44. Group: Perl
  45. License: GPL/Artistic
  46. Version: %{V_perl}
  47. Release: 20071219
  48. # list of sources
  49. Source0: http://www.cpan.org/modules/by-module/Statistics/Statistics-Basic-%{V_statistics_basic}.tar.gz
  50. Source1: http://www.cpan.org/modules/by-module/Statistics/Statistics-Lite-%{V_statistics_lite}.tar.gz
  51. Source2: http://www.cpan.org/modules/by-module/Statistics/Statistics-MaxEntropy-%{V_statistics_maxentropy}.tar.gz
  52. Source3: http://www.cpan.org/modules/by-module/Statistics/Statistics-Descriptive-%{V_statistics_descriptive}.tar.gz
  53. Source4: http://www.cpan.org/modules/by-module/Statistics/Statistics-Distributions-%{V_statistics_distributions}.tar.gz
  54. Source5: http://www.cpan.org/modules/by-module/Statistics/Statistics-TTest-%{V_statistics_ttest}.tar.gz
  55. Source6: http://www.cpan.org/modules/by-module/Statistics/Statistics-ChiSquare-%{V_statistics_chisquare}.tar.gz
  56. Source7: http://www.cpan.org/modules/by-module/Statistics/Statistics-Regression-%{V_statistics_regression}.tar.gz
  57. Source8: http://www.cpan.org/authors/id/G/GE/GENE/Statistics-RankCorrelation-%{V_statistics_rankcorrelation}.tar.gz
  58. Source9: http://www.cpan.org/modules/by-module/Statistics/Statistics-SerialCorrelation-%{V_statistics_serialcorrelation}.tar.gz
  59. # build information
  60. Prefix: %{l_prefix}
  61. BuildRoot: %{l_buildroot}
  62. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  63. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. Various Perl modules for Statistics calculations:
  68. - Statistics::Basic (%{V_statistics_basic})
  69. - Statistics::Lite (%{V_statistics_lite})
  70. - Statistics::MaxEntropy (%{V_statistics_maxentropy})
  71. - Statistics::Descriptive (%{V_statistics_descriptive})
  72. - Statistics::Distributions (%{V_statistics_distributions})
  73. - Statistics::TTest (%{V_statistics_ttest})
  74. - Statistics::ChiSquare (%{V_statistics_chisquare})
  75. - Statistics::Regression (%{V_statistics_regression})
  76. - Statistics::RankCorrelation (%{V_statistics_rankcorrelation})
  77. - Statistics::SerialCorrelation (%{V_statistics_serialcorrelation})
  78. %track
  79. prog perl-stats:Statistics-Basic = {
  80. version = %{V_statistics_basic}
  81. url = http://www.cpan.org/modules/by-module/Statistics/
  82. regex = Statistics-Basic-(__VER__)\.tar\.gz
  83. }
  84. prog perl-stats:Statistics-Lite = {
  85. version = %{V_statistics_lite}
  86. url = http://www.cpan.org/modules/by-module/Statistics/
  87. regex = Statistics-Lite-(__VER__)\.tar\.gz
  88. }
  89. prog perl-stats:Statistics-MaxEntropy = {
  90. version = %{V_statistics_maxentropy}
  91. url = http://www.cpan.org/modules/by-module/Statistics/
  92. regex = Statistics-MaxEntropy-(__VER__)\.tar\.gz
  93. }
  94. prog perl-stats:Statistics-Descriptive = {
  95. version = %{V_statistics_descriptive}
  96. url = http://www.cpan.org/modules/by-module/Statistics/
  97. regex = Statistics-Descriptive-(__VER__)\.tar\.gz
  98. }
  99. prog perl-stats:Statistics-Distributions = {
  100. version = %{V_statistics_distributions}
  101. url = http://www.cpan.org/modules/by-module/Statistics/
  102. regex = Statistics-Distributions-(__VER__)\.tar\.gz
  103. }
  104. prog perl-stats:Statistics-TTest = {
  105. version = %{V_statistics_ttest}
  106. url = http://www.cpan.org/modules/by-module/Statistics/
  107. regex = Statistics-TTest-(__VER__)\.tar\.gz
  108. }
  109. prog perl-stats:Statistics-ChiSquare = {
  110. version = %{V_statistics_chisquare}
  111. url = http://www.cpan.org/modules/by-module/Statistics/
  112. regex = Statistics-ChiSquare-(__VER__)\.tar\.gz
  113. }
  114. prog perl-stats:Statistics-Regression = {
  115. version = %{V_statistics_regression}
  116. url = http://www.cpan.org/modules/by-module/Statistics/
  117. regex = Statistics-Regression-(__VER__)\.tar\.gz
  118. }
  119. prog perl-stats:Statistics-RankCorrelation = {
  120. version = %{V_statistics_rankcorrelation}
  121. url = http://www.cpan.org/authors/id/G/GE/GENE/
  122. regex = Statistics-RankCorrelation-(__VER__)\.tar\.gz
  123. }
  124. prog perl-stats:Statistics-SerialCorrelation = {
  125. version = %{V_statistics_serialcorrelation}
  126. url = http://www.cpan.org/modules/by-module/Statistics/
  127. regex = Statistics-SerialCorrelation-(__VER__)\.tar\.gz
  128. }
  129. %prep
  130. %setup -q -c
  131. %setup -q -T -D -a 1
  132. %setup -q -T -D -a 2
  133. %setup -q -T -D -a 3
  134. %setup -q -T -D -a 4
  135. %setup -q -T -D -a 5
  136. %setup -q -T -D -a 6
  137. %setup -q -T -D -a 7
  138. %setup -q -T -D -a 8
  139. %setup -q -T -D -a 9
  140. %build
  141. %install
  142. rm -rf $RPM_BUILD_ROOT
  143. %{l_prefix}/bin/perl-openpkg prepare
  144. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  145. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  146. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  147. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  148. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  149. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  150. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  151. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  152. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  153. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  154. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  155. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ME.wrapper.pl
  156. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  157. %files -f files
  158. %clean
  159. rm -rf $RPM_BUILD_ROOT