From 5710c7f376a1f7dfe26355d2b75e45a438aac2d9 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 10 Sep 2008 10:24:09 +0000 Subject: [PATCH] Initial import of perl-Data-Section after review (rhbz #461303) --- .cvsignore | 4 +++ perl-Data-Section.spec | 56 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 perl-Data-Section.spec diff --git a/.cvsignore b/.cvsignore index e69de29..625db8c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,4 @@ +Data-Section-0.005.tar.gz +noarch +.build*.log +*.rpm diff --git a/perl-Data-Section.spec b/perl-Data-Section.spec new file mode 100644 index 0000000..ce79297 --- /dev/null +++ b/perl-Data-Section.spec @@ -0,0 +1,56 @@ +Name: perl-Data-Section +Version: 0.005 +Release: 2%{?dist} +Summary: Read multiple hunks of data out of your DATA section +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Data-Section/ +Source0: http://www.cpan.org/modules/by-module/Data/Data-Section-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Sub::Exporter) >= 0.979 +BuildRequires: perl(Test::More) +Requires: perl(Sub::Exporter) >= 0.979 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Data::Section provides an easy way to access multiple named chunks of line- +oriented data in your module's DATA section. It was written to allow +modules to store their own templates, but probably has other uses. + +%prep +%setup -q -n Data-Section-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Sep 06 2008 Daniel P. Berrange 0.005-2 +- Add Test::More BR + +* Fri Sep 05 2008 Daniel P. Berrange 0.005-1 +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..01bfb38 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9206d32770fbb96fa717f8c4399f74ef Data-Section-0.005.tar.gz