[perl-Modern-Perl] Import perl-Modern-Perl

konradm konradm at fedoraproject.org
Fri Oct 28 16:51:10 UTC 2011


commit 1ab37aee9141d2c7da37b003d15f4a8f4c90bf8a
Author: Conrad Meyer <cemeyer at uw.edu>
Date:   Fri Oct 28 09:50:57 2011 -0700

    Import perl-Modern-Perl

 .gitignore            |    1 +
 perl-Modern-Perl.spec |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8ebd53e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Modern-Perl-1.03.tar.gz
diff --git a/perl-Modern-Perl.spec b/perl-Modern-Perl.spec
new file mode 100644
index 0000000..9af39b2
--- /dev/null
+++ b/perl-Modern-Perl.spec
@@ -0,0 +1,49 @@
+Name:           perl-Modern-Perl
+Version:        1.03
+Release:        1%{?dist}
+Summary:        Enable all of the features of Modern Perl with one command
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Modern-Perl/
+Source0:        http://www.cpan.org/authors/id/C/CH/CHROMATIC/Modern-Perl-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl >= 0:5.10
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::Simple) >= 0.8
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Modern Perl often relies on the presence of several core and CPAN pragmas
+and modules.  Wouldn't it be nice to use them all with a single command?
+
+%prep
+%setup -q -n Modern-Perl-%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+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 README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Jul 16 2011 Conrad Meyer <konrad at tylerc.org> 1.03-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..5164334 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1338c29f86b109280f8c723ece49299e  Modern-Perl-1.03.tar.gz


More information about the scm-commits mailing list