This commit is contained in:
Petr Písař 2013-03-26 17:56:56 +01:00
parent 78e499d9e1
commit 6d329db6e1
3 changed files with 78 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/File-Temp-0.23.tar.gz

76
perl-File-Temp.spec Normal file
View File

@ -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 <ppisar@redhat.com> 0.23-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
0db571dc413db53c5bcbba41e3c3cadc File-Temp-0.23.tar.gz