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 |
|
---|
8 | Name: perl-YAML-Syck
|
---|
9 | Version: 1.30
|
---|
10 | Release: 1%{?dist}
|
---|
11 | Summary: Fast, lightweight YAML loader and dumper
|
---|
12 | License: BSD and MIT
|
---|
13 | URL: http://search.cpan.org/dist/YAML-Syck/
|
---|
14 | Vendor: bww bitwise works GmbH
|
---|
15 | Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz
|
---|
16 | BuildRequires: coreutils
|
---|
17 | BuildRequires: findutils
|
---|
18 | BuildRequires: gcc
|
---|
19 | BuildRequires: make
|
---|
20 | #BuildRequires: perl-interpreter
|
---|
21 | BuildRequires: perl-devel
|
---|
22 | BuildRequires: perl-generators
|
---|
23 | # Keep bundled inc::Module::Install to break cycle
|
---|
24 | # perl-Module-Install â perl-YAML-Tiny â perl-YAML-Syck
|
---|
25 | BuildRequires: perl(Cwd)
|
---|
26 | BuildRequires: perl(File::Path)
|
---|
27 | BuildRequires: perl(File::Spec)
|
---|
28 | BuildRequires: perl(lib)
|
---|
29 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
30 | # Run-time
|
---|
31 | BuildRequires: perl(constant)
|
---|
32 | # DynaLoader not used if XSLoader is available
|
---|
33 | BuildRequires: perl(Exporter)
|
---|
34 | BuildRequires: perl(strict)
|
---|
35 | BuildRequires: perl(vars)
|
---|
36 | BuildRequires: 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
|
---|
49 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
50 | Requires: perl(XSLoader)
|
---|
51 |
|
---|
52 | # Avoid provides for private perl objects
|
---|
53 | %{?perl_default_filter}
|
---|
54 |
|
---|
55 | %description
|
---|
56 | This module provides a Perl interface to the libsyck data serialization
|
---|
57 | library. It exports the Dump and Load functions for converting Perl data
|
---|
58 | structures 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
|
---|
64 | rm -rvf inc/{parent.pm,PerlIO.pm,Scalar/,Test/}
|
---|
65 |
|
---|
66 | %build
|
---|
67 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
---|
68 | make %{?_smp_mflags}
|
---|
69 | make manifypods
|
---|
70 |
|
---|
71 | %install
|
---|
72 | make pure_install DESTDIR=%{buildroot}
|
---|
73 | find %{buildroot} -type f -name .packlist -delete
|
---|
74 | find %{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 |
|
---|