]> git.pld-linux.org Git - packages/perl-Class-Container.git/blame - perl-Class-Container.spec
use generic url
[packages/perl-Class-Container.git] / perl-Class-Container.spec
CommitLineData
e6f87fe6 1#
2# Conditional build:
87933ac4 3%bcond_without tests # do not perform "make test"
1c597cbb 4
bc7ea0ae 5%define pdir Class
6%define pnam Container
1c597cbb 7%include /usr/lib/rpm/macros.perl
57e75de0 8Summary: Class::Container - glues object frameworks together transparently
1bca4cd3 9Summary(pl.UTF-8): Class::Container - przezroczyste sklejanie szkieletów obiektów
57e75de0 10Name: perl-Class-Container
99d3067d 11Version: 0.12
344b8632 12Release: 2
e68e0430 13# same as perl
14License: GPL v1+ or Artistic
dc29da35 15Group: Development/Languages/Perl
ea47e1e3 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
99d3067d 17# Source0-md5: 6896bdb4464b96ad638e22b0400acbc9
1c597cbb 18URL: http://search.cpan.org/dist/Class-Container/
f2ab3cfd 19BuildRequires: perl-devel >= 1:5.8.0
1c597cbb 20BuildRequires: rpm-perlprov >= 4.1-13
87933ac4 21%if %{with tests}
dc29da35 22BuildRequires: perl-Params-Validate >= 0.18
e6f87fe6 23%endif
dc29da35 24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
30a193fc 27%define _noautoreq 'perl(Scalar::Util)'
dc29da35 28
29%description
30This class facilitates building frameworks of several classes that
31inter-operate. It was first designed and built for "HTML::Mason", in
32which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer,
1c597cbb
ER
33and several other objects must create each other transparently,
34passing the appropriate parameters to the right class, possibly
35substituting their own subclass for any of these objects.
dc29da35 36
9a63b02b
JR
37%description -l pl.UTF-8
38Ta klasa ułatwia tworzenie szkieletu dla różnych, współpracujących ze
39sobą, klas. Pierwotnie była zaprojektowana i stworzona dla
40HTML::Mason, w którym Compiler, Lexer, Interpreter, Resolver,
41Component, Buffer i kilka innych obiektów muszą tworzyć inne w sposób
42przezroczysty, przekazując odpowiednie parametry do właściwej klasy,
43być może także podstawiając swoją własną podklasę za dowolny z tych
44obiektów.
dc29da35 45
dc29da35 46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48# We do not sleep.
c1a1e1e1 49%{__perl} -ni -e 'print unless /sleep/' Makefile.PL
dc29da35 50
51%build
a2e05865 52%{__perl} Makefile.PL \
376ddbc9 53 INSTALLDIRS=vendor
dc29da35 54%{__make}
e6f87fe6 55
87933ac4 56%{?with_tests:%{__make} test}
dc29da35 57
58%install
59rm -rf $RPM_BUILD_ROOT
60
30a193fc
JB
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
dc29da35 63
dc29da35 64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc Changes README
a2e05865 70%{perl_vendorlib}/Class/Container.pm
b9845f66 71%{_mandir}/man3/*.3pm*
This page took 0.088049 seconds and 4 git commands to generate.