# Run optional test #%if ! 0%{?rhel} #%bcond_without perl_YAML_Syck_enables_optional_test #%else #%bcond_with perl_YAML_Syck_enables_optional_test #%endif Name: perl-YAML-Syck Version: 1.30 Release: 1%{?dist} Summary: Fast, lightweight YAML loader and dumper License: BSD and MIT URL: http://search.cpan.org/dist/YAML-Syck/ Vendor: bww bitwise works GmbH Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make #BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators # Keep bundled inc::Module::Install to break cycle # perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck BuildRequires: perl(Cwd) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) BuildRequires: perl(lib) BuildRequires: perl(ExtUtils::MakeMaker) # Run-time BuildRequires: perl(constant) # DynaLoader not used if XSLoader is available BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) BuildRequires: perl(XSLoader) # Tests #BuildRequires: perl(Data::Dumper) #BuildRequires: perl(IO::File) #BuildRequires: perl(Storable) #BuildRequires: perl(Test::More) #BuildRequires: perl(Tie::Hash) #%if %{with perl_YAML_Syck_enables_optional_test} # Optional tests #BuildRequires: perl(Devel::Leak) #BuildRequires: perl(JSON) #%endif # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(XSLoader) # Avoid provides for private perl objects %{?perl_default_filter} %description This module provides a Perl interface to the libsyck data serialization library. It exports the Dump and Load functions for converting Perl data structures to YAML strings, and the other way around. %prep %setup -q -n YAML-Syck-%{version} # Unbundle core and unused modules rm -rvf inc/{parent.pm,PerlIO.pm,Scalar/,Test/} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} make manifypods %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check #make test %files %license COPYING %doc Changes COMPATIBILITY %{perl_vendorarch}/auto/YAML/ %{perl_vendorarch}/YAML/ %{perl_vendorarch}/JSON/ %{_mandir}/man3/*.3* #%{_mandir}/man3/JSON::Syck.3* #%{_mandir}/man3/YAML::Syck.3* %changelog * Thu May 03 2018 Elbert Pol - 1.30-1 - initial rpm for OS2