packages: perl-Capture-Tiny/perl-Capture-Tiny.spec (NEW) - initial revision...
baggins
baggins at pld-linux.org
Tue Mar 29 11:59:02 CEST 2011
Author: baggins Date: Tue Mar 29 09:59:02 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial revision by pldcpan
---- Files affected:
packages/perl-Capture-Tiny:
perl-Capture-Tiny.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Capture-Tiny/perl-Capture-Tiny.spec
diff -u /dev/null packages/perl-Capture-Tiny/perl-Capture-Tiny.spec:1.1
--- /dev/null Tue Mar 29 11:59:02 2011
+++ packages/perl-Capture-Tiny/perl-Capture-Tiny.spec Tue Mar 29 11:58:56 2011
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Capture
+%define pnam Tiny
+%include /usr/lib/rpm/macros.perl
+Summary: Capture::Tiny - Capture STDOUT and STDERR from Perl, XS or external programs
+#Summary(pl.UTF-8):
+Name: perl-Capture-Tiny
+Version: 0.10
+Release: 1
+License: apache
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/D/DA/DAGOLDEN/Capture-Tiny-%{version}.tar.gz
+# Source0-md5: d38c6b83f690dfd35b503ccbfade7558
+# generic URL, check or change before uncommenting
+#URL: http://search.cpan.org/dist/Capture-Tiny/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Capture::Tiny provides a simple, portable way to capture anything sent
+to STDOUT or STDERR, regardless of whether it comes from Perl, from XS
+code or from an external program. Optionally, output can be teed so
+that it is captured while being passed through to the original
+handles. Yes, it even works on Windows. Stop guessing which of a dozen
+capturing modules to use in any particular situation and just use this
+one.
+
+This module was heavily inspired by IO::CaptureOutput, which provides
+similar functionality without the ability to tee output and with more
+complicated code and API.
+
+
+
+# %description -l pl.UTF-8 # TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Capture/*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/03/29 09:58:56 baggins
+- initial revision by pldcpan
+
================================================================
More information about the pld-cvs-commit
mailing list