Name: perl-Class-XSAccessor Version: 1.16 Release: 1%{?dist} Summary: Generate fast XS accessors without runtime compilation License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Class-XSAccessor/ Source0: file:///home/dave/mirrors/minicpan//authors/id/S/SM/SMUELLER/Class-XSAccessor-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.008 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(Class::XSAccessor::Heavy) %description Class::XSAccessor implements fast read, write and read/write accessors in XS. Additionally, it can provide predicates such as has_foo() for testing whether the attribute foo is defined in the object. It only works with objects that are implemented as ordinary hashes. Class::XSAccessor::Array implements the same interface for objects that use arrays for their internal representation. %prep %setup -q -n Class-XSAccessor-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes META.json README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Class* %{_mandir}/man3/* %changelog * Sat Jan 12 2013 Dave Cross 1.16-1 - Specfile autogenerated by cpanspec 1.78.