[perl-File-Inplace/f14/master] New package

RĂ¼diger Landmann rlandmann at fedoraproject.org
Wed Dec 22 00:30:49 UTC 2010


commit c942370c5b3e5544ec5a27c0c7fd5521d8de2807
Author: Ruediger Landmann <r.landmann at redhat.com>
Date:   Wed Dec 22 10:27:43 2010 +1000

    New package

 .gitignore             |    1 +
 perl-File-Inplace.spec |   52 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4707b0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/File-Inplace-0.20.tar.gz
diff --git a/perl-File-Inplace.spec b/perl-File-Inplace.spec
new file mode 100644
index 0000000..134f6d2
--- /dev/null
+++ b/perl-File-Inplace.spec
@@ -0,0 +1,52 @@
+Name:           perl-File-Inplace
+Version:        0.20
+Release:        1%{?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
+* Wed Dec 15 2010 RĂ¼diger Landmann <r.landmann at redhat.com> 0.20-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..356382d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fae0848ebef6969502dde017805a31a1  File-Inplace-0.20.tar.gz



More information about the perl-devel mailing list