%define upstream_name File-Temp %define upstream_version 0.2310 %{?perl_default_filter} Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Return name and handle of a temporary file safely License: GPL+ or Artistic Group: Development/Perl Url: https://metacpan.org/release/%{upstream_name} Source0: https://cpan.metacpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Carp) BuildRequires: perl(Carp::Heavy) BuildRequires: perl(Cwd) BuildRequires: perl(Exporter) >= 5.570.0 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl) >= 1.30.0 BuildRequires: perl(File::Path) >= 2.60.0 BuildRequires: perl(File::Spec) >= 0.800.0 BuildRequires: perl(FileHandle) BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Seekable) BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Symbol) BuildRequires: perl(Test::More) BuildRequires: perl(constant) BuildRequires: perl(overload) BuildRequires: perl(parent) >= 0.221.0 BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildArch: noarch %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 filehandle of a temporary file. The tempdir() function can be used to create a temporary directory. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make_build CFLAGS="%{optflags}" %install %make_install mv %{buildroot}%{_mandir}/man3/File::Temp.3pm \ %{buildroot}%{_mandir}/man3/File::Temp-%{upstream_version}.3pm %check %__make test %files %doc CONTRIBUTING Changes INSTALL LICENSE META.json META.yml MYMETA.yml README %{perl_vendorlib}/File %{_mandir}/*/*