From d36c73a341a429028a9ef31ed449155cd354bc10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu(a)fedoraproject.org>
Date: Mon, 14 Mar 2011 05:39:12 +0100
Subject: Import.
---
.gitignore | 1 +
perl-Test-Log-Dispatch.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 62 insertions(+)
create mode 100644 perl-Test-Log-Dispatch.spec
diff --git a/.gitignore b/.gitignore
index e69de29..74252c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-Log-Dispatch-0.03.tar.gz
diff --git a/perl-Test-Log-Dispatch.spec b/perl-Test-Log-Dispatch.spec
new file mode 100644
index 0000000..048884f
--- /dev/null
+++ b/perl-Test-Log-Dispatch.spec
@@ -0,0 +1,60 @@
+Name: perl-Test-Log-Dispatch
+Version: 0.03
+Release: 1%{?dist}
+Summary: Test what you are logging
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL:
http://search.cpan.org/dist/Test-Log-Dispatch/
+Source0:
http://www.cpan.org/authors/id/J/JS/JSWARTZ/Test-Log-Dispatch-%{version}....
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(List::MoreUtils)
+BuildRequires: perl(Log::Dispatch::Array)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Tester)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+
+%if 0%fedora < 15
+# Fedora < 15's rpm misses this
+Requires: perl(Log::Dispatch)
+%endif
+
+%description
+Test::Log::Dispatch is a Log::Dispatch object that keeps track of
+everything logged to it in memory, and provides convenient tests against
+what has been logged.
+
+%prep
+%setup -q -n Test-Log-Dispatch-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps
+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 README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Feb 07 2011 Ralf Corsépius <corsepiu(a)fedoraproject.org> 0.03-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..f83dd07 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+228cfdb9a68df2f52eb9b93e7e88156b Test-Log-Dispatch-0.03.tar.gz
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Test-Log-Dispatch.git/commit/?h=e...