summaryrefslogtreecommitdiff
path: root/perl-Statistics-ChiSquare.spec
blob: 6114f6f9b34e2a6738406c2b8e987f27190e73c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%include	/usr/lib/rpm/macros.perl
Summary:	Statistics-ChiSquare perl module
Summary(pl):	Moduł perla Statistics-ChiSquare
Name:		perl-Statistics-ChiSquare
Version:	0.2
Release:	1
License:	GPL
Group:		Development/Languages/Perl
Group(pl):	Programowanie/Języki/Perl
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Statistics/Statistics-ChiSquare-%{version}.tar.gz
BuildRequires:	rpm-perlprov >= 3.0.3-16
BuildRequires:	perl >= 5.005_03-14
%requires_eq	perl
Requires:	%{perl_sitearch}
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Statistics-ChiSquare - How random is your data?

%description -l pl
Statistics-ChiSquare - Jak bardzo losowe są twoje dane?

%prep
%setup -q -n Statistics

%build
cd ChiSquare
perl Makefile.PL
make

%install
rm -rf $RPM_BUILD_ROOT
cd ChiSquare
make install DESTDIR=$RPM_BUILD_ROOT

(
  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Statistics/ChiSquare
  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
  mv .packlist.new .packlist
)

gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
	Changes

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChiSquare/Changes.gz
%{perl_sitelib}/Statistics/ChiSquare.pm
%{perl_sitearch}/auto/Statistics/ChiSquare

%{_mandir}/man3/*