]> git.pld-linux.org Git - SPECS.git/blob - perl-Statistics-Frequency.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / perl-Statistics-Frequency.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Statistics
6 %define         pnam    Frequency
7 Summary:        Statistics::Frequency - simple counting of elements
8 Summary(pl.UTF-8):      Statistics::Frequency - proste liczenie elementów
9 Name:           perl-Statistics-Frequency
10 Version:        0.03
11 Release:        4
12 # same as perl
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
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
29
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.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 #perl Makefile.PL # it's broken: sixsth line prevents from generating man page
42 %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Statistics::Frequency")' \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{_mandir}/man3/*
This page took 0.277552 seconds and 3 git commands to generate.