3 %bcond_without tests # do not perform "make test"
5 %define pdir Statistics
7 Summary: Statistics::Frequency - simple counting of elements
8 Summary(pl.UTF-8): Statistics::Frequency - proste liczenie elementów
9 Name: perl-Statistics-Frequency
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b67d54fb3db4787f170f3700e5362417
17 URL: http://search.cpan.org/dist/Statistics-Frequency/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This is a small module for a small but very common task: counting
25 things, in another words, frequencies. Sure, you can $freq{$elem}++
26 yourself, but what if you need to normalize the frequencies, or what
27 if you have several frequencies you want to combine?
28 Statistics::Frequency to rescue.
30 %description -l pl.UTF-8
31 Jest to mały moduł do małego, ale bardzo popularnego zadania:
32 zliczania różnych rzeczy, a innymi słowy, częstotliwości. Oczywiście
33 można robić samemu $freq{$elem}++, ale jeśli potrzebna jest
34 normalizacja częstotliwości, albo kombinacja kilku częstotliwości?
35 Moduł Statistics::Frequency jest ratunkiem.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 #perl Makefile.PL # it's broken: sixsth line prevents from generating man page
42 %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Statistics::Frequency")' \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm