[packages/perl-Mixin-Linewise] - new
baggins
baggins at pld-linux.org
Mon Mar 23 00:31:29 CET 2015
commit cd11dbaad6717daf0fdd7bde063726409ec688f2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 23 00:31:12 2015 +0100
- new
perl-Mixin-Linewise.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/perl-Mixin-Linewise.spec b/perl-Mixin-Linewise.spec
new file mode 100644
index 0000000..ca95274
--- /dev/null
+++ b/perl-Mixin-Linewise.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Mixin
+%define pnam Linewise
+%include /usr/lib/rpm/macros.perl
+Summary: Mixin::Linewise - write your linewise code for handles; this does the rest
+#Summary(pl.UTF-8):
+Name: perl-Mixin-Linewise
+Version: 0.106
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/Mixin-Linewise-0.106.tar.gz
+# Source0-md5: d4699cde97d8286f44624c1d19663334
+URL: http://search.cpan.org/dist/Mixin-Linewise/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(PerlIO::utf8_strict)
+BuildRequires: perl-Sub-Exporter
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+It's boring to deal with opening files for IO, converting strings to
+handle-like objects, and all that. With Mixin::Linewise::Readers and
+Mixin::Linewise::Writers, you can just write a method to handle
+handles, and methods for handling strings and filenames are added for
+you.
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%dir %{perl_vendorlib}/Mixin
+%{perl_vendorlib}/Mixin/*.pm
+%{perl_vendorlib}/Mixin/Linewise
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Mixin-Linewise.git/commitdiff/cd11dbaad6717daf0fdd7bde063726409ec688f2
More information about the pld-cvs-commit
mailing list