| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- ##
- ## perl-stats.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # versions of individual parts
- %define V_perl 5.10.0
- %define V_statistics_basic 0.42
- %define V_statistics_lite 3.2
- %define V_statistics_maxentropy 0.9
- %define V_statistics_descriptive 2.6
- %define V_statistics_distributions 1.02
- %define V_statistics_ttest 1.1.0
- %define V_statistics_chisquare 0.5
- %define V_statistics_regression 0.53
- %define V_statistics_rankcorrelation 0.11_3
- %define V_statistics_serialcorrelation 1.1
- # package information
- Name: perl-stats
- Summary: Perl Modules for Statistics
- URL: http://www.cpan.org/
- Vendor: Perl Community
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: BASE
- Group: Perl
- License: GPL/Artistic
- Version: %{V_perl}
- Release: 20071219
- # list of sources
- Source0: http://www.cpan.org/modules/by-module/Statistics/Statistics-Basic-%{V_statistics_basic}.tar.gz
- Source1: http://www.cpan.org/modules/by-module/Statistics/Statistics-Lite-%{V_statistics_lite}.tar.gz
- Source2: http://www.cpan.org/modules/by-module/Statistics/Statistics-MaxEntropy-%{V_statistics_maxentropy}.tar.gz
- Source3: http://www.cpan.org/modules/by-module/Statistics/Statistics-Descriptive-%{V_statistics_descriptive}.tar.gz
- Source4: http://www.cpan.org/modules/by-module/Statistics/Statistics-Distributions-%{V_statistics_distributions}.tar.gz
- Source5: http://www.cpan.org/modules/by-module/Statistics/Statistics-TTest-%{V_statistics_ttest}.tar.gz
- Source6: http://www.cpan.org/modules/by-module/Statistics/Statistics-ChiSquare-%{V_statistics_chisquare}.tar.gz
- Source7: http://www.cpan.org/modules/by-module/Statistics/Statistics-Regression-%{V_statistics_regression}.tar.gz
- Source8: http://www.cpan.org/authors/id/G/GE/GENE/Statistics-RankCorrelation-%{V_statistics_rankcorrelation}.tar.gz
- Source9: http://www.cpan.org/modules/by-module/Statistics/Statistics-SerialCorrelation-%{V_statistics_serialcorrelation}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
- PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
- AutoReq: no
- AutoReqProv: no
- %description
- Various Perl modules for Statistics calculations:
- - Statistics::Basic (%{V_statistics_basic})
- - Statistics::Lite (%{V_statistics_lite})
- - Statistics::MaxEntropy (%{V_statistics_maxentropy})
- - Statistics::Descriptive (%{V_statistics_descriptive})
- - Statistics::Distributions (%{V_statistics_distributions})
- - Statistics::TTest (%{V_statistics_ttest})
- - Statistics::ChiSquare (%{V_statistics_chisquare})
- - Statistics::Regression (%{V_statistics_regression})
- - Statistics::RankCorrelation (%{V_statistics_rankcorrelation})
- - Statistics::SerialCorrelation (%{V_statistics_serialcorrelation})
- %track
- prog perl-stats:Statistics-Basic = {
- version = %{V_statistics_basic}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-Basic-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-Lite = {
- version = %{V_statistics_lite}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-Lite-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-MaxEntropy = {
- version = %{V_statistics_maxentropy}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-MaxEntropy-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-Descriptive = {
- version = %{V_statistics_descriptive}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-Descriptive-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-Distributions = {
- version = %{V_statistics_distributions}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-Distributions-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-TTest = {
- version = %{V_statistics_ttest}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-TTest-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-ChiSquare = {
- version = %{V_statistics_chisquare}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-ChiSquare-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-Regression = {
- version = %{V_statistics_regression}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-Regression-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-RankCorrelation = {
- version = %{V_statistics_rankcorrelation}
- url = http://www.cpan.org/authors/id/G/GE/GENE/
- regex = Statistics-RankCorrelation-(__VER__)\.tar\.gz
- }
- prog perl-stats:Statistics-SerialCorrelation = {
- version = %{V_statistics_serialcorrelation}
- url = http://www.cpan.org/modules/by-module/Statistics/
- regex = Statistics-SerialCorrelation-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -c
- %setup -q -T -D -a 1
- %setup -q -T -D -a 2
- %setup -q -T -D -a 3
- %setup -q -T -D -a 4
- %setup -q -T -D -a 5
- %setup -q -T -D -a 6
- %setup -q -T -D -a 7
- %setup -q -T -D -a 8
- %setup -q -T -D -a 9
- %build
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
- %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ME.wrapper.pl
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|