From 1a86728caa6fbfce6a1428bdcee983f5b6f5b423 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 5 Nov 2010 18:53:30 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + perl-File-Map.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 81 insertions(+) create mode 100644 perl-File-Map.spec diff --git a/.gitignore b/.gitignore index e69de29..3608012 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/File-Map-0.31.tar.gz diff --git a/perl-File-Map.spec b/perl-File-Map.spec new file mode 100644 index 0000000..9a1a749 --- /dev/null +++ b/perl-File-Map.spec @@ -0,0 +1,79 @@ +Name: perl-File-Map +Version: 0.31 +Release: 4%{?dist} +Summary: Memory mapping made simple and safe +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Map/ +Source0: http://www.cpan.org/authors/id/L/LE/LEONT/File-Map-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl >= 0:5.008 +BuildRequires: perl(Const::Fast) +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Sub::Exporter) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Warn) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(IO::Handle) +BuildRequires: perl(Time::HiRes) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +File::Map maps files or anonymous memory into perl variables. + + +%prep +%setup -q -n File-Map-%{version} +chmod -x examples/fastsearch.pl + + +%build +%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +./Build + + +%install +rm -rf $RPM_BUILD_ROOT + +./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 + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes examples LICENSE README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/File* +%{_mandir}/man3/* + + +%changelog +* Fri Nov 05 2010 Lubomir Rintel (GoodData) 0.31-4 +- Fix a BR typo + +* Wed Nov 03 2010 Lubomir Rintel (GoodData) 0.31-3 +- Drop el5 secific patches +- Add more BuildRequires (Petr Pisar) + +* Mon Oct 11 2010 Lubomir Rintel (GoodData) 0.31-2 +- Fix build on el5 + +* Fri Oct 08 2010 Lubomir Rintel (GoodData) 0.31-1 +- Fix POD +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..8c453d4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f4ccfddbdf705e78a104e3c89a1f37ae File-Map-0.31.tar.gz