]> git.pld-linux.org Git - packages/perl-Math-HashSum.git/blob - perl-Math-HashSum.spec
1ce2798b5fcb9d67fc9b69dd3e2741a5147f8cb9
[packages/perl-Math-HashSum.git] / perl-Math-HashSum.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Math
7 %define         pnam    HashSum
8 Summary:        Math::HashSum - sum a list of key-value pairs on a per-key basis
9 Summary(pl.UTF-8):      Math::HashSum - sumowanie listy par klucz-wartość na podstawie klucza
10 Name:           perl-Math-HashSum
11 Version:        0.02
12 Release:        2
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  fe474ff52a3ce086e9887d821f784f5a
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.06552 seconds and 2 git commands to generate.