3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: YAML::Syck - fast, lightweight YAML loader and dumper
9 Summary(pl.UTF-8): YAML::Syck - szybki, lekki moduł do wczytywania i zrzucania YAML-a
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 0f906ae8b3747039b26c29c481cda607
17 URL: http://search.cpan.org/dist/YAML-Syck/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.59
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module provides a Perl interface to the libsyck data
25 serialization library. It exports the Dump and Load functions for
26 converting Perl data structures to YAML strings, and the other way
29 NOTE: If you are working with other language's YAML/Syck bindings
30 (such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
31 calling the Load/Dump functions. The default setting is for preserving
32 backward-compatibility with YAML.pm.
34 %description -l pl.UTF-8
35 Ten moduł udostępnia perlowy interfejs do biblioteki serializacji
36 danych libsyck. Eksportuje funkcje Dump i Load do przekształcania
37 perlowych struktur danych na łańcuchy YAML i z powrotem.
39 Uwaga: jeśli pracujemy z dowiązaniami YAML/Sych dla innego języka
40 (np. Ruby), należy ustawić $YAML::Syck::ImplicitTyping na 1 przed
41 wywołaniem funkcji Load/Dump. Domyślne ustawienie jest dla zachowania
42 wstecznej zgodności z YAML.pm.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 OPTIMIZE="%{rpmcflags}"
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc COMPATIBILITY Changes README
68 %{perl_vendorarch}/YAML/Syck.pm
69 %dir %{perl_vendorarch}/JSON
70 %{perl_vendorarch}/JSON/Syck.pm
71 %dir %{perl_vendorarch}/YAML/Dumper
72 %{perl_vendorarch}/YAML/Dumper/Syck.pm
73 %dir %{perl_vendorarch}/YAML/Loader
74 %{perl_vendorarch}/YAML/Loader/Syck.pm
75 %dir %{perl_vendorarch}/auto/YAML/Syck
76 %attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/Syck.so
77 %{_mandir}/man3/JSON::Syck.3pm*
78 %{_mandir}/man3/YAML::Syck.3pm*