[packages/perl-Stream-Buffered] - initial

arekm arekm at pld-linux.org
Thu Oct 10 12:43:17 CEST 2013


commit 7d8304efbfdc2b483cede7f800461141521b2d9f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 10 12:43:05 2013 +0200

    - initial

 perl-Stream-Buffered.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/perl-Stream-Buffered.spec b/perl-Stream-Buffered.spec
new file mode 100644
index 0000000..4202828
--- /dev/null
+++ b/perl-Stream-Buffered.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Stream
+%define		pnam	Buffered
+Summary:	String::Buffered - temporary buffer to save bytes
+Name:		perl-Stream-Buffered
+Version:	0.02
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	63d7776365a4ffd22f15002e03781c01
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Stream::Buffered is a buffer class to store arbitrary length of byte
+strings and then get a seekable filehandle once everything is
+buffered. It uses PerlIO and/or temporary file to save the buffer
+depending on the length of the size.
+
+%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} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorlib}/%{pdir}/*.pm
+%dir %{perl_vendorlib}/%{pdir}/Buffered
+%{perl_vendorlib}/%{pdir}/Buffered/*.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Stream-Buffered.git/commitdiff/7d8304efbfdc2b483cede7f800461141521b2d9f



More information about the pld-cvs-commit mailing list