parent
50f1a37f34
commit
9a3cd7e610
@ -0,0 +1 @@
|
|||||||
|
/Encode-Newlines-0.04.tar.gz
|
@ -0,0 +1,58 @@
|
|||||||
|
Name: perl-Encode-Newlines
|
||||||
|
Version: 0.04
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Normalize line ending sequences
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: http://search.cpan.org/dist/Encode-Newlines/
|
||||||
|
Source0: http://www.cpan.org/authors/id/A/AU/AUDREYT/Encode-Newlines-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl(inc::Module::Install)
|
||||||
|
BuildRequires: perl(Module::Install::Metadata)
|
||||||
|
BuildRequires: perl(Module::Install::WriteAll)
|
||||||
|
BuildRequires: sed
|
||||||
|
# Run-time
|
||||||
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(constant)
|
||||||
|
BuildRequires: perl(Encode::Encoding)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
# Tests
|
||||||
|
BuildRequires: perl(Encode)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Requires: perl(Carp)
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module provides the CR, LF, CRLF and Native encodings, to aid in
|
||||||
|
normalizing line endings.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Encode-Newlines-%{version}
|
||||||
|
|
||||||
|
# Remove bundled libraries
|
||||||
|
rm -r inc
|
||||||
|
sed -i -e '/^inc\// d' MANIFEST
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Changes README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Nov 30 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-1
|
||||||
|
- Initial release
|
Loading…
Reference in new issue