commit 42abd2609be3ccfdd50e0907237849fa163624fd
Author: Bill Pemberton <wf...@virginia.edu>
Date:   Wed Mar 21 13:05:24 2012 -0400

    Initial import (#605674).

 .gitignore          |    1 +
 perl-IO-InSitu.spec |   83 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c2933eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/IO-InSitu-0.0.2.tar.gz
diff --git a/perl-IO-InSitu.spec b/perl-IO-InSitu.spec
new file mode 100644
index 0000000..e2e40a7
--- /dev/null
+++ b/perl-IO-InSitu.spec
@@ -0,0 +1,83 @@
+Name:          perl-IO-InSitu
+Version:       0.0.2
+Release:       6%{?dist}
+Summary:       Avoid clobbering files opened for both input and output
+License:       GPL+ or Artistic
+Group:         Development/Libraries
+URL:           http://search.cpan.org/dist/IO-InSitu/
+Source0:       
http://www.cpan.org/authors/id/D/DC/DCONWAY/IO-InSitu-%{version}.tar.gz
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:     noarch
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(version)
+BuildRequires: perl(base)
+BuildRequires: perl(Carp)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(IO::File)
+Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Filter from provides
+%global __provides_exclude ^perl\\((IO::File::SE)\\)
+
+
+%description
+This module provides a function called open_rw(), that is passed two
+file names and returns two handles, one open for reading and the other
+for writing. It's like doing two separate open() calls, except that it
+detects cases where the input and output file are the same, and avoids
+clobbering the input file when reopening it for output.
+
+%prep
+%setup -q -n IO-InSitu-%{version}
+
+# Filter out bogus provides (prior to rpm 4.9)
+%global provfilt /bin/sh -c "%{__perl_provides} | grep -Evx 
'perl(IO::File::SE)'"
+%define __perl_provides %{provfilt}
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/IO/
+%{_mandir}/man3/IO::InSitu.3pm*
+
+%changelog
+* Wed Mar 21 2012 Bill Pemberton <wf...@virginia.eduu> - 0.0.2-6
+- Remove command macro from MODULE_COMPAT
+
+* Wed Mar 21 2012 Bill Pemberton <wf...@virginia.edu> - 0.0.2-5
+- Add provides filters that work with all supported distributions
+- Add BuildRequires for dual-lived modules
+- Don't remove empty directories from the buildroot as it's uneeded
+- Remove use of command macros
+
+* Wed Dec  1 2010 Bill Pemberton <wf...@virginia.edu> 0.0.2-4
+- Fix rpmlint warning about mixed spaces and tabs
+
+* Tue Nov 30 2010 Bill Pemberton <wf...@virginia.edu> 0.0.2-3
+- Add perl(version) back to BuildRequires
+
+* Tue Nov 30 2010 Bill Pemberton <wf...@virginia.edu> 0.0.2-2
+- Clean up spec file to address suggestions from Paul Howarth
+
+* Fri May 28 2010 Bill Pemberton <wf...@virginia.edu> 0.0.2-1
+- Initial specfile based on version generated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..dc30e6c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+69e55eda0c3d0e5597b88a9ccf9fbfc3  IO-InSitu-0.0.2.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to