- update to 0.14
This commit is contained in:
parent
acc0c72349
commit
6427256bf8
@ -0,0 +1 @@
|
||||
Class-XSAccessor-0.14.tar.gz
|
||||
60
perl-Class-XSAccessor.spec
Normal file
60
perl-Class-XSAccessor.spec
Normal file
@ -0,0 +1,60 @@
|
||||
Name: perl-Class-XSAccessor
|
||||
Version: 0.14
|
||||
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: http://www.cpan.org/authors/id/S/SM/SMUELLER/Class-XSAccessor-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: perl(AutoXS::Header)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(AutoXS::Header)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%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 README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Class*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Dec 15 2008 Marcela Mašláňová <mmaslano@redhat.com> 0.14-1
|
||||
- update to 0.14
|
||||
|
||||
* Fri Dec 05 2008 Marcela Mašláňová <mmaslano@redhat.com> 0.11-1
|
||||
- Specfile autogenerated by cpanspec 1.77.
|
||||
Loading…
Reference in New Issue
Block a user