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): 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-authors/id/A/AU/AUDREYT/YAML-Syck-%{version}.tar.gz
17 # Source0-md5: 51054b5da582e381158f10276f82ae15
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-YAML >= 0.60
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module provides a Perl interface to the libsyck data
27 serialization library. It exports the Dump and Load functions for
28 converting Perl data structures to YAML strings, and the other way
31 NOTE: If you are working with other language's YAML/Syck bindings
32 (such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
33 calling the Load/Dump functions. The default setting is for preserving
34 backward-compatibility with YAML.pm.
37 Ten modu³ udostêpnia perlowy interfejs do biblioteki serializacji
38 danych libsyck. Eksportuje funkcje Dump i Load do przekszta³cania
39 perlowych struktur danych na ³añcuchy YAML i z powrotem.
41 Uwaga: je¶li pracujemy z dowi±zaniami YAML/Sych dla innego jêzyka
42 (np. Ruby), nale¿y ustawiæ $YAML::Syck::ImplicitTyping na 1 przed
43 wywo³aniem funkcji Load/Dump. Domy¶lne ustawienie jest dla zachowania
44 wstecznej zgodno¶ci z YAML.pm.
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/YAML/Syck.pod
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %dir %{perl_vendorarch}/YAML
72 %{perl_vendorarch}/YAML/*.pm
73 %dir %{perl_vendorarch}/JSON
74 %{perl_vendorarch}/JSON/Syck.pm
75 %dir %{perl_vendorarch}/YAML/Dumper
76 %{perl_vendorarch}/YAML/Dumper/Syck.pm
77 %dir %{perl_vendorarch}/YAML/Loader
78 %{perl_vendorarch}/YAML/Loader/Syck.pm
79 %dir %{perl_vendorarch}/auto/YAML
80 %dir %{perl_vendorarch}/auto/YAML/Syck
81 %{perl_vendorarch}/auto/YAML/Syck/*.bs
82 %attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/*.so