]> git.pld-linux.org Git - packages/perl-Class-Hash.git/blame - perl-Class-Hash.spec
use generic url
[packages/perl-Class-Hash.git] / perl-Class-Hash.spec
CommitLineData
ff02a0eb 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
78cc74e1 4
bc3567b9 5%define pdir Class
6%define pnam Hash
78cc74e1 7%include /usr/lib/rpm/macros.perl
ff02a0eb 8Summary: Class::Hash - Perl extension for hashes that look like classes
b2c9d08d 9Summary(pl.UTF-8): CLass::Hash - rozszerzenie Perla o hasze wyglądające jak klasy
ff02a0eb 10Name: perl-Class-Hash
11Version: 1.01
9b59fb27 12Release: 2
7ad68093 13# same as perl
14License: GPL v1+ or Artistic
ff02a0eb 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 5366af138b4353755decf464afedccc4
78cc74e1 18URL: http://search.cpan.org/dist/Class-Hash/
ff02a0eb 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25This component provides a method-based interface to a hash.
78cc74e1
ER
26Occasionally, it's more convenient to have named methods to access a
27hash than hash keys. This module generalizes this behavior. It tries
ff02a0eb 28to work the tied hash interface inside-out.
29
30This module tries to do as much or as little for you as you want and
31provides a number of configuration options. The options allow you to
32determine what kind of interface the object has. The interface may
8822a31f
JB
33also be altered after-the-fact.
34
ef57ace5 35%description -l pl.UTF-8
8822a31f 36Ten pakiet dostarcza oparty na metodach interfejs do haszy. Czasem
ef57ace5
JR
37bardziej wygodne jest mieć nazwane metody do dostępu do hasza zamiast
38kluczy. Ten moduł generalizuje takie zachowanie. Próbuje wyprowadzić
39interfejs powiązanego hasza.
8822a31f 40
78cc74e1
ER
41Ten moduł próbuje zrobić jak najwięcej lub jak najmniej za programistę
42w zależności od potrzeb, dostarczając wiele opcji konfiguracyjnych.
43Opcje te pozwalają określić rodzaj interfejsu, jaki ma obiekt. Ten
44interfejs może być także modyfikowany później.
ff02a0eb 45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52
53%{__make}
54%{?with_tests:%{__make} test}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc Changes README
68%{perl_vendorlib}/Class/Hash.pm
69%{_mandir}/man3/*
This page took 0.088578 seconds and 4 git commands to generate.