source: spec/trunk/SPECS/perl-YAML.spec@ 1567

Last change on this file since 1567 was 1395, checked in by tellie, 7 years ago

spec: perl-YAML: Release version 1.24-2.

File size: 3.9 KB
Line 
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
8Name: perl-YAML
9Version: 1.24
10Release: 2%{?dist}
11Summary: YAML Ain't Markup Language (tm)
12License: GPL+ or Artistic
13Vendor: bww bitwise works GmbH
14URL: http://search.cpan.org/dist/YAML/
15Source0: http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/YAML-%{version}.tar.gz
16BuildArch: noarch
17# Module Build
18BuildRequires: coreutils
19BuildRequires: make
20#BuildRequires: perl-interpreter
21BuildRequires: perl-generators
22BuildRequires: perl(ExtUtils::MakeMaker) > 6.63
23# Module Runtime
24BuildRequires: perl(B)
25BuildRequires: perl(B::Deparse)
26BuildRequires: perl(Carp)
27BuildRequires: perl(constant)
28BuildRequires: perl(Exporter)
29BuildRequires: perl(overload)
30BuildRequires: perl(Scalar::Util)
31BuildRequires: perl(strict)
32BuildRequires: 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
47Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
48Requires: perl(B::Deparse)
49Requires: 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
56The YAML.pm module implements a YAML Loader and Dumper based on the
57YAML 1.0 specification. http://www.yaml.org/spec/
58YAML is a generic data serialization language that is optimized for
59human readability. It can be used to express the data structures of
60most modern programming languages, including Perl.
61For information on the YAML syntax, please refer to the YAML
62specification.
63
64%prep
65%setup -q -n YAML-%{version}
66
67%build
68perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
69make %{?_smp_mflags}
70
71%install
72make install DESTDIR=%{buildroot}
73find %{buildroot} -type f -name .packlist -delete
74find %{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
Note: See TracBrowser for help on using the repository browser.