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