From bd8804f26ff1e7ae91dd39ecb3d0efe412d23168 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 21:56:25 +0000 Subject: import perl-File-Inplace-0.20-8.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc881b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/File-Inplace-0.20.tar.gz diff --git a/.perl-File-Inplace.metadata b/.perl-File-Inplace.metadata new file mode 100644 index 0000000..1c90cb4 --- /dev/null +++ b/.perl-File-Inplace.metadata @@ -0,0 +1 @@ +57b03fda3dc87721f46a0b0418844b440abfab7b SOURCES/File-Inplace-0.20.tar.gz diff --git a/SPECS/perl-File-Inplace.spec b/SPECS/perl-File-Inplace.spec new file mode 100644 index 0000000..141f1d6 --- /dev/null +++ b/SPECS/perl-File-Inplace.spec @@ -0,0 +1,73 @@ +Name: perl-File-Inplace +Version: 0.20 +Release: 8%{?dist} +Summary: Perl module for in-place editing of files +License: (GPL+ or Artistic) +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Inplace/ +Source0: http://www.cpan.org/modules/by-module/File/File-Inplace-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +File::Inplace is a perl module intended to ease the common task of editing +a file in-place. Inspired by variations of perl's -i option, this module is +intended for somewhat more structured and reusable editing than command +line perl typically allows. File::Inplace endeavors to guarantee file +integrity; that is, either all of the changes made will be saved to the +file, or none will. It also offers functionality such as backup creation, +automatic field splitting per-line, automatic chomping/unchomping, and +aborting edits partially through without affecting the original file. + +%prep +%setup -q -n File-Inplace-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.20-8 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.20-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 0.20-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 0.20-5 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 17 2011 Marcela Mašláňová - 0.20-3 +- Perl mass rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 15 2010 Rüdiger Landmann 0.20-1 +- Specfile autogenerated by cpanspec 1.78.