diff --git a/README.md b/README.md index 0c25ce0..9ee06dc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-ExtUtils-CChecker +Often Perl modules are written to wrap functionality found in existing C headers, libraries, or to use OS-specific features. It is useful in the Build.PL or Makefile.PL file to check for the existence of these requirements before attempting to actually build the module. + diff --git a/perl-ExtUtils-CChecker.spec b/perl-ExtUtils-CChecker.spec new file mode 100644 index 0000000..51e159f --- /dev/null +++ b/perl-ExtUtils-CChecker.spec @@ -0,0 +1,63 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-ExtUtils-CChecker +Version: 0.09 +Release: 1mamba +Summary: ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl-devel +BuildRequires: perl-Test-Fatal +Requires: perl(ExtUtils::CBuilder) +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Often Perl modules are written to wrap functionality found in existing C headers, libraries, or to use OS-specific features. It is useful in the Build.PL or Makefile.PL file to check for the existence of these requirements before attempting to actually build the module. + +%prep +%setup -q -n ExtUtils-CChecker-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install destdir=%{buildroot} create_packlist=0 + +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/* +%{_mandir}/man3/*.3pm.gz +%doc Changes LICENSE README + +%changelog +* Mon Dec 16 2013 Automatic Build System 0.09-1mamba +- automatic update by autodist + +* Sun Nov 18 2012 Automatic Build System 0.08-1mamba +- automatic version update by autodist + +* Wed Nov 16 2011 Silvan Calarco 0.07-1mamba +- update to 0.07 + +* Sun Feb 20 2011 gil 0.06-1mamba +- package created by autospec