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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 505f02a0b59c81d126e4cab92915f142ed390dcc
Author: Ruediger Landmann <r.landmann@xxxxxxxxxx>
Date:   Wed Dec 22 11:07:42 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@xxxxxxxxxx> 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
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux