You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.5 KiB
88 lines
2.5 KiB
# We don't really need ExtUtils::MakeMaker ≥ 6.31
|
|
%global old_eumm %(%{__perl} -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.31 ? 1 : 0;' 2>/dev/null || echo 0)
|
|
|
|
Name: perl-Test-EOL
|
|
Version: 0.9
|
|
Release: 5%{?dist}
|
|
Summary: Check the correct line endings in your project
|
|
Group: Development/Libraries
|
|
License: GPL+ or Artistic
|
|
URL: http://search.cpan.org/dist/Test-EOL/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Test-EOL-%{version}.tar.gz
|
|
Patch0: Test-EOL-0.8-old-EU::MM.patch
|
|
Patch1: Test-EOL-0.9-rt59877.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::NoTabs)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
# Pod::Coverage::TrustPod not yet in EPEL
|
|
%if 0%{?fedora}
|
|
%if !%{defined perl_bootstrap}
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
%endif
|
|
%endif
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%description
|
|
This module scans your project/distribution for any perl files (scripts,
|
|
modules, etc.) with Windows line endings. It can also check for trailing
|
|
whitespace.
|
|
|
|
%prep
|
|
%setup -q -n Test-EOL-%{version}
|
|
|
|
# We don't really need ExtUtils::MakeMaker ≥ 6.31
|
|
%if %{old_eumm}
|
|
%patch0 -p1
|
|
%endif
|
|
|
|
# Don't assume tested files are UTF-8 encoded (CPAN RT#59877)
|
|
%patch1 -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%check
|
|
make test RELEASE_TESTING=1
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes LICENSE README
|
|
%{perl_vendorlib}/Test/
|
|
%{_mandir}/man3/Test::EOL.3pm*
|
|
|
|
%changelog
|
|
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-4
|
|
- Perl mass rebuild
|
|
- Add macro perl_bootstrap
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Oct 18 2010 Paul Howarth <paul@city-fan.org> 0.9-2
|
|
- Don't assume tested files are UTF-8 encoded (CPAN RT#59877)
|
|
|
|
* Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> 0.9-1
|
|
- Update to 0.9 (fix warnings on very old perls - CPAN RT#58442)
|
|
- Use DESTDIR instead of PERL_INSTALL_ROOT
|
|
- Add %%{?perl_default_filter}
|
|
|
|
* Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> 0.8-1
|
|
- Initial RPM version
|