1 | # Run test
|
---|
2 | #%if ! (0%{?rhel})
|
---|
3 | #%bcond_without perl_YAML_enables_test
|
---|
4 | #%else
|
---|
5 | #%bcond_with perl_YAML_enables_test
|
---|
6 | #%endif
|
---|
7 |
|
---|
8 | Name: perl-YAML
|
---|
9 | Version: 1.24
|
---|
10 | Release: 2%{?dist}
|
---|
11 | Summary: YAML Ain't Markup Language (tm)
|
---|
12 | License: GPL+ or Artistic
|
---|
13 | Vendor: bww bitwise works GmbH
|
---|
14 | URL: http://search.cpan.org/dist/YAML/
|
---|
15 | Source0: http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/YAML-%{version}.tar.gz
|
---|
16 | BuildArch: noarch
|
---|
17 | # Module Build
|
---|
18 | BuildRequires: coreutils
|
---|
19 | BuildRequires: make
|
---|
20 | #BuildRequires: perl-interpreter
|
---|
21 | BuildRequires: perl-generators
|
---|
22 | BuildRequires: perl(ExtUtils::MakeMaker) > 6.63
|
---|
23 | # Module Runtime
|
---|
24 | BuildRequires: perl(B)
|
---|
25 | BuildRequires: perl(B::Deparse)
|
---|
26 | BuildRequires: perl(Carp)
|
---|
27 | BuildRequires: perl(constant)
|
---|
28 | BuildRequires: perl(Exporter)
|
---|
29 | BuildRequires: perl(overload)
|
---|
30 | BuildRequires: perl(Scalar::Util)
|
---|
31 | BuildRequires: perl(strict)
|
---|
32 | BuildRequires: perl(warnings)
|
---|
33 | # Test Suite
|
---|
34 | # Avoid circular build deps Test::YAML â Test::Base â YAML when bootstrapping
|
---|
35 | #%if %{with perl_YAML_enables_test} && !%{defined perl_bootstrap}
|
---|
36 | #BuildRequires: perl(Data::Dumper)
|
---|
37 | #BuildRequires: perl(File::Find)
|
---|
38 | #BuildRequires: perl(IO::File)
|
---|
39 | #BuildRequires: perl(IO::Pipe)
|
---|
40 | #BuildRequires: perl(lib)
|
---|
41 | #BuildRequires: perl(Test::More) >= 0.88
|
---|
42 | #BuildRequires: perl(Test::Pod) >= 1.41
|
---|
43 | #BuildRequires: perl(Test::YAML) >= 1.05
|
---|
44 | #BuildRequires: perl(utf8)
|
---|
45 | #%endif
|
---|
46 | # Runtime
|
---|
47 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
48 | Requires: perl(B::Deparse)
|
---|
49 | Requires: perl(Carp)
|
---|
50 |
|
---|
51 | # Filter private provides:
|
---|
52 | # perl(yaml_mapping) perl(yaml_scalar) perl(yaml_sequence)
|
---|
53 | %global __provides_exclude ^perl\\(yaml_
|
---|
54 |
|
---|
55 | %description
|
---|
56 | The YAML.pm module implements a YAML Loader and Dumper based on the
|
---|
57 | YAML 1.0 specification. http://www.yaml.org/spec/
|
---|
58 | YAML is a generic data serialization language that is optimized for
|
---|
59 | human readability. It can be used to express the data structures of
|
---|
60 | most modern programming languages, including Perl.
|
---|
61 | For information on the YAML syntax, please refer to the YAML
|
---|
62 | specification.
|
---|
63 |
|
---|
64 | %prep
|
---|
65 | %setup -q -n YAML-%{version}
|
---|
66 |
|
---|
67 | %build
|
---|
68 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
---|
69 | make %{?_smp_mflags}
|
---|
70 |
|
---|
71 | %install
|
---|
72 | make install DESTDIR=%{buildroot}
|
---|
73 | find %{buildroot} -type f -name .packlist -delete
|
---|
74 | find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
|
---|
75 |
|
---|
76 | %check
|
---|
77 | # Avoid circular build deps Test::YAML â Test::Base â YAML when bootstrapping
|
---|
78 | #%if %{with perl_YAML_enables_test} && !%{defined perl_bootstrap}
|
---|
79 | #make test
|
---|
80 | #%endif
|
---|
81 |
|
---|
82 | %files
|
---|
83 | %license LICENSE
|
---|
84 | %doc Changes CONTRIBUTING README
|
---|
85 | %dir %{perl_vendorlib}/YAML/
|
---|
86 | %dir %{perl_vendorlib}/YAML/Dumper/
|
---|
87 | %dir %{perl_vendorlib}/YAML/Loader/
|
---|
88 | %doc %{perl_vendorlib}/YAML.pod
|
---|
89 | %doc %{perl_vendorlib}/YAML/Any.pod
|
---|
90 | %doc %{perl_vendorlib}/YAML/Dumper.pod
|
---|
91 | %doc %{perl_vendorlib}/YAML/Dumper/Base.pod
|
---|
92 | %doc %{perl_vendorlib}/YAML/Error.pod
|
---|
93 | %doc %{perl_vendorlib}/YAML/Loader.pod
|
---|
94 | %doc %{perl_vendorlib}/YAML/Loader/Base.pod
|
---|
95 | %doc %{perl_vendorlib}/YAML/Marshall.pod
|
---|
96 | %doc %{perl_vendorlib}/YAML/Node.pod
|
---|
97 | %doc %{perl_vendorlib}/YAML/Tag.pod
|
---|
98 | %doc %{perl_vendorlib}/YAML/Types.pod
|
---|
99 | %{perl_vendorlib}/YAML.pm
|
---|
100 | %{perl_vendorlib}/YAML/Any.pm
|
---|
101 | %{perl_vendorlib}/YAML/Dumper.pm
|
---|
102 | %{perl_vendorlib}/YAML/Dumper/Base.pm
|
---|
103 | %{perl_vendorlib}/YAML/Error.pm
|
---|
104 | %{perl_vendorlib}/YAML/Loader.pm
|
---|
105 | %{perl_vendorlib}/YAML/Loader/Base.pm
|
---|
106 | %{perl_vendorlib}/YAML/Marshall.pm
|
---|
107 | %{perl_vendorlib}/YAML/Mo.pm
|
---|
108 | %{perl_vendorlib}/YAML/Node.pm
|
---|
109 | %{perl_vendorlib}/YAML/Tag.pm
|
---|
110 | %{perl_vendorlib}/YAML/Types.pm
|
---|
111 | #%{_mandir}/man3/YAML.3*
|
---|
112 | #%{_mandir}/man3/YAML::Any.3*
|
---|
113 | #%{_mandir}/man3/YAML::Dumper.3*
|
---|
114 | #%{_mandir}/man3/YAML::Dumper::Base.3*
|
---|
115 | #%{_mandir}/man3/YAML::Error.3*
|
---|
116 | #%{_mandir}/man3/YAML::Loader.3*
|
---|
117 | #%{_mandir}/man3/YAML::Loader::Base.3*
|
---|
118 | #%{_mandir}/man3/YAML::Marshall.3*
|
---|
119 | #%{_mandir}/man3/YAML::Node.3*
|
---|
120 | #%{_mandir}/man3/YAML::Tag.3*
|
---|
121 | #%{_mandir}/man3/YAML::Types.3*
|
---|
122 | #%{_mandir}/man3/*.3*
|
---|
123 |
|
---|
124 | %changelog
|
---|
125 | * Thu May 03 2018 Elbert Pol <elbert.pol@gmail.com> - 1.24-1
|
---|
126 | - initial rpm for OS2
|
---|
127 |
|
---|