# This file is licensed under the terms of GNU GPLv2+. Name: perl-DynaLoader-Functions Version: 0.000 Release: 2%{?dist} Summary: Deconstructed dynamic C library loading License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/DynaLoader-Functions/ Source0: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/DynaLoader-Functions-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(Module::Build) # Tests: BuildRequires: perl(constant) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(Module::Runtime) >= 0.007 BuildRequires: perl(Params::Classify) >= 0.008 BuildRequires: perl(parent) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(File::Spec) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Exporter) %description This module provides a function-based interface to dynamic loading as used by Perl. Some details of dynamic loading are very platform-dependent, so correct use of these functions requires the programmer to be mindful of the space of platform variations. %prep %setup -q -n DynaLoader-Functions-%{version} %build %{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 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 ./Build test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Jul 22 2011 Petr Sabata - 0.000-2 - Perl mass rebuild * Mon Jul 11 2011 Petr Pisar 0.000-1 - Specfile autogenerated by cpanspec 1.78. - Remove BuildRoot and defattr