From 6d329db6e104787c09a368fc6e9fd7ab61ec4665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 26 Mar 2013 17:56:56 +0100 Subject: [PATCH] Import --- .gitignore | 1 + perl-File-Temp.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 perl-File-Temp.spec diff --git a/.gitignore b/.gitignore index e69de29..e8e3add 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/File-Temp-0.23.tar.gz diff --git a/perl-File-Temp.spec b/perl-File-Temp.spec new file mode 100644 index 0000000..2f1a4e9 --- /dev/null +++ b/perl-File-Temp.spec @@ -0,0 +1,76 @@ +Name: perl-File-Temp +Version: 0.23 +Release: 1%{?dist} +Summary: Return name and handle of a temporary file safely +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Temp/ +Source0: http://www.cpan.org/authors/id/T/TJ/TJENNESS/File-Temp-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(File::Spec) >= 0.8 +BuildRequires: perl(Module::Build) >= 0.36 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +# Keep Carp::Heavy optional +BuildRequires: perl(constant) +BuildRequires: perl(Cwd) +BuildRequires: perl(Errno) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) >= 1.03 +BuildRequires: perl(File::Path) >= 2.06 +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IO::Seekable) +BuildRequires: perl(overload) +BuildRequires: perl(POSIX) +BuildRequires: perl(Scalar::Util) +# Symbol not needed +BuildRequires: perl(vars) +# VMS::Stdio not needed +# Tests: +BuildRequires: perl(Config) +BuildRequires: perl(FileHandle) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(File::Path) >= 2.06 +Requires: perl(POSIX) + +# Filter unused dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Symbol|VMS::Stdio\\) +# Filter under-specified dependencies +%global __requires_exclude %{__requires_exclude}|^perl\\(File::Path\\)$ + +%description +File::Temp can be used to create and open temporary files in a safe way. +There is both a function interface and an object-oriented interface. The +File::Temp constructor or the tempfile() function can be used to return the +name and the open file handle of a temporary file. The tempdir() function +can be used to create a temporary directory. + +%prep +%setup -q -n File-Temp-%{version} +chmod -x misc/benchmark.pl +%fix_shbang_line misc/benchmark.pl + +%build +perl Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc ChangeLog misc README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Mar 22 2013 Petr Pisar 0.23-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..759e5b9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0db571dc413db53c5bcbba41e3c3cadc File-Temp-0.23.tar.gz