diff --git a/.gitignore b/.gitignore index e69de29..617c487 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Encode-Newlines-0.04.tar.gz diff --git a/perl-Encode-Newlines.spec b/perl-Encode-Newlines.spec new file mode 100644 index 0000000..a4cd308 --- /dev/null +++ b/perl-Encode-Newlines.spec @@ -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 - 0.04-1 +- Initial release diff --git a/sources b/sources index e69de29..f2ee98c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +273d361e51c0a641410085d97ec2d32d Encode-Newlines-0.04.tar.gz