[packages/perl-Sereal-Encoder] - new
baggins
baggins at pld-linux.org
Wed Sep 17 08:32:53 CEST 2014
commit 233314696c4bb83ec75eb8c7cc165ae5618a0809
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Sep 17 08:32:34 2014 +0200
- new
perl-Sereal-Encoder.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
---
diff --git a/perl-Sereal-Encoder.spec b/perl-Sereal-Encoder.spec
new file mode 100644
index 0000000..9dc483d
--- /dev/null
+++ b/perl-Sereal-Encoder.spec
@@ -0,0 +1,80 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Sereal
+%define pnam Encoder
+%include /usr/lib/rpm/macros.perl
+Summary: Sereal::Encoder - Fast, compact, powerful binary serialization
+Name: perl-Sereal-Encoder
+Version: 3.002
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/Y/YV/YVES/Sereal-Encoder-3.002.tar.gz
+# Source0-md5: 18e88a20ae5842f98e2874557d8d525c
+URL: http://search.cpan.org/dist/Sereal-Encoder/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Sereal::Decoder) >= 3.00
+BuildRequires: perl-Test-LongString
+BuildRequires: perl-Test-Warn
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library implements an efficient, compact-output, and feature-rich
+serializer using a binary protocol called Sereal.
+Its sister module Sereal::Decoder implements a decoder for this
+format. The two are released separately to allow for independent and
+safer upgrading. If you care greatly about performance, consider
+reading the Sereal::Performance documentation after finishing this
+document.
+
+The Sereal protocol version emitted by this encoder implementation is
+currently protocol version 3 by default.
+
+The protocol specification and many other bits of documentation
+can be found in the github repository. Right now, the specification is
+at https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod,
+there is a discussion of the design objectives in
+https://github.com/Sereal/Sereal/blob/master/README.pod, and the
+output of our benchmarks can be seen at
+https://github.com/Sereal/Sereal/wiki/Sereal-Comparison-Graphs.
+For more information on getting the best performance out of Sereal,
+have a look at the /"PERFORMANCE" section below.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?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
+%dir %{perl_vendorarch}/Sereal
+%{perl_vendorarch}/Sereal/*.pm
+%dir %{perl_vendorarch}/Sereal/Encoder
+%{perl_vendorarch}/Sereal/Encoder/*.pm
+%dir %{perl_vendorarch}/auto/Sereal
+%dir %{perl_vendorarch}/auto/Sereal/Encoder
+%attr(755,root,root) %{perl_vendorarch}/auto/Sereal/Encoder/*.so
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Sereal-Encoder.git/commitdiff/233314696c4bb83ec75eb8c7cc165ae5618a0809
More information about the pld-cvs-commit
mailing list