perl-Test-EOL/perl-Test-EOL.spec
Stephan Kulow 1cb0029493 - updated to 1.1
- Fix test fails on < 5.8 perls
    - Fix t/13-latin1.t failures on Win32 and under TB1.5
    - Fix misleading test failure diagnostics when only issue are
      trailing whitespaces
    - No longer blindly assume utf8 on input files (RT#59877)
    - Properly document testing options
    - Fix warnings on very old perls (paul@city-fan.org)
      (Closes: RT#58442)
    - Fix warnings on very old perls (paul@city-fan.org)
      (Closes: RT#58442)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-EOL?expand=0&rev=10
2012-02-16 08:20:13 +00:00

64 lines
1.8 KiB
RPMSpec

#
# spec file for package perl-Test-EOL
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Test-EOL
Version: 1.1
Release: 0
%define cpan_name Test-EOL
Summary: Check the correct line endings in your project
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-EOL/
Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
#BuildRequires: perl(Test::EOL)
%{perl_requires}
%description
This module scans your project/distribution for any perl files (scripts,
modules, etc) for the presence of windows line endings.
%prep
%setup -q -n %{cpan_name}-%{version}
# MANUAL BEGIN
%if 0%{?sles_version} == 10
%{__perl} -p -i -e 's|6.31|6.30|' Makefile.PL
%endif
# MANUAL END
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog