1 | # Test using JSON::MaybeXS instead of JSON::PP
|
---|
2 | #%if ! (0%{?rhel})
|
---|
3 | #%{bcond_without perl_YAML_Tiny_enables_JSON_MaybeX_test}
|
---|
4 | #%else
|
---|
5 | #%{bcond_with perl_YAML_Tiny_enables_JSON_MaybeX_test}
|
---|
6 | #%endif
|
---|
7 |
|
---|
8 | Name: perl-YAML-Tiny
|
---|
9 | Version: 1.73
|
---|
10 | Release: 1%{?dist}
|
---|
11 | Summary: Read/Write YAML files with as little code as possible
|
---|
12 | License: GPL+ or Artistic
|
---|
13 | Group: Development/Libraries
|
---|
14 | URL: http://search.cpan.org/dist/YAML-Tiny/
|
---|
15 | Vendor: bww bitwise works GmbH
|
---|
16 | Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/YAML-Tiny-%{version}.tar.gz
|
---|
17 | BuildArch: noarch
|
---|
18 | # Module Build
|
---|
19 | BuildRequires: coreutils
|
---|
20 | BuildRequires: findutils
|
---|
21 | BuildRequires: make
|
---|
22 | BuildRequires: perl-generators
|
---|
23 | #BuildRequires: perl-interpreter
|
---|
24 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
25 | # Module Runtime
|
---|
26 | BuildRequires: perl(B)
|
---|
27 | BuildRequires: perl(Carp)
|
---|
28 | BuildRequires: perl(Exporter)
|
---|
29 | BuildRequires: perl(Fcntl)
|
---|
30 | BuildRequires: perl(Scalar::Util)
|
---|
31 | BuildRequires: perl(strict)
|
---|
32 | # Test Suite
|
---|
33 | #BuildRequires: perl(blib)
|
---|
34 | #BuildRequires: perl(CPAN::Meta) >= 2.120900
|
---|
35 | #BuildRequires: perl(File::Basename)
|
---|
36 | #BuildRequires: perl(File::Find)
|
---|
37 | #BuildRequires: perl(File::Spec) >= 0.80
|
---|
38 | #BuildRequires: perl(File::Spec::Functions)
|
---|
39 | #BuildRequires: perl(File::Temp) >= 0.19
|
---|
40 | #BuildRequires: perl(Getopt::Long)
|
---|
41 | #BuildRequires: perl(IO::Dir)
|
---|
42 | #%if %{with perl_YAML_Tiny_enables_JSON_MaybeX_test}
|
---|
43 | #BuildRequires: perl(JSON::MaybeXS) >= 1.001000
|
---|
44 | #%endif
|
---|
45 | BuildRequires: perl(JSON::PP)
|
---|
46 | BuildRequires: perl(lib)
|
---|
47 | BuildRequires: perl(List::Util)
|
---|
48 | BuildRequires: perl(Test::More) >= 0.88
|
---|
49 | BuildRequires: perl(utf8)
|
---|
50 | BuildRequires: perl(vars)
|
---|
51 | BuildRequires: perl(warnings)
|
---|
52 | BuildRequires: perl(YAML)
|
---|
53 | BuildRequires: perl(YAML::Syck)
|
---|
54 | BuildRequires: perl(YAML::XS)
|
---|
55 | # Runtime
|
---|
56 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
57 | Requires: perl(Carp)
|
---|
58 | Requires: perl(Exporter)
|
---|
59 | Requires: perl(Fcntl)
|
---|
60 | Requires: perl(Scalar::Util)
|
---|
61 |
|
---|
62 | %description
|
---|
63 | YAML::Tiny is a Perl class for reading and writing YAML-style files,
|
---|
64 | written with as little code as possible, reducing load time and
|
---|
65 | memory overhead.
|
---|
66 |
|
---|
67 | %prep
|
---|
68 | %setup -q -n YAML-Tiny-%{version}
|
---|
69 |
|
---|
70 | %build
|
---|
71 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
72 | make %{?_smp_mflags}
|
---|
73 | make manifypods
|
---|
74 |
|
---|
75 | %install
|
---|
76 | make pure_install DESTDIR=%{buildroot}
|
---|
77 | find %{buildroot} -type f -name .packlist -delete
|
---|
78 | %{_fixperms} -c %{buildroot}
|
---|
79 |
|
---|
80 | %check
|
---|
81 | #make test
|
---|
82 |
|
---|
83 | %files
|
---|
84 | %license LICENSE
|
---|
85 | %doc Changes CONTRIBUTING README
|
---|
86 | %{perl_vendorlib}/YAML/
|
---|
87 | #%{_mandir}/man3/YAML::Tiny.3*
|
---|
88 | %{_mandir}/man3/*.3*
|
---|
89 |
|
---|
90 | %changelog
|
---|
91 | * Thu May 03 2018 Elbert Pol <elbert.pol@gmail.com> - 1.73-1
|
---|
92 | - initial rpm for OS2
|
---|