1 | # We don't really need ExtUtils::MakeMaker > 6.30 |
---|
2 | %global old_eumm %(perl -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.30 ? 1 : 0;' 2>/dev/null || echo 0) |
---|
3 | |
---|
4 | Name: perl-Test-EOL |
---|
5 | Version: 1.5 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Summary: Check the correct line endings in your project |
---|
8 | Group: Development/Libraries |
---|
9 | License: GPL+ or Artistic |
---|
10 | URL: http://search.cpan.org/dist/Test-EOL/ |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/Test-EOL-%{version}.tar.gz |
---|
12 | Patch0: Test-EOL-1.0-old-EU::MM.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | BuildArch: noarch |
---|
16 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
17 | BuildRequires: perl(File::Find) |
---|
18 | BuildRequires: perl(File::Spec) |
---|
19 | BuildRequires: perl(FindBin) |
---|
20 | # Simplify breaking dependency loops at bootstrap time |
---|
21 | %if 0%{!?perl_bootstrap:1} |
---|
22 | BuildRequires: perl(Pod::Coverage::TrustPod) |
---|
23 | %endif |
---|
24 | BuildRequires: perl(Test::Builder) |
---|
25 | BuildRequires: perl(Test::More) |
---|
26 | BuildRequires: perl(Test::NoTabs) |
---|
27 | BuildRequires: perl(Test::Pod) |
---|
28 | BuildRequires: perl(Test::Pod::Coverage) |
---|
29 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
30 | |
---|
31 | %description |
---|
32 | This module scans your project/distribution for any perl files (scripts, |
---|
33 | modules, etc.) with Windows line endings. It can also check for trailing |
---|
34 | whitespace. |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q -n Test-EOL-%{version} |
---|
38 | |
---|
39 | # We don't really need ExtUtils::MakeMaker > 6.30 |
---|
40 | %if %{old_eumm} |
---|
41 | %patch0 -p1 |
---|
42 | %endif |
---|
43 | |
---|
44 | %build |
---|
45 | perl Makefile.PL INSTALLDIRS=vendor |
---|
46 | make %{?_smp_mflags} |
---|
47 | |
---|
48 | %install |
---|
49 | rm -rf %{buildroot} |
---|
50 | make pure_install DESTDIR=%{buildroot} |
---|
51 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
52 | find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null |
---|
53 | %{_fixperms} %{buildroot} |
---|
54 | |
---|
55 | %check |
---|
56 | make test RELEASE_TESTING=1 |
---|
57 | |
---|
58 | %clean |
---|
59 | rm -rf %{buildroot} |
---|
60 | |
---|
61 | %files |
---|
62 | %defattr(-,root,root,-) |
---|
63 | %doc Changes LICENSE README |
---|
64 | %{perl_vendorlib}/Test/ |
---|
65 | %{_mandir}/man3/Test::EOL.3pm* |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.5-1 |
---|
69 | - updated to 1.5 |
---|
70 | - built with perl 5.16.3 |
---|
71 | |
---|
72 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1-1 |
---|
73 | - initial build for Vine Linux |
---|
74 | |
---|
75 | * Mon Jan 16 2012 Paul Howarth <paul@city-fan.org> 1.1-1 |
---|
76 | - Update to 1.1 |
---|
77 | - Fix test fails on < 5.8 perls |
---|
78 | - Fix t/13-latin1.t failures on Win32 and under TB1.5 |
---|
79 | - Add buildreqs for required core modules, which might be dual-lived |
---|
80 | |
---|
81 | * Thu Jan 5 2012 Paul Howarth <paul@city-fan.org> 1.0-1 |
---|
82 | - Update to 1.0 |
---|
83 | - Fix misleading test failure diagnostics when only issue is trailing |
---|
84 | whitespace |
---|
85 | - No longer blindly assume utf8 on input files (CPAN RT#59877) |
---|
86 | - Properly document testing options |
---|
87 | - This release by RIBASUSHI -> update source URL |
---|
88 | - Drop upstreamed patch for CPAN RT#59877 |
---|
89 | - Update patch for building with old ExtUtils::MakeMaker versions |
---|
90 | |
---|
91 | * Thu Jun 30 2011 Paul Howarth <paul@city-fan.org> - 0.9-5 |
---|
92 | - Restore EPEL-4 compatibility |
---|
93 | - perl(Pod::Coverage::TrustPod) is available everywhere now |
---|
94 | - %%{?perl_default_filter} isn't needed for this tiny package |
---|
95 | - Nobody else likes macros for commands |
---|
96 | |
---|
97 | * Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-4 |
---|
98 | - Perl mass rebuild |
---|
99 | - Add macro perl_bootstrap |
---|
100 | |
---|
101 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3 |
---|
102 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
103 | |
---|
104 | * Mon Oct 18 2010 Paul Howarth <paul@city-fan.org> 0.9-2 |
---|
105 | - Don't assume tested files are UTF-8 encoded (CPAN RT#59877) |
---|
106 | |
---|
107 | * Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> 0.9-1 |
---|
108 | - Update to 0.9 (fix warnings on very old perls - CPAN RT#58442) |
---|
109 | - Use DESTDIR instead of PERL_INSTALL_ROOT |
---|
110 | - Add %%{?perl_default_filter} |
---|
111 | |
---|
112 | * Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> 0.8-1 |
---|
113 | - Initial RPM version |
---|