Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 36647138
en ru br
ALT Linux repos

Group :: Development/Other
RPM: perl-File-Inplace

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(IO/ perl(IO/ perl-podlators
# END SourceDeps(oneline)
# see
%define _localstatedir %{_var}
Name:           perl-File-Inplace
Version:        0.20
Release:        alt2_24
Summary:        Perl module for in-place editing of files
License:        (GPL+ or Artistic)
BuildArch:      noarch
BuildRequires:  rpm-build-perl
BuildRequires:  perl(ExtUtils/
BuildRequires:  perl(Test/

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.

%setup -q -n File-Inplace-%{version}

/usr/bin/perl Makefile.PL INSTALLDIRS=vendor



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/*

make test

%doc Changes README


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin