]> git.pld-linux.org Git - packages/perl-Sereal-Encoder.git/blame - perl-Sereal-Encoder.spec
- up to 3.015
[packages/perl-Sereal-Encoder.git] / perl-Sereal-Encoder.spec
CommitLineData
23331469
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
2215020b 4
23331469
JR
5%define pdir Sereal
6%define pnam Encoder
7%include /usr/lib/rpm/macros.perl
8Summary: Sereal::Encoder - Fast, compact, powerful binary serialization
1d351108 9Summary(pl.UTF-8): Sereal::Encoder - szybka, zwarta, potężna serializacja binarna
23331469 10Name: perl-Sereal-Encoder
4893bc9e
AM
11Version: 3.015
12Release: 1
23331469
JR
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
2215020b 16Source0: http://www.cpan.org/modules/by-authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
4893bc9e 17# Source0-md5: 78428860e055561e371e3292093c1fc5
23331469
JR
18URL: http://search.cpan.org/dist/Sereal-Encoder/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
1d351108 22BuildRequires: perl-Sereal-Decoder >= 3.00
23331469
JR
23BuildRequires: perl-Test-LongString
24BuildRequires: perl-Test-Warn
25%endif
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This library implements an efficient, compact-output, and feature-rich
2215020b
ER
30serializer using a binary protocol called Sereal. Its sister module
31Sereal::Decoder implements a decoder for this format. The two are
32released separately to allow for independent and safer upgrading. If
33you care greatly about performance, consider reading the
1d351108 34Sereal::Performance documentation.
23331469
JR
35
36The Sereal protocol version emitted by this encoder implementation is
37currently protocol version 3 by default.
38
2215020b 39The protocol specification and many other bits of documentation can be
1d351108
JB
40found in the github repository at <https://github.com/Sereal/Sereal>.
41
42%description -l pl.UTF-8
43Ten moduł implementuje wydajny, mający zwarte wyjście i wiele
44możliwości, serializer wykorzystujący binary protokół o nazwie Sereal.
45Siostrzany moduł Sereal::Decoder implementuje dekoder dla tego
46formatu. Moduły wydawane są osobno, aby umożliwić niezależne i
47bezpieczniejsze aktualizacje. Informacje na temat wydajności można
48znaleźć w dokumentacji Sereal::Performance.
49
50Ta implementacja kodera domyślnie produkuje wyjście zgodne z
51protokołem Sereal w wersji 3.
52
53Specyfikację protokołu i inną dokumentację można znaleźć w
54repozytorium github <https://github.com/Sereal/Sereal>.
23331469
JR
55
56%prep
57%setup -q -n %{pdir}-%{pnam}-%{version}
58
59%build
60%{__perl} Makefile.PL \
61 INSTALLDIRS=vendor
62%{__make} \
63 CC="%{__cc}" \
64 OPTIMIZE="%{rpmcflags}"
65
66%{?with_tests:%{__make} test}
67
68%install
69rm -rf $RPM_BUILD_ROOT
23331469
JR
70%{__make} pure_install \
71 DESTDIR=$RPM_BUILD_ROOT
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
78%doc Changes
79%dir %{perl_vendorarch}/Sereal
1d351108 80%{perl_vendorarch}/Sereal/Encoder.pm
23331469
JR
81%dir %{perl_vendorarch}/Sereal/Encoder
82%{perl_vendorarch}/Sereal/Encoder/*.pm
83%dir %{perl_vendorarch}/auto/Sereal
84%dir %{perl_vendorarch}/auto/Sereal/Encoder
1d351108
JB
85%attr(755,root,root) %{perl_vendorarch}/auto/Sereal/Encoder/Encoder.so
86%{_mandir}/man3/Sereal::Encoder.3pm*
This page took 0.240326 seconds and 4 git commands to generate.