forked from pool/perl-File-Temp
- updated to 0.2302
* Drop minimum Perl version back to 5.6 (erroneously bumped by dzil)
* Do not inherit from Exporter (requires Exporter 5.57) (thanks to
Olivier Mengué)
* 'use base ...' => 'use parent ...' as parent is lighter (thanks to
Olivier Mengué)
* dist.ini: Managed with Dist::Zilla now; generates Makefile.PL
to avoid circular dependency when using Build.PL
* Build.PL: Use Module::Build
* Temp.pm: internally holds absolute path for cleanup (Fixes RT #44924)
* t/rmtree.t: (new) Test temp dir removal explicitly.
* t/tempfile.t: Correctly tests directory removal from chdir.
* Temp.pm: Clean up temp directory on exit even if it is the
current directory. Patch supplied by Ed Avis and fixes RT #45246.
* Temp.pm: Defer unlinking tempfiles if initial unlink fails
instad of croaking; fixes problems on NFS (RT #82720)
* Temp.pm: Allow leading template to new() for consistency with
newdir()
* Temp.pm: Calling tempfile or tempdir as a class method now
produce a more useful fatal error message
* Temp.pm: new/newdir/tempfile/tempdir now all allow either
a leading template argument or a TEMPLATE option
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Temp?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
f8d09d44ab
commit
be31e8fb6e
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:989f9222497e6c056af3478018316cf634dba946e9a85d4d2b5a09c5351a4785
|
|
||||||
size 38352
|
|
||||||
3
File-Temp-0.2302.tar.gz
Normal file
3
File-Temp-0.2302.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a5dbeced856222bd17e13c903dee9b133757e7c19fb476a1598dde03dc80d1b0
|
||||||
|
size 59476
|
||||||
@@ -1,3 +1,42 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 4 19:54:10 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.2302
|
||||||
|
* Drop minimum Perl version back to 5.6 (erroneously bumped by dzil)
|
||||||
|
* Do not inherit from Exporter (requires Exporter 5.57) (thanks to
|
||||||
|
Olivier Mengué)
|
||||||
|
* 'use base ...' => 'use parent ...' as parent is lighter (thanks to
|
||||||
|
Olivier Mengué)
|
||||||
|
|
||||||
|
* dist.ini: Managed with Dist::Zilla now; generates Makefile.PL
|
||||||
|
to avoid circular dependency when using Build.PL
|
||||||
|
|
||||||
|
* Build.PL: Use Module::Build
|
||||||
|
|
||||||
|
* Temp.pm: internally holds absolute path for cleanup (Fixes RT #44924)
|
||||||
|
|
||||||
|
* t/rmtree.t: (new) Test temp dir removal explicitly.
|
||||||
|
|
||||||
|
* t/tempfile.t: Correctly tests directory removal from chdir.
|
||||||
|
|
||||||
|
* Temp.pm: Clean up temp directory on exit even if it is the
|
||||||
|
current directory. Patch supplied by Ed Avis and fixes RT #45246.
|
||||||
|
|
||||||
|
* Temp.pm: Defer unlinking tempfiles if initial unlink fails
|
||||||
|
instad of croaking; fixes problems on NFS (RT #82720)
|
||||||
|
|
||||||
|
* Temp.pm: Allow leading template to new() for consistency with
|
||||||
|
newdir()
|
||||||
|
|
||||||
|
* Temp.pm: Calling tempfile or tempdir as a class method now
|
||||||
|
produce a more useful fatal error message
|
||||||
|
|
||||||
|
* Temp.pm: new/newdir/tempfile/tempdir now all allow either
|
||||||
|
a leading template argument or a TEMPLATE option
|
||||||
|
|
||||||
|
* Temp.pm: Overload numify with refaddr() in same manner as IO::File
|
||||||
|
(closes RT #47397 from Kevin Ryde)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 18 09:12:09 UTC 2011 - coolo@suse.com
|
Fri Nov 18 09:12:09 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-File-Temp
|
# spec file for package perl-File-Temp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,49 +15,63 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-File-Temp
|
Name: perl-File-Temp
|
||||||
|
Version: 0.2302
|
||||||
|
Release: 0
|
||||||
%define cpan_name File-Temp
|
%define cpan_name File-Temp
|
||||||
Summary: Return name and handle of a temporary file safely
|
Summary: return name and handle of a temporary file safely
|
||||||
Version: 0.22
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Release: 1
|
|
||||||
License: artistic
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/perldoc?File::Temp
|
Url: http://search.cpan.org/dist/File-Temp/
|
||||||
Source0: %{cpan_name}-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(File::Path) >= 2.06
|
||||||
BuildRequires: perl(File::Spec) >= 0.8
|
BuildRequires: perl(parent) >= 0.221
|
||||||
BuildRequires: perl(Fcntl) >= 1.03
|
#BuildRequires: perl(Pod::Wordlist)
|
||||||
BuildRequires: perl(File::Path)
|
#BuildRequires: perl(Test::Spelling) >= 0.12
|
||||||
#BuildRequires: perl(Module::Build)
|
Requires: perl(File::Path) >= 2.06
|
||||||
Requires: perl(File::Spec) >= 0.8
|
Requires: perl(parent) >= 0.221
|
||||||
Requires: perl(Fcntl) >= 1.03
|
%{perl_requires}
|
||||||
Requires: perl(File::Path)
|
|
||||||
|
|
||||||
%description
|
%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.
|
||||||
|
|
||||||
%{cpan_name} module for perl
|
The security aspect of temporary file creation is emphasized such that a
|
||||||
|
filehandle and filename are returned together. This helps guarantee that a
|
||||||
|
race condition can not occur where the temporary file is created by another
|
||||||
|
process between checking for the existence of the file and its opening.
|
||||||
|
Additional security levels are provided to check, for example, that the
|
||||||
|
sticky bit is set on world writable directories. See the "safe_level"
|
||||||
|
manpage for more information.
|
||||||
|
|
||||||
File::Temp can be used to create and open temporary files in a safe way.
|
For compatibility with popular C library functions, Perl implementations of
|
||||||
There is both a function interface and an object-oriented interface.
|
the mkstemp() family of functions are provided. These are, mkstemp(),
|
||||||
The File::Temp constructor or the tempfile() function can be used to return
|
mkstemps(), mkdtemp() and mktemp().
|
||||||
the name and the open filehandle of a temporary file. The tempdir() function
|
|
||||||
can be used to create a temporary directory.
|
|
||||||
|
|
||||||
Author: Tim Jenness <tjenness (at) cpan.org>
|
Additionally, implementations of the standard POSIX tmpnam() and tmpfile()
|
||||||
|
functions are provided if required.
|
||||||
|
|
||||||
|
Implementations of mktemp(), tmpnam(), and tempnam() are provided, but
|
||||||
|
should be used with caution since they return only a filename that was
|
||||||
|
valid when function was called, so cannot guarantee that the file will not
|
||||||
|
exist by the time the caller opens the filename.
|
||||||
|
|
||||||
|
Filehandles returned by these functions support the seekable methods.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
@@ -67,11 +81,8 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,755)
|
||||||
%doc ChangeLog README
|
%doc Changes CONTRIBUTING cpanfile LICENSE README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user