From 5bbf63608b5c213412be2668bd712695eef7efb7 Mon Sep 17 00:00:00 2001 From: Denis Fateyev Date: Feb 10 2016 16:06:46 +0000 Subject: perl-File-Edit-Portable: initial submission (#1285518) --- diff --git a/.gitignore b/.gitignore index e69de29..918da19 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/File-Edit-Portable-1.18.tar.gz diff --git a/perl-File-Edit-Portable.spec b/perl-File-Edit-Portable.spec new file mode 100644 index 0000000..0039c00 --- /dev/null +++ b/perl-File-Edit-Portable.spec @@ -0,0 +1,82 @@ +Name: perl-File-Edit-Portable +Version: 1.18 +Release: 1%{?dist} +Summary: Read and write files while keeping the original line-endings intact +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Edit-Portable/ + +Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STEVEB/File-Edit-Portable-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) + +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Find::Rule) +BuildRequires: perl(File::Temp) +BuildRequires: perl(POSIX) + +# Testing +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Tempdir) +BuildRequires: perl(Mock::Sub) >= 1.06 +BuildRequires: perl(Pod::Coverage) >= 0.18 +BuildRequires: perl(Test::CheckManifest) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The default behavior of perl is to read and write files using the +Operating System's (OS) default record separator (line ending). If you open +a file on an OS where the record separators are that of another OS, things +can and do break. + +%prep +%setup -q -n File-Edit-Portable-%{version} + +%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 -exec rm -f {} \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test RELEASE_TESTING=1 + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Wed Feb 10 2016 Denis Fateyev - 1.18-1 +- Update to 1.18 release + +* Sat Jan 23 2016 Denis Fateyev - 1.16-1 +- Update to 1.16 release + +* Wed Dec 09 2015 Denis Fateyev - 1.11-1 +- Update to 1.11 release + +* Wed Nov 25 2015 Denis Fateyev - 1.10-1 +- Initial release diff --git a/sources b/sources index e69de29..bcdd61c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +59810c08ce3ba240f3402bc3077243b1 File-Edit-Portable-1.18.tar.gz