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 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 410ef7e24185de2a04390e0543876cad
18 URL: http://search.cpan.org/dist/YAML-Syck/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-YAML >= 0.60
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides a Perl interface to the libsyck data
28 serialization library. It exports the Dump and Load functions for
29 converting Perl data structures to YAML strings, and the other way
32 NOTE: If you are working with other language's YAML/Syck bindings
33 (such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
34 calling the Load/Dump functions. The default setting is for preserving
35 backward-compatibility with YAML.pm.
37 %description -l pl.UTF-8
38 Ten moduł udostępnia perlowy interfejs do biblioteki serializacji
39 danych libsyck. Eksportuje funkcje Dump i Load do przekształcania
40 perlowych struktur danych na łańcuchy YAML i z powrotem.
42 Uwaga: jeśli pracujemy z dowiązaniami YAML/Sych dla innego języka
43 (np. Ruby), należy ustawić $YAML::Syck::ImplicitTyping na 1 przed
44 wywołaniem funkcji Load/Dump. Domyślne ustawienie jest dla zachowania
45 wstecznej zgodności z YAML.pm.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 OPTIMIZE="%{rpmcflags}"
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
65 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/YAML/Syck.pod
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %dir %{perl_vendorarch}/YAML
74 %{perl_vendorarch}/YAML/*.pm
75 %dir %{perl_vendorarch}/JSON
76 %{perl_vendorarch}/JSON/Syck.pm
77 %dir %{perl_vendorarch}/YAML/Dumper
78 %{perl_vendorarch}/YAML/Dumper/Syck.pm
79 %dir %{perl_vendorarch}/YAML/Loader
80 %{perl_vendorarch}/YAML/Loader/Syck.pm
81 %dir %{perl_vendorarch}/auto/YAML
82 %dir %{perl_vendorarch}/auto/YAML/Syck
83 %{perl_vendorarch}/auto/YAML/Syck/*.bs
84 %attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/*.so