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