%define real_name Attribute-Handlers Summary: Simpler definition of attribute handlers Name: perl-%{real_name} Version: 0.78 Release: %mkrel 3 License: GPL or Artistic Group: Development/Perl URL: http://search.cpan.org/dist/%{real_name} Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABERGMAN/%{real_name}-%{version}.tar.bz2 BuildRequires: perl-devel BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description This module, when inherited by a package, allows that package's class to define attribute handler subroutines for specific attributes. Variables and subroutines subsequently defined in that package, or in packages derived from that package may be given attributes with the same names as the attribute handler subroutines, which will then be called at the end of the compilation phase (i.e. in a `CHECK' block). %prep %setup -q -n %{real_name}-%{version} chmod 644 Changes README %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %attr(0644,root,root) %{perl_vendorlib}/Attribute/* %{_mandir}/*/* %changelog * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.78-3mdv2009.0 + Revision: 241151 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon May 14 2007 Oden Eriksson <oeriksson@mandriva.com> 0.78-1mdv2008.0 + Revision: 26669 - Import perl-Attribute-Handlers * Mon May 14 2007 Oden Eriksson <oeriksson@mandriva.com> 0.78-1mdv2007.1 - initial Mandriva package