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
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/YAML-Syck-%{version}.tar.gz
16 # Source0-md5: 51054b5da582e381158f10276f82ae15
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-YAML >= 0.60
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides a Perl interface to the libsyck data
26 serialization library. It exports the Dump and Load functions for
27 converting Perl data structures to YAML strings, and the other way
30 NOTE: If you are working with other language's YAML/Syck bindings
31 (such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
32 calling the Load/Dump functions. The default setting is for preserving
33 backward-compatibility with YAML.pm.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/YAML/Syck.pod
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorarch}/YAML
61 %{perl_vendorarch}/YAML/*.pm
62 %dir %{perl_vendorarch}/JSON
63 %{perl_vendorarch}/JSON/Syck.pm
64 %dir %{perl_vendorarch}/YAML/Dumper
65 %{perl_vendorarch}/YAML/Dumper/Syck.pm
66 %dir %{perl_vendorarch}/YAML/Loader
67 %{perl_vendorarch}/YAML/Loader/Syck.pm
68 %dir %{perl_vendorarch}/auto/YAML
69 %dir %{perl_vendorarch}/auto/YAML/Syck
70 %{perl_vendorarch}/auto/YAML/Syck/*.bs
71 %attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/*.so