]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-HashSum.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / perl-Math-HashSum.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    HashSum
7 Summary:        Math::HashSum - sum a list of key-value pairs on a per-key basis
8 Summary(pl.UTF-8):      Math::HashSum - sumowanie listy par klucz-wartość na podstawie klucza
9 Name:           perl-Math-HashSum
10 Version:        0.02
11 Release:        2
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:  fe474ff52a3ce086e9887d821f784f5a
17 URL:            http://search.cpan.org/dist/Math-HashSum/
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 module allows you to sum a list of key-value pairs on a per-key
25 basis. It adds up all the values associated with each key in the given
26 list and returns a hash containing the sum associated with each key.
27
28 %description -l pl.UTF-8
29 Ten moduł pozwala zsumować listę par klucz-wartość na podstawie
30 klucza. Dodaje wszystkie wartości związane z każdym kluczem z podanej
31 listy i zwraca hash zawierający sumę związaną z każdym kluczem.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc CHANGES README
56 %{perl_vendorlib}/Math/HashSum.pm
57 %{_mandir}/man3/*
This page took 0.570589 seconds and 3 git commands to generate.