3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Data-Accessor
8 Summary: Class::Data::Accessor - Inheritable, overridable class and instance data accessor creation
10 Name: perl-Class-Data-Accessor
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 81d45455fa45f200c236bfdc38086e96
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Class::Data::Accessor is the marriage of Class::Accessor and
27 Class::Data::Inheritable into a single module. It is used for creating
28 accessors to class data that overridable in subclasses as well as in
35 %setup -q -n %{pdir}-%{pnam}-%{version}
39 destdir=$RPM_BUILD_ROOT \
43 %{?with_tests:./Build test}
46 rm -rf $RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Class/Data/*.pm