From a6be8dcb54a9f56db4eb0ae10da144e5c53f7608 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 8 Mar 2016 17:59:31 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + perl-ExtUtils-HasCompiler.spec | 55 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 perl-ExtUtils-HasCompiler.spec diff --git a/.gitignore b/.gitignore index e69de29..9813003 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ExtUtils-HasCompiler-0.012.tar.gz diff --git a/perl-ExtUtils-HasCompiler.spec b/perl-ExtUtils-HasCompiler.spec new file mode 100644 index 0000000..ee2aafa --- /dev/null +++ b/perl-ExtUtils-HasCompiler.spec @@ -0,0 +1,55 @@ +Name: perl-ExtUtils-HasCompiler +Version: 0.012 +Release: 1%{?dist} +Summary: Check for the presence of a compiler +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/ExtUtils-HasCompiler/ +Source0: http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-HasCompiler-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::Mksymlists) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +# Tests +BuildRequires: perl(Test::More) +Requires: perl(DynaLoader) +Requires: perl(ExtUtils::Mksymlists) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module tries to check if the current system is capable of compiling, +linking and loading an XS module. + +%prep +%setup -q -n ExtUtils-HasCompiler-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Mar 07 2016 Jitka Plesnikova - 0.012-1 +- Initial release diff --git a/sources b/sources index e69de29..f355799 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e455aec77a21d2e2ef0b52b3d561c79 ExtUtils-HasCompiler-0.012.tar.gz