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