1 |
%define upstream_name File-Temp |
2 |
%define upstream_version 0.2302 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Return name and handle of a temporary file safely |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Exporter) >= 5.570.0 |
15 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.170.0 |
16 |
BuildRequires: perl(Fcntl) >= 1.30.0 |
17 |
BuildRequires: perl(File::Path) >= 2.60.0 |
18 |
BuildRequires: perl(File::Spec) >= 0.800.0 |
19 |
BuildRequires: perl(File::Temp) |
20 |
BuildRequires: perl(IO::Handle) |
21 |
BuildRequires: perl(IPC::Open3) |
22 |
BuildRequires: perl(Test::More) |
23 |
BuildRequires: perl(parent) >= 0.221.0 |
24 |
BuildArch: noarch |
25 |
|
26 |
%description |
27 |
File::Temp can be used to create and open temporary files in a safe way. There |
28 |
is both a function interface and an object-oriented interface. The File::Temp |
29 |
constructor or the tempfile() function can be used to return the name and the |
30 |
open filehandle of a temporary file. The tempdir() function can be used to |
31 |
create a temporary directory. |
32 |
|
33 |
%prep |
34 |
%setup -q -n %{upstream_name}-%{upstream_version} |
35 |
|
36 |
%build |
37 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
38 |
%make CFLAGS="%{optflags}" |
39 |
|
40 |
%install |
41 |
%makeinstall_std |
42 |
|
43 |
mv %{buildroot}%{_mandir}/man3/File::Temp.3pm \ |
44 |
%{buildroot}%{_mandir}/man3/File::Temp-%{upstream_version}.3pm |
45 |
|
46 |
%check |
47 |
%__make test |
48 |
|
49 |
%files |
50 |
%doc CONTRIBUTING Changes LICENSE META.json META.yml MYMETA.yml README |
51 |
%{perl_vendorlib}/File |
52 |
%{_mandir}/*/* |