[packages/perl-Sereal-Decoder] - new

baggins baggins at pld-linux.org
Wed Sep 17 08:27:23 CEST 2014


commit 94317d33a9776f47bb5d5bfd6733ebdd41cebff2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Sep 17 08:27:09 2014 +0200

    - new

 perl-Sereal-Decoder.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
---
diff --git a/perl-Sereal-Decoder.spec b/perl-Sereal-Decoder.spec
new file mode 100644
index 0000000..4ec8b91
--- /dev/null
+++ b/perl-Sereal-Decoder.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Sereal
+%define		pnam	Decoder
+%include	/usr/lib/rpm/macros.perl
+Summary:	Sereal::Decoder - Fast, compact, powerful binary deserialization
+Name:		perl-Sereal-Decoder
+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-Decoder-3.002.tar.gz
+# Source0-md5:	c26033b258dc3ee2e4e485f7293ccb63
+URL:		http://search.cpan.org/dist/Sereal-Decoder/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Test::LongString)
+BuildRequires:	perl-Test-Warn
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library implements a deserializer for an efficient,
+compact-output, and feature-rich binary protocol called Sereal.
+Its sister module Sereal::Encoder implements an encoder for this
+format. The two are released separately to allow for independent and
+safer upgrading.
+
+The Sereal protocol versions that are compatible with this decoder
+implementation are currently protocol versions 1, 2, and 3. As it
+stands, it will refuse to attempt to decode future versions of the
+protocol, but if necessary there is likely going to be an option to
+decode the parts of the input that are compatible with version 3 of
+the protocol. The protocol was designed to allow for this.
+
+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.
+
+%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/Decoder
+%{perl_vendorarch}/Sereal/Decoder/*.pm
+%dir %{perl_vendorarch}/auto/Sereal
+%dir %{perl_vendorarch}/auto/Sereal/Decoder
+%attr(755,root,root) %{perl_vendorarch}/auto/Sereal/Decoder/*.so
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Sereal-Decoder.git/commitdiff/94317d33a9776f47bb5d5bfd6733ebdd41cebff2



More information about the pld-cvs-commit mailing list