# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir Class %define pnam Container %include /usr/lib/rpm/macros.perl Summary: Class::Container - glues object frameworks together transparently Summary(pl.UTF-8): Class::Container - przezroczyste sklejanie szkieletów obiektów Name: perl-Class-Container Version: 0.13 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 5321b227c09c96911a8a0ce269bbfd36 URL: http://search.cpan.org/dist/Class-Container/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Params-Validate >= 0.18 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq 'perl(Scalar::Util)' %description This class facilitates building frameworks of several classes that inter-operate. It was first designed and built for "HTML::Mason", in which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and several other objects must create each other transparently, passing the appropriate parameters to the right class, possibly substituting their own subclass for any of these objects. %description -l pl.UTF-8 Ta klasa ułatwia tworzenie szkieletu dla różnych, współpracujących ze sobą, klas. Pierwotnie była zaprojektowana i stworzona dla HTML::Mason, w którym Compiler, Lexer, Interpreter, Resolver, Component, Buffer i kilka innych obiektów muszą tworzyć inne w sposób przezroczysty, przekazując odpowiednie parametry do właściwej klasy, być może także podstawiając swoją własną podklasę za dowolny z tych obiektów. %prep %setup -q -n %{pdir}-%{pnam}-%{version} # We do not sleep. %{__perl} -ni -e 'print unless /sleep/' Makefile.PL %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Class/Container.pm %{_mandir}/man3/*.3pm*