]> git.pld-linux.org Git - SPECS.git/blob - perl-Class-Hash.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Class-Hash.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Class
6 %define         pnam    Hash
7 Summary:        Class::Hash - Perl extension for hashes that look like classes
8 Summary(pl.UTF-8):      CLass::Hash - rozszerzenie Perla o hasze wyglądające jak klasy
9 Name:           perl-Class-Hash
10 Version:        1.01
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:  5366af138b4353755decf464afedccc4
17 URL:            http://search.cpan.org/dist/Class-Hash/
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 component provides a method-based interface to a hash.
25 Occasionally, it's more convenient to have named methods to access a
26 hash than hash keys. This module generalizes this behavior. It tries
27 to work the tied hash interface inside-out.
28
29 This module tries to do as much or as little for you as you want and
30 provides a number of configuration options. The options allow you to
31 determine what kind of interface the object has. The interface may
32 also be altered after-the-fact.
33
34 %description -l pl.UTF-8
35 Ten pakiet dostarcza oparty na metodach interfejs do haszy. Czasem
36 bardziej wygodne jest mieć nazwane metody do dostępu do hasza zamiast
37 kluczy. Ten moduł generalizuje takie zachowanie. Próbuje wyprowadzić
38 interfejs powiązanego hasza.
39
40 Ten moduł próbuje zrobić jak najwięcej lub jak najmniej za programistę
41 w zależności od potrzeb, dostarczając wiele opcji konfiguracyjnych.
42 Opcje te pozwalają określić rodzaj interfejsu, jaki ma obiekt. Ten
43 interfejs może być także modyfikowany później.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Makefile.PL \
50         INSTALLDIRS=vendor
51
52 %{__make}
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes README
67 %{perl_vendorlib}/Class/Hash.pm
68 %{_mandir}/man3/*
This page took 0.251083 seconds and 3 git commands to generate.