1 | # Run extra tests
|
---|
2 | %if 0%{?rhel}
|
---|
3 | %bcond_with perl_Config_Tiny_enables_extra_test
|
---|
4 | %else
|
---|
5 | %bcond_without perl_Config_Tiny_enables_extra_test
|
---|
6 | %endif
|
---|
7 |
|
---|
8 | Name: perl-Config-Tiny
|
---|
9 | Version: 2.23
|
---|
10 | Release: 1%{?dist}
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 | Summary: Perl module for reading and writing .ini style configuration files
|
---|
13 | Group: Development/Libraries
|
---|
14 | License: GPL+ or Artistic
|
---|
15 | URL: https://metacpan.org/release/Config-Tiny
|
---|
16 | Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Config-Tiny-%{version}.tgz
|
---|
17 | BuildArch: noarch
|
---|
18 | # Module Build
|
---|
19 | BuildRequires: coreutils
|
---|
20 | BuildRequires: findutils
|
---|
21 | BuildRequires: make
|
---|
22 | #BuildRequires: perl-interpreter
|
---|
23 | BuildRequires: perl-generators
|
---|
24 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
25 | BuildRequires: perl(warnings)
|
---|
26 | # Module Runtime
|
---|
27 | BuildRequires: perl(strict)
|
---|
28 | # Test Suite
|
---|
29 | BuildRequires: perl(File::Spec) >= 3.30
|
---|
30 | BuildRequires: perl(File::Temp) >= 0.22
|
---|
31 | BuildRequires: perl(Test::More) >= 0.47
|
---|
32 | BuildRequires: perl(UNIVERSAL)
|
---|
33 | BuildRequires: perl(utf8)
|
---|
34 | #%if %{with perl_Config_Tiny_enables_extra_test}
|
---|
35 | # Extra Tests
|
---|
36 | #BuildRequires: perl(Test::CPAN::Meta) >= 0.17
|
---|
37 | # Test::MinimumVersion â Perl::MinimumVersion â Perl::Critic â Config::Tiny
|
---|
38 | #%if 0%{!?perl_bootstrap:1}
|
---|
39 | #BuildRequires: perl(Test::MinimumVersion) >= 0.101080
|
---|
40 | #%endif
|
---|
41 | #BuildRequires: perl(Test::Pod) >= 1.44
|
---|
42 | #%endif
|
---|
43 | # Runtime
|
---|
44 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
45 |
|
---|
46 | %description
|
---|
47 | Config::Tiny is a Perl module designed for reading and writing .ini
|
---|
48 | style configuration files. It is designed for simplicity and ease of
|
---|
49 | use, and thus only supports the most basic operations.
|
---|
50 |
|
---|
51 | %prep
|
---|
52 | %setup -q -n Config-Tiny-%{version}
|
---|
53 |
|
---|
54 | %build
|
---|
55 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
56 | make %{?_smp_mflags}
|
---|
57 | make manifypods
|
---|
58 |
|
---|
59 | %install
|
---|
60 | make pure_install DESTDIR=%{buildroot}
|
---|
61 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
62 | %{_fixperms} %{buildroot}
|
---|
63 |
|
---|
64 | %check
|
---|
65 | #make test
|
---|
66 | #%if %{with perl_Config_Tiny_enables_extra_test}
|
---|
67 | #make test TEST_FILES="xt/*.t" AUTOMATED_TESTING=1
|
---|
68 | #%endif
|
---|
69 |
|
---|
70 | %files
|
---|
71 | %license LICENSE
|
---|
72 | %doc Changes README
|
---|
73 | %{perl_vendorlib}/Config/
|
---|
74 | %{_mandir}/man3/*.3*
|
---|
75 |
|
---|
76 | %changelog
|
---|
77 | * Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 2.23-1
|
---|
78 | - First OS/2 rpm release
|
---|