source: spec/trunk/SPECS/perl-YAML-Syck.spec@ 1566

Last change on this file since 1566 was 1396, checked in by tellie, 7 years ago

spec: perl-YAML-Syck: Release version 1.30-1.

File size: 2.6 KB
Line 
1# Run optional test
2#%if ! 0%{?rhel}
3#%bcond_without perl_YAML_Syck_enables_optional_test
4#%else
5#%bcond_with perl_YAML_Syck_enables_optional_test
6#%endif
7
8Name: perl-YAML-Syck
9Version: 1.30
10Release: 1%{?dist}
11Summary: Fast, lightweight YAML loader and dumper
12License: BSD and MIT
13URL: http://search.cpan.org/dist/YAML-Syck/
14Vendor: bww bitwise works GmbH
15Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz
16BuildRequires: coreutils
17BuildRequires: findutils
18BuildRequires: gcc
19BuildRequires: make
20#BuildRequires: perl-interpreter
21BuildRequires: perl-devel
22BuildRequires: perl-generators
23# Keep bundled inc::Module::Install to break cycle
24# perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck
25BuildRequires: perl(Cwd)
26BuildRequires: perl(File::Path)
27BuildRequires: perl(File::Spec)
28BuildRequires: perl(lib)
29BuildRequires: perl(ExtUtils::MakeMaker)
30# Run-time
31BuildRequires: perl(constant)
32# DynaLoader not used if XSLoader is available
33BuildRequires: perl(Exporter)
34BuildRequires: perl(strict)
35BuildRequires: perl(vars)
36BuildRequires: perl(XSLoader)
37# Tests
38#BuildRequires: perl(Data::Dumper)
39#BuildRequires: perl(IO::File)
40#BuildRequires: perl(Storable)
41#BuildRequires: perl(Test::More)
42#BuildRequires: perl(Tie::Hash)
43#%if %{with perl_YAML_Syck_enables_optional_test}
44# Optional tests
45#BuildRequires: perl(Devel::Leak)
46#BuildRequires: perl(JSON)
47#%endif
48# Dependencies
49Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
50Requires: perl(XSLoader)
51
52# Avoid provides for private perl objects
53%{?perl_default_filter}
54
55%description
56This module provides a Perl interface to the libsyck data serialization
57library. It exports the Dump and Load functions for converting Perl data
58structures to YAML strings, and the other way around.
59
60%prep
61%setup -q -n YAML-Syck-%{version}
62
63# Unbundle core and unused modules
64rm -rvf inc/{parent.pm,PerlIO.pm,Scalar/,Test/}
65
66%build
67perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
68make %{?_smp_mflags}
69make manifypods
70
71%install
72make pure_install DESTDIR=%{buildroot}
73find %{buildroot} -type f -name .packlist -delete
74find %{buildroot} -type f -name '*.bs' -empty -delete
75%{_fixperms} -c %{buildroot}
76
77%check
78#make test
79
80%files
81%license COPYING
82%doc Changes COMPATIBILITY
83%{perl_vendorarch}/auto/YAML/
84%{perl_vendorarch}/YAML/
85%{perl_vendorarch}/JSON/
86%{_mandir}/man3/*.3*
87#%{_mandir}/man3/JSON::Syck.3*
88#%{_mandir}/man3/YAML::Syck.3*
89
90%changelog
91* Thu May 03 2018 Elbert Pol <elbert.pol@gmail.com> - 1.30-1
92- initial rpm for OS2
93
94
Note: See TracBrowser for help on using the repository browser.